Unity Issue Tracker - Not adding NET_STANDARD_2_0 define
Fixed
UUM-1694
Not adding NET_STANDARD_2_0 define
Unity: Scripting
Backport
UWP
Fixed
2021.3.X
Won't Fix
2020.3.X
Does not reproduce in latest 2020.3
How to reproduce:
1. Open the attached "New Unity Project.zip" project
2. Switch to UWP
3. Select .NET Standard 2.0 Scripting backend in Player settings
4. In Project window select Packages > Microsoft.Extensions.DependencyInjection > Microsoft.Extensions.DependencyInjection.dll
5. See define constraints in Inspector window showing "define constraint is incompatible" error
6. Open "Assembly-CSharp.csproj" file with a text editor
7. Search for .NET version in DefineConstants line
Expected result: "NET_STANDARD_2_0" constraint is present
Actual result: "NET_4_6" constraint is present