Failed to Build Csproj using NuGet Package Microsoft.Build

MORERA VENTALLO Eric 0 Reputation points
2023-03-28T08:09:53.82+00:00

Hi,

I tried to used the NuGet Package Microsoft.Build and Microsoft.Build.Framework to build some csproj with another Application.

In the project I tried to build, I have this line :

                <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

But It's doesn't seems work.

It always looking for "Microsoft.CSharp.Core.targets" in my project repository, instead of search in the good repository :

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\

Have a simple solution ?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,653 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.