project-reference

Project Reference Problem, Visual Studio 2010

假装没事ソ 提交于 2019-12-05 10:27:05
问题 I have a solution that has one class library project, and the others are WPF applications. I have added class library's reference the but, but both of them cannot use its classes. So, what is the problem? NOTE: sorry for tags, it's safari's problem. 回答1: Make sure that all your projects target same Framework. It may be a case that your library class project targets full .Net Framework 4.0 while your wpf projects target .Net Framework 4.0 Client Profile. To do that go to project properties of

Weird: C# Type or Namespace name could not be found - Builds successfully

霸气de小男生 提交于 2019-12-05 08:50:02
问题 I have a weird error showing up in my project when it is open in the VS2012 IDE. Everywhere where I make use of another referenced project it suddenly says "Type or Namespace name could not be found" . And by "says", I mean it has the text underlined in red with the error when I hover over it. The intellisense doesn't work for that code. BUT (and here's the weird part), the errors do not show up in the error console and the project builds and runs fine. I can even debug and step through the

TFSBuild/MSBuild and Project Reference vs File Reference

左心房为你撑大大i 提交于 2019-12-05 05:13:25
We Have a large VS solution using project references which is build by TFS Build like so: Solution - Project 1 - Project 2 - Project ... - Project N Because the solution is too large we have several smaller solutions which we use day to day: SubSolution - Project 1 - Project 19 The problem is that developers working on SubSolution find that it is not building because the project references could not be found, so they change the projects to use file references. This then goes on to break the TFS Build which cannot find these file references because they have not been built yet (Even though the

Resolving incorrect project reference GUIDs

夙愿已清 提交于 2019-12-04 05:21:18
I have some projects in a Visual Studio solution that have ended up with project references that include the wrong GUID for the referenced project. (Possibly due to the referenced project being recreated at some stage) eg. Consider a project CoreProject.csproj with the following properties: <ProjectGuid>{93803F9C-8C65-4949-8D44-AB7A3D0452C8}</ProjectGuid> <OutputType>Library</OutputType> <RootNamespace>CoreProject</RootNamespace> <AssemblyName>CoreProject</AssemblyName> Another project includes a reference to this, but at some stage the GUID has changed and is now incorrect. <ProjectReference

Difference between project and dll dependencies in .Net in the final compiled assembly

☆樱花仙子☆ 提交于 2019-12-04 04:19:48
Lets say I have two projects A and B. A depends on B. I can specify this in two ways: Include A and B in the same solution and specify B as a project dependency for A. This shows up in A's msbuild project as a "ProjectReference" node. Include a reference to the B's compiled dll as dependency for A. This shows up in A's msbuild project as a "Reference" node My question is, once I've build the assembly for A, is there a difference in the final output between these two methods. I tried creating a couple of simple projects which model this relation and tried a comparison - but different comparison

Weird: C# Type or Namespace name could not be found - Builds successfully

旧城冷巷雨未停 提交于 2019-12-03 22:09:35
I have a weird error showing up in my project when it is open in the VS2012 IDE. Everywhere where I make use of another referenced project it suddenly says "Type or Namespace name could not be found" . And by "says", I mean it has the text underlined in red with the error when I hover over it. The intellisense doesn't work for that code. BUT (and here's the weird part), the errors do not show up in the error console and the project builds and runs fine. I can even debug and step through the code and it works perfectly fine. So at runtime the project is referenced fine but at design time the

Git and Visual Studio project references

房东的猫 提交于 2019-12-03 06:42:11
问题 Alrighty then, the short version of my question would be: What is the best way to handle project references in Git when you have projects that are shared across multiple solutions and how should my Git repos be organized? The long version is: We are a small dev team(5 developers) and currently we use TFS as our source control and build server and Visual Studio is our IDE of choice. I've always been keen on trying new things and trying to improve our dev environment so I decided to read up on

Managing .NET assembly dependencies by dll reference rather than by project reference in VS

孤者浪人 提交于 2019-12-03 04:35:18
问题 We have a .NET project consisting of multiple subprojects (around 20). There are several solutions, each containing only those subprojects which are relevant to the particular solution. To allow for arbitrary solutions, our subprojects never reference each other by means of project references, but rather by direct dll references. There is little tweaking of the csproj file, to make HintPath include $(Configuration), so Debug builds reference Debug dlls and Release builds reference Release

Git and Visual Studio project references

白昼怎懂夜的黑 提交于 2019-12-02 20:19:53
Alrighty then, the short version of my question would be: What is the best way to handle project references in Git when you have projects that are shared across multiple solutions and how should my Git repos be organized? The long version is: We are a small dev team(5 developers) and currently we use TFS as our source control and build server and Visual Studio is our IDE of choice. I've always been keen on trying new things and trying to improve our dev environment so I decided to read up on Git to find out if it would be good replacement for the source control part of TFS. We just integrated

Managing .NET assembly dependencies by dll reference rather than by project reference in VS

那年仲夏 提交于 2019-12-02 18:53:29
We have a .NET project consisting of multiple subprojects (around 20). There are several solutions, each containing only those subprojects which are relevant to the particular solution. To allow for arbitrary solutions, our subprojects never reference each other by means of project references, but rather by direct dll references. There is little tweaking of the csproj file, to make HintPath include $(Configuration), so Debug builds reference Debug dlls and Release builds reference Release dlls. All works great, but there are two major problems - one is annoying and another is really acute: VS