Search Issue Tracker
Won't Fix
Votes
1
Found in
2017.1.0b5
Issue ID
912636
Regression
No
Recompiling removes previously added references in VS17 solution
Steps to reproduce:
1. Open attached project
2. Open .sln file with Visual Studio 17 in the project directory
3. In solution explorer right click on References
4. Select 'Add Reference'
5. Add 'System.ComponentModel.Composition' library
6. Open "testScripts.cs" (in the solution) - no errors appear
7. Close VS solution (save the changes you've made)
8. Create a new c# script in the Editor to trigger recompilation
9. Open .sln file with Visual Studio 17 in the project directory
Expected behavior: previously added 'System.ComponentModel.Composition' reference is saved and doesn't get removed after recompilation
Actual result: 'System.ComponentModel.Composition' reference is gone and needs to be added once again
Reproducible with: 2017.1.0b6
Comments (4)
-
JadeArchdall
Aug 17, 2020 07:25
I didn’t get your instructions as they are very complicated why don’t you upload a tutorial video about this just record a simple video and post it. I need to know something ones and I visited this https://www.topbritishwriters.com/essaybox-review/ site and they not even give written instruction but also gave video tutorial and I love that.
-
LordDarkon76
Nov 03, 2017 21:51
This regard my last comment. Adding a file named mcs.rsp with "-r:System.ComponentModel.Composition" (dont put the quotes) at the asset folder allow to use system.componentmodel.composition and maybe other.
-
LordDarkon76
Nov 03, 2017 21:34
Adding the System.ComponentModel.Composition. To the asset folder allow compilation at the editor, but it fails to load the dll at build.
-
FMark92
May 26, 2017 12:13
I would like to add that this also happens with all System.Threading .dlls and System.Windows.Forms.dll.
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note:
This is an issue with Visual Studio / Visual Studio Tools for Unity (VSTU). Please report the bug to VSTU team at vstusp@microsoft.com
It's actually not reproducible anymore in Unity 2019.1.0a3 and VSTU 3.8.0.7