The target "VerifyTargetVersion" does not exist in the project.
See original GitHub issueEver 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/VisualStudio
cd VisualStudio
git submodule init
git submodule deinit script
git submodule update
- Open
GitHubVS.sln
in 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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
"The target "VerifyAlteredTargetsUsed" does not exist in ...
Does any one know why this "VerifyAlteredTargetsUsed" does not exist issue happen and how to resolve it?
Read more >Deploying Web Application in IIS Using Visual Studio 2019
Hello All ,. I am working out on windows server 2019 and visual studio 2019. I am willing to deploy Web Application in...
Read more >Deploying a Mobile Application Project - Sybase InfoCenter
Select a target server, click Connect, and select a Domain and Security Configuration for the deployment package and click Next. (Optional) If ...
Read more >MFG/PRO eB2 Conversion Guide: Progress and Oracle
Compliance Control program (clc_ctrl) if it does not exist. It also sets ... to verify target version data (1.4.19 in eB2).
Read more >Eagle 2070 Reference Manual Sepac Controller Software ...
If switch is moved it will not take effect until controller restart. ... VERIFY TARGET VERSION FROM MAIN MENU (3.34e) VERIFY TARGET BUILD...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It appears that updating from
Microsoft.VSSDK.BuildTools.15.0.26201
to15.8.3252
has resolved the issue. The following PR branch seems to build consistently: https://github.com/github/VisualStudio/pull/1929.I don’t know if packages.config is ignored automatically given the presence of a
PackageReference
in your project.I observe that you’re using packages.config style references for your VS SDK projects. And in particular, you’re getting your VS SDK itself via that reference:
So you’ll be missing targets until you do a package restore that restores packages.config packages. If you had a reference from a .NET SDK style project to one of these VS SDK projects, you may end up failing if the packages.config packages haven’t restored by the time the .NET SDK style project’s restore build had called into its P2Ps. I don’t know if that happens. I don’t ever have .NET SDK style projects reference older style ones – I’m not sure whether that’s supported. You may need to script a restore step that explicitly runs (in effect)
nuget restore **\packages.config
before allowing the regular restore to take care of everything else.