project-reference

Cross referencing assemblies

天大地大妈咪最大 提交于 2019-12-01 20:26:05
问题 I have three projects in my .net solution. The main project and two class library projects. I have found out that I need to cross reference the class library projects. Can I do that? Is it safe or there are some considerations? 回答1: The IDE won't let you when the projects are in one solution. There are subtle ways to confuzzle it. But then the solution cannot be built from scratch (i.e. Build + Rebuild) since the assembly reference isn't available yet. Refactor this, you probably want a 3rd

How are references located in .NET?

泄露秘密 提交于 2019-12-01 20:16:59
What process does .NET use to locate a referenced assembly at runtime and is it different than the process used to locate a referenced assembly during compilation? I am specifically interested in the locations that are searched and their search order and any parameters/configuration settings that might affect the outcome. There are three types of references that can be made in a .NET application. This answer will only cover the first two in the list below. File references. Project references Service references. Every reference must be resolved. Reference resolution is the process of locating a

Cross referencing assemblies

非 Y 不嫁゛ 提交于 2019-12-01 19:43:13
I have three projects in my .net solution. The main project and two class library projects. I have found out that I need to cross reference the class library projects. Can I do that? Is it safe or there are some considerations? The IDE won't let you when the projects are in one solution. There are subtle ways to confuzzle it. But then the solution cannot be built from scratch (i.e. Build + Rebuild) since the assembly reference isn't available yet. Refactor this, you probably want a 3rd assembly that both can reference. Circular references are possible (via the command-line and some tricks; not

Project Build Order in Visual Studio 2010?

爷,独闯天下 提交于 2019-11-30 16:25:43
问题 We have a Visual Studio 2010 solution that has over 120 projects that reference each other in some way. All inter-project references are project references and not file references which helps Visual Studio determine the project build order automagically. Out of 120, we have a few core projects that are not interdependant on each other and these projects are referenced by the rest extensively. Hence these projects are at the top of the project build order. These core projects have references

VS2010: Warning on add project reference to Silverlight project from .NET project

安稳与你 提交于 2019-11-30 06:42:06
In VS2010, Silverlight 4, .NET 4, I've got a WCF service and a Silverlight app, and Silverlight is accessing the class not with Add Service Reference but by sharing the contract. Naturally, this means I have the contract in a Silverlight class library, and the service has a project reference to that library. Strangely, this results in a /!\ icon on the reference, and a warning: The project 'SilverlightClassLibrary1' cannot be referenced. The referenced project is targeted to a different framework family (Silverlight) However, the reference works fine (I can use the interface in my Silverlight

Determining outputs of a ProjectReference in MSBuild without triggering redundant rebuilds

大兔子大兔子 提交于 2019-11-29 10:23:16
As part of a solution containing many projects, I have a project that references (via a <ProjectReference> three other projects in the solution, plus some others). In the AfterBuild , I need to copy the outputs of 3 specific dependent projects to another location. Via various SO answers, etc. the way I settled on to accomplish that was: <MSBuild Projects="@(ProjectReference)" Targets="Build" BuildInParallel="true" Condition="'%(Name)'=='ProjectA' OR '%(Name)'=='ProjectB' OR '%(Name)'=='ProjectC'"> <Output TaskParameter="TargetOutputs" ItemName="DependentAssemblies" /> </MSBuild> <Copy

Determining outputs of a ProjectReference in MSBuild without triggering redundant rebuilds

此生再无相见时 提交于 2019-11-28 03:48:13
问题 As part of a solution containing many projects, I have a project that references (via a <ProjectReference> three other projects in the solution, plus some others). In the AfterBuild , I need to copy the outputs of 3 specific dependent projects to another location. Via various SO answers, etc. the way I settled on to accomplish that was: <MSBuild Projects="@(ProjectReference)" Targets="Build" BuildInParallel="true" Condition="'%(Name)'=='ProjectA' OR '%(Name)'=='ProjectB' OR '%(Name)'==

TFS dll and references issues

坚强是说给别人听的谎言 提交于 2019-11-27 19:29:32
We use Team Foundation Server for our main project. Every time we add a new employee either onsite or offsite we always have to set up the references manually. Is it possible for TFS to copy/save/pass the dll's to the new user without having to install them every time? For example I add new functionality and install DocumentFormat.OpenXml to my project. Set up the code it runs and works fine on my machine, I publish it works just fine live. I check in everything into TFS. My co worker downloads the project attempts to build it and it errors out saying it doesn't know what to do with

Why do I get a warning icon when I add a reference to an MEF plugin project?

匆匆过客 提交于 2019-11-27 06:01:09
I wish to test the core class of a plugin by directly referencing the plugin project and instantiating the plugin class. When I create a test Console App project and add a project reference to the plugin project, I get a warning icon (yellow triangle with exclamation mark) next to the reference in the References list. When I instead add a reference to the dll, the assembly build output of the plugin, I get no such warning. What could this warning be trying to tell me? As mentioned in the question's comments, differing .NET Framework versions between the projects can cause this. Check your new

TFS dll and references issues

喜夏-厌秋 提交于 2019-11-26 22:48:34
问题 We use Team Foundation Server for our main project. Every time we add a new employee either onsite or offsite we always have to set up the references manually. Is it possible for TFS to copy/save/pass the dll's to the new user without having to install them every time? For example I add new functionality and install DocumentFormat.OpenXml to my project. Set up the code it runs and works fine on my machine, I publish it works just fine live. I check in everything into TFS. My co worker