sdk: The target "VerifyTargetVersion" does not exist in the project.
Ever since upgrading https://github.com/github/VisualStudio to use new the SDK project files (for all projects except VSSDK projects) we’re getting the following error when building in Visual Studio:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(841,7): error MSB4057: The target "VerifyTargetVersion" does not exist in the project.
Everything works fine when building from the command line. The error goes away after multiple builds in Visual Studio, but comes back on a git clean -xdf.
I’m not even sure if this is an SDK issue, but posting here first because it arose after the conversion to SDK project files.
Repro:
git clone https://github.com/github/VisualStudiocd VisualStudiogit submodule initgit submodule deinit scriptgit submodule update- Open
GitHubVS.slnin Visual Studio 15.8.4 - Build solution
Sometimes the VerifyTargetVersion error doesn’t show up in the Error List, but it’s present in the msbuild logs.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (9 by maintainers)
It appears that updating from
Microsoft.VSSDK.BuildTools.15.0.26201to15.8.3252has resolved the issue. The following PR branch seems to build consistently: https://github.com/github/VisualStudio/pull/1929.