dotnet-vcxproj icon indicating copy to clipboard operation
dotnet-vcxproj copied to clipboard

error MSB4019 while building

Open HamedJP opened this issue 1 year ago • 3 comments

sorry for this question, I'm noob at C++. I get this error when building any one of examples error MSB4019: The imported project "/Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "/Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.

HamedJP avatar May 31 '23 19:05 HamedJP

I have the exact same problem.

Did you find a solution ?

I think that the file path is absolute in our case, and is trying to find the file in "/"

In fact, I copied the created file Microsoft.Cpp.Default.props from the project folder to "/" and passed that error

but new one arised: The imported project "/Microsoft.Cpp.targets" was not found. Confirm that the expression in the Import declaration "/Microsoft.Cpp.targets" is correct, and that the file exists on disk.

But I dont have that file

jrialmes avatar Jun 09 '23 07:06 jrialmes

I have the same problem. Any solutions?

openshwprojects avatar Jun 20 '24 16:06 openshwprojects

Give me more details what you are doing

roozbehid avatar Jun 21 '24 22:06 roozbehid