Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Prevent VS from "hunting" for referenced assemblies

$
0
0

Is there a way to prevent VS from trying to find referenced assemblies all over?

Example:

- Version A of my project references version X of a third party assembly. I check in, build server is happy and am I.

- The third party assemblies are referenced as binaries from BIN directory at the level of the solution file. When I advance the third party assemblies' version VS builds the project just fine but my build server does not!

The reason is that VS project files also keep the version of the referenced assemblies, but do not pay attention to them if the referenced assemblies are of different versions. Well, MSBuild engine actually does "revolt" and "refuses" to build.

Also, VS decides for some reason that it can reference an assembly from soem other directory if it does not find those in the specified place (per project file).

I probably could blame a third of all my references troubles on this behavior. This presents a very inconsistent picture. Can I make VS somehow tell me that a referenced assembly with specified version not found? I’d rather have the “stark” truth than guess and hunt down all such cases.

Thank you,

Alexei


AlexeiOst



Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>