My 2015 Visual Studio Pro crashes every time I remove a reference from any C# project targeting .NET 4.0. Is there a fix for this?
Microsoft Visual Studio Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01055
If you are using Visual Basic, select the References page and click the Reference Paths button. In the Reference Paths dialog box, type the path of the folder that contains the item you want to reference in the Folder field, and then click the Add Folder button.
After that, we need to delete the .vs folder of Visual Studio 2019 within the local solution folder. This folder contains a SQLite DB that corresponds with some behind the scenes stuff for the parallel project initialization (and more). Now open the solution – switching between Build configurations should now work again.
If your application attempts to use a broken reference, an exception error is generated. The inability to find the referenced component is the primary trigger for the error, but there are several situations in which a reference can be considered broken. These instances are included in the following list:
The workaround is pretty easy, just follow these simple steps: 1 Open Tools / Options in Visual Studio 2019 and find the Projects and Solutions node 2 Unselect ‘Allow parallel project initialization’ 3 Click ‘OK’ and close the solution
Addition and removal of references from the project file can also be done using any text editor and editing the .proj file. Each .proj file is an XML file storing the project configuration. Just remove the reference and save the file. (A possible work-around)
The problem you mentioned don't seem to be a general issue. Visual studio may also crash for some unknown host system or project configurations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With