Stellen Sie eine FrageStellen Sie eine Frage
 

Beantwortethow to self reference a project

  • Samstag, 7. November 2009 17:33marck68 TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Hello

    I have a project that requires a reference to itself to bond some code in vb.net with some other code written in xaml.




    The problem that I am facing is that in the xaml code i have to put a reference to the assembly (project name MyDrawing") something like this



    <Controls:Shuttle x:Class="MyFile" x:Name="base"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="144" Height="146"
        xmlns:Controls="clr-namespace:MyDrawing;assembly=" >
     
       ...
    </Controls:Shuttle>



    Public Class Shuttle
        Inherits Grid
    ...

    End class






     xmlns:local="clr-namespace:MyDrawing;assembly=MyDrawing"


    where mydrawing is the name of the project/solution.


    The problem is that I can not compile the application because there is not a reference (in the references) to the application itself
    but i can not add a reference to the application because i can not compile the application. Is a catch 22

    how can I solve the problems?


    All happened because an antivirus deleted the assembly of the application and now i find myself with this annoying problem





    i get the following error

    Error    23    The tag 'Shuttle' does not exist in XML namespace 'clr-namespace:MyDrawing'.

Antworten

  • Sonntag, 8. November 2009 00:04Mariano O. Rodriguez TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     BeantwortetEnthält Code
    You have to omit the assembly in the definition of the namespace:

    <Controls:Shuttle x:Class="MyFile" x:Name="base"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="144" Height="146"
        xmlns:Controls="clr-namespace:MyDrawing;" >
    
    




    http://weblogs.asp.net/marianor/
    • Als Antwort markiertmarck68 Donnerstag, 12. November 2009 13:40
    •  

Alle Antworten

  • Sonntag, 8. November 2009 00:04Mariano O. Rodriguez TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     BeantwortetEnthält Code
    You have to omit the assembly in the definition of the namespace:

    <Controls:Shuttle x:Class="MyFile" x:Name="base"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="144" Height="146"
        xmlns:Controls="clr-namespace:MyDrawing;" >
    
    




    http://weblogs.asp.net/marianor/
    • Als Antwort markiertmarck68 Donnerstag, 12. November 2009 13:40
    •