I'm trying to upgrade our buildserver (jenkins) from Visual Studio 2015 to 2017. We're building via MS-Build. I've downloaded and installed MS-Buld tools as described in this answer. If I compile my projects I get an error that Microsoft.WebApplication.targets
was not found.
Detailed error:
error MSB4226: The imported project "C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuildMicrosoftVisualStudiov15.0WebApplicationsMicrosoft.WebApplication.targets"
I performed a find in the MS-Build directory:
PS C:Program Files (x86)MSBuild> dir -Recurse -Filter "Microsoft.WebApplication.targets"
Directory: C:Program Files (x86)MSBuildMicrosoftVisualStudiov11.0WebApplications
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11.01.2012 00:23 19654 Microsoft.WebApplication.targets
Directory: C:Program Files (x86)MSBuildMicrosoftVisualStudiov12.0WebApplications
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 22.07.2013 01:25 19995 Microsoft.WebApplication.targets
Directory: C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebApplications
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 06.07.2015 21:55 20118 Microsoft.WebApplication.targets
Directory: C:Program Files (x86)MSBuildMicrosoftVisualStudioWebApplications
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 22.07.2013 01:25 19995 Microsoft.WebApplication.targets
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…