Examples icon indicating copy to clipboard operation
Examples copied to clipboard

Getting a build error MSB4057

Open dbaechtel opened this issue 9 months ago • 2 comments

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.

dbaechtel avatar Jun 16 '25 00:06 dbaechtel

Need your Help.

dbaechtel avatar Jun 16 '25 01:06 dbaechtel

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

3F avatar Aug 19 '25 20:08 3F