开发者

.net command-line compiler multiple projects

开发者 https://www.devze.com 2023-01-22 06:01 出处:网络
I need to build a batch file that runs on a directory and digs inside for suitable c# projects to compile. (and compile them of course).

I need to build a batch file that runs on a directory and digs inside for suitable c# projects to compile. (and compile them of course).

I don't know the name of the projects inside the directory.开发者_如何学JAVA

I can assume all project are in c# and written in VS2008 and above (if that helps).


setlocal
SET CMD= msbuild.exe 

for /R %%d in (*.csproj) do %CMD% %%d
endlocal

This will build each project into individual assemblies, with all default build properties for each project. You can specify additional properties, or an MSBuild config file to use.

0

精彩评论

暂无评论...
验证码 换一张
取 消