Search Issue Tracker
Won't Fix
Votes
3
Found in
2017.4.0f1
2018.3.0a1
2018.3.11f1
2019.1.0a1
2019.2.0a1
Issue ID
1143273
Regression
No
Unity compiler ignores -reference alias in .rsp files
Reproduction steps:
1. Open the attached project inside of "case_1143273-ReferenceSample.zip"
Expected result: Project opens up without any compiler errors
Actual result: Project opens up with compiler errors due to csc.rsp and/or mcs.rsp files not applying alias to the .dll namespace
Reproduced versions: 2017.4.25f1, 2018.3.13f1, 2019.1.0f2, 2019.2.0a11
Notes:
- 2017.4.25f1 does not throw an error and allows to enter play mode. However, "extern alias" keywords still do not work
- Error: Assets\SampleScript.cs(1,14): error CS0430: The extern alias 'Newton' was not specified in a /reference option
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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (2020.1.X):
We do not support reference aliases in the Script/Assembly Updater and have therefore decided to not add fix this issue, as script/assembly updates would not work together with this feature.