I am trying to build a .net 7 grasshopper plugin. I am only targeting Rhino 8 and .net 7 due to our internal team trying to move away from .netframework. This plugin is a company internal plugin so I am not concerned with wider community support (i.e. no requirement to target .netframework). This issue I am having is that there is a compiler warning due to the fact that the grasshopper nuget package is for .netframework 4.8. It seems that both RhinoCommon and Grasshopper only have .netframework targets on nuget. Can we get a .net 7 target?
I believe you should be able to just use these nugets and ignore the warning. Your plug-in should build and run as .NET 7 just fine.
Yer I can, we have build fail on errors in CI. But I believe this one is skipped. I guess I’m just thinking that if this is compatible with .NET 7 then uploading a nuget build for .NET 7 should be possible?
We actually don’t build all of our assemblies for .NET 7 just yet so it isn’t quite straightforward. That being said we do know about this and I have RH-77311 on my list to get that addressed.
Thanks for reporting the issue!
For anyone else ending here - Check out a solution here: topic Gh component ContextMenu windows dependencies
1 Like