开发者

.net command-line compiler multiple projects

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜