简体   繁体   中英

Generate Debug & Release simultaneously

Here is my situation. I've multiple projects / solutions that are linked.

  • Solution A.sln
    • AA.csproj
    • AB.csproj
  • Solution B.sln
    • BA.csproj references bin\\$(Configuration)\\AA.exe
    • BB.csproj references bin\\$(Configuration)\\AB.exe

(I modified the .csproj manually in order to reference the current configuration and not always Debug or Release).

I do that because I won't include all referenced projects I need directly in my solution to not polluate it.

So, in order to be always up-to-date, I want to generate both, Debug & Release configuration when building referenced projects. It's possible?

Use Batch Build .

Open Build->Batch Build... in solution A , select all projects you need in all configurations (Debug, Release,...) you need and click Build button.

VS will remember your selection for next batch build. So you just need to enter Alt+B, Alt+T, Enter for next build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM