简体   繁体   中英

msbuild - is there a way to specify not to build a website in a solution

I'm using Visual Studio 2015 to create a build definition. Is there a way to specify somewhere in the build not to build the website in a solution?

I can manually tell it not to do that when I have the solution open (see below), but when I run the Build it errors out because the website won't build. But I don't need it to build.

在此处输入图片说明

If you don't want to build this project or sln in tfs build , you just need to remove it in the Build process parameters. 在此处输入图片说明

In your solution file (.sln), remove the Build.0 entries. For example:

Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "clientapp", "clientapp\", "{F49559D6-D6E7-43D9-8EB2-DE26496D5E63}"

Search for lines containing "Build.0" and the second UID and delete them.

{F49559D6-D6E7-43D9-8EB2-DE26496D5E63}.Debug|Any CPU.Build.0 = Debug|Any CPU

The solution will load OK, but the website will not be built.

[ Thanks to BmanMA for this. ]

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