Hello
I try to create an import plugin in Visual studio 2022 but exist template for RhinoCommon 7 & 8 don’t support .net6 and .net7
<TargetFrameworks>net6.0-windows; net48</TargetFrameworks>
----------------------------------------------------------------
|Warning|NU1701|Package 'RhinoCommon 8.0.23227.12305-wip' was restored using
'.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7,
.NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8'
instead of the project target framework 'net6.0-windows7.0'.
This package may not be fully compatible with your project
I believe you need to modify your Target Framework to just the platform you are trying to build for in order to eliminate that warning.
Since you are specifying both .Net 7.0 and .Net 4.8 you are getting warnings. You can ignore the warnings so long as you know the referenced packages support both frameworks. If you remove ;net48 you won’t get the warnings.
In my case, I had to modify the target framework, adding -windows so that it would work for WPF on Windows.
The NU1701 warning is apparently expected and not a problem.
I had also been getting the warning for RhinoCommon plugins but both the 4.8 and 7.0 plugins were working fine. I haven’t been testing the 7.0 version lately because you can’t count on 7.0 being available.
@stevebaer, @curtisw or @Alain could you build the RhinoCommon NuGet package targeting netstandard 2.0 ?
via <TargetFramework>netstandard2.0</TargetFramework>
Then it would work on both legacy .NET Framework and the modern .NET
I understand this is a low priority item compared to fixing other bugs, but is there any movement here? YT doesn’t have a target version for release for a net7 nuget package. Would love to not have to ignore warnings for net7.0 plugins.