Fazer uma PerguntaFazer uma Pergunta
 

Respondidohow to self reference a project

  • sábado, 7 de novembro de 2009 17:33marck68 Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    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'.

Respostas

  • domingo, 8 de novembro de 2009 0:04Mariano O. Rodriguez Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     RespondidoContém Código
    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/
    • Marcado como Respostamarck68 quinta-feira, 12 de novembro de 2009 13:40
    •  

Todas as Respostas

  • domingo, 8 de novembro de 2009 0:04Mariano O. Rodriguez Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     RespondidoContém Código
    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/
    • Marcado como Respostamarck68 quinta-feira, 12 de novembro de 2009 13:40
    •