© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
20 replies
sameerpjoshi

CMake to generate C# project and compile it

Hi All,
I am using CMake for C# project. I am compiling with target framework as netstandard2.0.
Following is the issue I am encountering when compiling the project using CMake.
Severity Code Description Project File Line Suppression State Details
Error NU1202 Package abc.xyz 23.2.347.1 is not compatible with net40 (.NETFramework,Version=v4.0). Package abc.xyz 23.2.347.1 supports: net48 (.NETFramework,Version=v4.8)
What could be the reason for this when I am targetting for .netstandard2.0? This nuget package abc.xyz is also supported on the .netstandard2.0, then what is exactly the problem ?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Adding cmake project to VS solution?
C#CC# / help
2y ago
CMaKE
C#CC# / help
2y ago
✅ how can u compile a c# project to a .dll file?
C#CC# / help
3y ago
❔ Can C# "compile" C# on the go
C#CC# / help
3y ago