简体   繁体   中英

Installed VS 2010 after 2012 and MSbuild paths to target file for web publish is incorrect now

I had a working build script locally that I could build and publish a VS 2012 WebApplication project with just fine until I installed Visual Studio 2010, I don't get seem to get any real errors but it does not publish at all now it just builds and shows success no errors, I do see this in the ms build log :

Target WebPublish in file C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v10.0\\Web\\Microsoft.Web.Publishing.targets

I know I am still using the correct version of MSbuild but why is it now trying to use the wrong targets file? Would running the Visual Studio 2012 repair fix this? Is there some registry setting or config setting somewhere for this?

I have spent hours trying to track down why this script that worked before and hasn't changed now doesn't work locally but it is still working on my build server just fine, which made me think of what has changed on my machine since I last ran this build fine locally. Any help or suggestions as always is greatly appreciated.

Thanks!

The easiest (though lengthy) solution will be to repair visual studio:

  • Repair Visual studio 2012 from the Windows' Programs and Features window
  • Re-apply Visual Studio Update 4

This will ensure the latest bits are back in the place they should be.

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