Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.3
2019.3.9f1
2020.1
2020.2
Issue ID
1237465
Regression
No
Scripts are not automatically recompiled after changing the apiCompatibilityLevelPerPlatform in the ProjectSettings.asset
How to reproduce:
1. Open user-submitted project (new test ITuple.zip)
2. Open the Project Settings > Player window
3. Check that the Api Compatibility Level is set to .NET 4.x
4. Open the project's ProjectSettings.asset
5. Change the apiCompatibilityLevelPerPlatform value for Standalone from '3' to '6' and save
Expected result: the Api Compatibility level changes in the Editor, scripts are recompiled and an error is thrown
Actual result: Api Compatibility level changes in the Editor, scripts are not recompiled unless manually reimported/a build is started
Reproducible with: 2018.4.21f1, 2019.3.10f1, 2020.1.0b5, 2020.2.0a7
Could not test with: 2017.4.39f1(only a single apiCompatibilityLevelPerPlatform option)
Notes:
Restarting the Editor does not update the scripts after Api Compatibility Level change either
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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Resolution Note:
the editor recompiles the code when switching Api compability levels because it set the editor state as dirty manuially and there is no alternative for that when editing the ProjectSettings filed directly