msbuild - When publishing solution, is it possible to ignore certain projects? -
msbuild - When publishing solution, is it possible to ignore certain projects? -
we have projects used in environments publishing skip them. however, when publishing whole solution next msbuild error:
"c:\source\solution.sln" (default target) (1) -> "c:\source\project\project.csproj" (default target) (51) -> (validatepublishprofilesettings target) -> c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4253,5): error : value publishprofile set 'sta ge', expected find file @ 'c:\source\project\properties\publishprofiles\stage.pubxml' not found. [c:\source\project\project.csproj] c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4260,4): error : publishprofile(stage) set. $(web publishmethod) not have valid value. current value "". [c:\source\project\project.csproj] c:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.targets(4267,5): error : target validatepublishprofilesettings faile d [c:\source\project\project.csproj]
is there way ignore project when publishing solution don't build errors?
i'd go with:
a custom build srcript (call msbuild individually every project want publish) (my preferred alternative hence gives much more flexibility)a custom .sln file needed projects sole purpose of publishing (easier option, harder maintain)
3.just wild guess(never tried deployment, should work based on understanding) - seek using build -> configuration manager
dialog in vs uncheck build checkboxes projects if can go creating separate solution configurations separate deployment plans:
msbuild publish-profiles
Comments
Post a Comment