Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在给定目录中搜索所有解决方案文件(.sln)并全部构建它们?
您可以使用此批处理文件:
for /F %%a in ('dir *.sln /s/b') do msbuild "%%a"
您可以通过使用批处理或 PowerShell 来查找文件集,然后驱动构建过程的命令行调用来执行此操作。