Getting a build error MSB4057
Severity Code Description Project File Line Suppression State Details Error MSB4057 The target "GetTargetPath" does not exist in the project. UnmanagedCppConsole C:\Users\dbaec\Downloads\Examples-master\Examples-master\DllExport\BasicExport\ExtDotNetCoreLibrary4\ExtDotNetCoreLibrary4.csproj 1
The project does not build.
Need your Help.
Hello,
What Visual Studio / MSBuild version are you trying to use? I've checked the ExtDotNetCoreLibrary4.csproj and I can't reproduce the problem.
Note ExtDotNetCoreLibrary4.csproj has SDK-style and GetTargetPath (CoreBuild depends -> on GetTargetPath) is part of it, for example, this can be found here:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets
I can try to analyze the problem why is this so in your case, but I need the log. Please either use the binary log /bl or diagnostic level /v:diag
Same with breakpoints in #7; I need details to reproduce both behaviors. Thanks