Search Issue Tracker
Won't Fix
Won't Fix in 2.0.X
Votes
1
Found in [Package]
2.0.5
Issue ID
VS-29
Regression
No
Visual Studio 2019 loses references to the libraries when the 'Scripting Define Symbols' contains a large number of characters
How to reproduce:
1. Open the attached '1296518.zip' project
2. In the Project window double-click on the 'Test' Script
3. Open the Solution Explorer in the Visual Studio (View > Solution Explorer)
4. Open the Error List (View > Error List)
5. In the Solution Explorer expand Assembly-CSharp > References
6. Select any item in the References list
7. Focus on the Script editing area
8. Observe the Error List in the Visual Studio
9. If the issue doesn't reproduce repeat steps 5 to 7 (usually reproduces on the first try, however occasionally it may take up to 3 tries)
Expected result: There are no visible warnings present
Actual result: Warnings appear in the Visual Studio Error List
Reproducible with: 2018.4.30f1, Visual Studio Editor 1.0.2 (2019.4.16f1, 2020.1.17f1, 2020.2.0b14, 2021.1.0a9), 2.0.5 (2020.1.17f1, 2020.2.0b14, 2021.1.0a9)
Cannot test with: Visual Studio Editor 2.0.5 (2019.4.16f1) (the Visual Studio Editor package version is not supported)
Notes:
- Tested with Visual Studio Community 2019 16.8.2
- The character count depends on the Unity version
- In 2018.4 there is no Visual Studio Editor package
- Major part of the warnings are related to referenced components not being found except for the following warning:
'Load of property 'DefineConstants' failed. The argument for the property 'Conditional Compilation Constants' is too long.'
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
This will not be fixed
Resolution Note (2.0.X):
This is a bug in Visual Studio itself. Microsoft is aware of it and is tracking it on their system.