MVC MSBuild

  1. Here how I worked it around at my system. Edit the Microsoft.Web.Publishing.AspNetConfigurationMerge.targets file and add the following line. Please make sure that the Microsoft SDK path is the same on your PC, if not then change it: <TargetFrameworkSDKToolsDirectory>C:Program Files (x86)Microsoft SDKsWindowsv7.0ABin</TargetFrameworkSDKToolsDirectory>
  2. msbuild *.sln /p:DeployOnBuild=true;PublishProfile=profile.pubxml
原文地址:https://www.cnblogs.com/dmdj/p/3755232.html