v11.0\WebApplications\Microsoft.WebApplication.targets was not found when file actually references v10

后端 未结 11 1275
花落未央
花落未央 2020-12-01 01:26

First some background. At the end of 2012 we migrated our vs2008 solution to vs2010 but we still target .NET 3.5. (I know nothing but the latest and greatest here!)

11条回答
  •  既然无缘
    2020-12-01 01:50

    As I was searching how to solve this one, almost everyone recommended either to copy the missing MSBUILD folder or install some SDK of some version.

    Luckily, I've found this awesomely helpful post by Donovan Brown : http://donovanbrown.com/post/So-sick-of-MicrosoftWebApplicationtargets-was-not-found-build-errors!

    In a nutshell, the idea is to configure the VisualStudio version your build should use in your Build Definition:

    Right Click -> "Edit Build Definition..."

    Go to "Procss" -> "3. Advanced"

    and set "MSBuild Arguments" with

    /p:VisualStudioVersion=12.0
    

提交回复
热议问题