Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio crashes when removing reference

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
like image 844
Denis Avatar asked Jul 21 '16 16:07

Denis


People also ask

How do I reference a folder in Visual Studio Code?

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.

How to fix Visual Studio 2019 cannot switch between build configurations?

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.

What happens when a reference is broken in an application?

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:

How to enable parallel project initialization in Visual Studio 2019?

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


1 Answers

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.

like image 177
Syed Avatar answered Oct 10 '22 06:10

Syed