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)
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.
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.
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:
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
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:
Have any of you experienced that ?? (I run umbraco 4.0.3)
Kind regards
/Anders
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
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.
Hi Richard
I'm properly not running in compatibility mode. I'll just check that out.
Thanks
/Anders
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
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
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
is working on a reply...