Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
2017.1.0b2
Issue ID
907867
Regression
Yes
Unity auto-generated C# script contains invalid references, triggers compilation warnings
Repro steps:
1. Open Unity and create a new project
2. In the project create a new c# script ( Assets -> Create -> C# Script)
3. Open the script with Visual Studio 2017 Community
4. In Visual Studio click on View -> Error List
5. Click Build -> Rebuild Solution
6. See that in the "Error List" there are 2 Warnings
Expected result: For no warnings/errors to happen
Actual result: 2 warning messages appear
Reproduced with: 2017.1.0b5, 2017.1.0b4, 5.6.1f1
Regression introduced in: 5.6.0f3
Not reproduced on: 5.5.3p3
Fixed in: 2017.1.0b7
Note:
Added video
The primary reference "UnityEngine.TestRunner" could not be resolved because it has an indirect dependency on the framework assembly "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5,Profile=Unity Subset v3.5". To resolve this problem, either remove the reference "UnityEngine.TestRunner" or retarget your application to a framework version which contains "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
The primary reference "nunit.framework" could not be resolved because it has an indirect dependency on the framework assembly "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5,Profile=Unity Subset v3.5". To resolve this problem, either remove the reference "nunit.framework" or retarget your application to a framework version which contains "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Mattnet
May 29, 2017 09:43
I report still having these two warnings with Unity version 5.6.1f1 and Visual Studio 2017 Community version 15.2