Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does VS.Net find the referenced assemblies when I build a project from the command line?

0
10 Posted

How does VS.Net find the referenced assemblies when I build a project from the command line?

0
10

There are a couple of ways to specify where VS.Net looks for the assemblies that you reference in your project when building from the command line. One way is to specify the “HintPath” for the reference: However, this would require all of the systems that build the application to have the exact same directory structure locally. There are often times when this is not wanted (or needed), such as having a script on a build machine. In this type of situation, you can use the DEVPATH environment variable, or make use of the Public Assembly folder functionality To use the DEVPATH environment variable, you would simply add the folder that contains the assembly (e.g. “c:\work\samples\assemblies”) to the list of directories. Then, you will need to specify the element in the machine configuration file:

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123