After installing VS2022 getting NU1201 error

Shaul

New member
Joined
Nov 16, 2022
Messages
2
Programming Experience
10+
After installing vs2022 on my machine , I have tried to build C# projects of 4.7.2 with VS2019 . I'm getting the following errors during restore nugets:
Errors in C:\GIT\\XXX.vcxproj
NU1201: Project XXX is not compatible with native (native,Version=v0.0). Project XXX supports: net472 (.NETFramework,Version=v4.7.2)
NU1202: Package XXX 12.4.0 is not compatible with native (native,Version=v0.0). Package XXX 12.4.0 supports:
- net472 (.NETFramework,Version=v4.7.2)
- net50 (.NETFramework,Version=v5.0)
- netcoreapp3.1 (.NETCoreApp,Version=v3.1)
(Before everything passed successfully)
(env path is directed only to C:\Program Files\dotnet. I have restart machine ... and nothing)
 
Ummm.... A .vcxproj is a C++ project, not a C# project. It's unclear why you are asking here in a C# specific forum.
 
After installing vs2022 on my machine , I have tried to build C# projects of 4.7.2 with VS2019 . I'm getting the following errors during restore nugets:
Errors in C:\GIT\\XXX.vcxproj
NU1201: Project XXX is not compatible with native (native,Version=v0.0). Project XXX supports: net472 (.NETFramework,Version=v4.7.2)
NU1202: Package XXX 12.4.0 is not compatible with native (native,Version=v0.0). Package XXX 12.4.0 supports:
- net472 (.NETFramework,Version=v4.7.2)
- net50 (.NETFramework,Version=v5.0)
- netcoreapp3.1 (.NETCoreApp,Version=v3.1)
(Before everything passed successfully)
(env path is directed only to C:\Program Files\dotnet. I have restart machine ... and nothing)
Sorry, you are correct . Our solution involves both C# and C++ and I missed that it happened on C++ and not C# projects. Thanks for mentioned it
 

Latest posts

Back
Top Bottom