Compiling a .vbproj or .csproj project file without Visual Studio

前端 未结 6 1989
梦谈多话
梦谈多话 2020-12-29 23:47

Is there a way to compile a .vbproj or .csproj project file directly, just like Visual Studio does?

When you compile in Visual Studio, the \"output\" window shows th

6条回答
  •  孤城傲影
    2020-12-30 00:31

    In project solution folder:

    msbuild wpfapp1.sln /p:BuildProjectReferences=true
    

    MSbuild is usually located in:

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319
    

    (or something similar, depending on the version)

    csc.exe compiles files, msbuild compiles projects and solutions

提交回复
热议问题