Essential MSBuild Environment Variables

I am trying to install a .NET assembly (C #) from the command line. What is the list of environment variables that I need to configure at the MSDOS prompt before I can run MSBuild.exefrom the command line?

The most obvious example is the path to an MSBuildexecutable file. I cannot rely on setting variables from MyComputer -> Properties -> Advanced -> Enviroment Variables, so I really need a complete list if such a list exists.

PS The design should be automated (command line), and I do not use Visual Studio, but only with the .NET Framework (v3.5).

+5
source share
5 answers

, MSDOS, MSBuild.exe ?

MSBuild , , , . , MSBuild, MSBuild. , , - , .

MSBuild DOS script:

C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild
+6

Visual Studio vsvars32.bat, . , , . :

set
"D:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
set

.

( vsvars32.bat ...)

+5

- MSBuild. , . , .

+1

Visual Studio , . , cmd , .

0

no environment variable needed. Just make sure you have this reg keyset: (pay attention to 64-bit VS, a slightly different path for Visual Studio 32bit)

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild \ 4.0] "MSBuildOverrideTasksPath" = "C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \"

you can just type msbuild at the command prompt

-1
source

All Articles