Formular una preguntaFormular una pregunta
 

Respondidahow to self reference a project

  • sábado, 07 de noviembre de 2009 17:33marck68 Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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'.

Respuestas

  • domingo, 08 de noviembre de 2009 0:04Mariano O. Rodriguez Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     RespondidaTiene 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 respuestamarck68 jueves, 12 de noviembre de 2009 13:40
    •  

Todas las respuestas

  • domingo, 08 de noviembre de 2009 0:04Mariano O. Rodriguez Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     RespondidaTiene 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 respuestamarck68 jueves, 12 de noviembre de 2009 13:40
    •