I get the following warning when trying to install the Unity3D.SDK package:
Seems odd; shouldn’t it be targeting netstandard now?
(This is, obviously, trying to build a package externally without using the unity editor, which can be imported later, but can benefit from the vastly better dotnet tooling that exists now)
Repro:
dotnet new classlib --name TestUnity
dotnet add TestUnity package Unity3D.SDK
Determining projects to restore...
Writing /var/folders/xx/s2hnzbrj3yn4hp1bg8q9gb_m0000gn/T/tmpyP6wvH.tmp
info : Adding PackageReference for package 'Unity3D.SDK' into project '/Users/doug/dev/now/tmp/TestUnity/TestUnity.csproj'.
info : GET https://api.nuget.org/v3/registration5-gz-semver2/unity3d.sdk/index.json
info : OK https://api.nuget.org/v3/registration5-gz-semver2/unity3d.sdk/index.json 869ms
info : Restoring packages for /Users/doug/dev/now/tmp/TestUnity/TestUnity.csproj...
warn : NU1701: Package 'Unity3D.SDK 2020.1.15.1' 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 'net5.0'. This package may not be fully compatible with your project.
info : Package 'Unity3D.SDK' is compatible with all the specified frameworks in project '/Users/doug/dev/now/tmp/TestUnity/TestUnity.csproj'.
info : PackageReference for package 'Unity3D.SDK' version '2020.1.15.1' added to file '/Users/doug/dev/now/tmp/TestUnity/TestUnity.csproj'.
info : Committing restore...
info : Writing assets file to disk. Path: /Users/doug/dev/now/tmp/TestUnity/obj/project.assets.json
log : Restored /Users/doug/dev/now/tmp/TestUnity/TestUnity.csproj (in 235 ms).