Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.3.0a1
2018.3.3f1
Issue ID
1120922
Regression
Yes
[UWP][.NET] Build process fails to include System.Security.dll when building with csc.rsp file
Steps to reproduce:
1. Download attached project
2. Build for UWP with .NET backend
Actual results: Build fails with error:
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.
error CS0006: Metadata file 'System.Security.dll' could not be found
Reproduced with: 2018.3.6f1
Not reproducible with: 2017.4.20f1
Note:
- Not reproducible with mcs.rsp
- Not reproducible with IL2CPP
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2019.2.X):
Remove "System.Security.dll" from csc.rsp and only use it in the "mcs.rsp".
The "csc.rsp" is used specifically for UWP which builds against a specific set of .NET libraries via the Microsoft.NETCore.UniversalWindowsPlatform NuGet package. These libraries are a subset of the .NET 4.6 Framework and exclude certain assemblies/APIs, with "System.Security.dll" being one of them. So, if you specify this assembly in "csc.rsp" you'll receive a compiler error. Note that "System.Net.Http.dll" is present in .NET library package and so it works fine.