Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Dahl Tollestrup 73 posts 52 karma points
    Mar 24, 2010 @ 08:10
    Anders Dahl Tollestrup
    0

    Visual Studio 2010 brakes the reference to umbraco.dll

    Hi out there

    It has been a while since I last had developed umbraco user controls, and in the mean time I have upgraded to Visual Studio 2010. Now it seems like VS brakes the reference to the umbraco.dll. What I experience is:

    • When add the reference, I can browse through umbraco.presentation.nodefactory, but after a solution build my VS can find the umbraco namespace

    Have any of you experienced that ?? (I run umbraco 4.0.3)

    Kind regards
    /Anders

     

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 24, 2010 @ 09:50
    Richard Soeteman
    0

    Hi Anders,

    Think a lot of community users are using vs2010 already. Do you use compatibility mode? If not, you shopuld I gues..

    Cheers,

    Richard

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Mar 24, 2010 @ 11:37
    Aaron Powell
    0

    What version of .NET are you running, 2, 3 or 3.5?

    All projects we're working on at The FARM these days are 2010 projects, with them almost all being Umbraco.

  • Anders Dahl Tollestrup 73 posts 52 karma points
    Mar 24, 2010 @ 14:53
    Anders Dahl Tollestrup
    0

    Hi Richard

    I'm properly not running in compatibility mode. I'll just check that out.

    Thanks
    /Anders

  • Anders Dahl Tollestrup 73 posts 52 karma points
    Mar 25, 2010 @ 13:11
    Anders Dahl Tollestrup
    0

    Hi all

    Just an update on my experience on the broken reference problem in Visual Studio 2010.

    I was running on the old Visual Studio 2010 Beta 2, which didn't have all error messages in place. After upgrading to the new RC version of Visual Studio 2010, I found out that my project was targeting to a wrong .NET framework. I thought that the umbraco dll's was compiled to .NET Framework 2.0, but after changing target to .NET Framework 3.5 everything was compiling just fine and no broken references.

    Kind regards
    /Anders

  • Ranjit J. Vaity 66 posts 109 karma points
    Mar 25, 2010 @ 15:56
    Ranjit J. Vaity
    0

    Hello,

    Even I have experienced breaking of references. In these cases, I maintained a separate copy of .dll files in separate folder called "SharedBinaries" and I use to place my references to assemblies in this folder rather in bin folder. And all worked good.

    Hope this helps!!

     

    Regards,

    Ranjit J. Vaity

     

  • praveen 113 posts 164 karma points
    Jul 21, 2011 @ 04:28
    praveen
    0

    HI I have installed umbraco 4.7

    from the install pacakage I have taken the umbraco.dll 1.0.4090.38017 and referenced it in visual studio 2010 project,  I then wrote the follwiing code to loop through the Parent and its child nodes:

             Node CurNode = Node.GetCurrent();
             Nodes ChNodes = CurNode.Children;

             string text = null;

                foreach (Node doc in ChNodes)
                {
                    if (doc.Children.Count > 1)
                    {
                        text += doc.Name + "--";
                       
                    }
                }
                Label1.Text = text;

    when I compile the project in VS2010 I get the following error:

    Error 1 The type 'umbraco.interfaces.INode' is defined in an assembly that is not referenced. You must add a reference to assembly 'interfaces, Version=1.0.4085.20549, Culture=neutral, PublicKeyToken=null'. C:\Software Development\trunk\UserControls\DocumentList.ascx.cs 57 13 

    How do I get rid of this error

    Basically I want to read the document properties in csharp code and write it to format to diplay

    you help is greatly appreciated

    Kind Regards

    Praveen

Please Sign in or register to post replies

Write your reply to:

Draft