10

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
Denis
  • 11,796
  • 16
  • 88
  • 150
  • 2
    You could try this out -> http://stackoverflow.com/questions/96780/why-is-visual-studio-constantly-crashing – Krazy Dev Jul 21 '16 at 16:07
  • Thank you, tried those. None of those changed anything. – Denis Aug 03 '16 at 14:08
  • can you edit your config files directly and remove the offending line then go back into visual studio? – Netferret Mar 09 '17 at 13:55
  • @Netferret: that's what I've been doing but that's a hassle. Now that VS2017 has come out it seems like it is working again from VS. – Denis Mar 21 '17 at 15:05
  • Does your usage of VS2017 mean this question is now effectively closed ? – Greg Trevellick Apr 01 '17 at 04:26
  • Not everyone has an MSDN subscription and has switched to vs2017 especially with all the bugs it has so this question is still pertinent to my team as others are having this issue and maybe others in the SO community also. – Denis Apr 02 '17 at 11:13
  • @GregTrevellick I have the exact same problem with vs2017... deleting the ref from the Solution Explorer and not in Project Properties seems to be a workaround – Jeremy Thompson May 16 '17 at 01:41

1 Answers1

3

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.

Syed
  • 98
  • 7
  • 1
    I just used this method on a VS 2017 project that kept crashing when I removed a reference. Simply editing the .csproj files allowed me to remove the references manually. When I started VS 2017 back up, all of them were gone and I was able to manipulate my references normally. – delliottg Feb 21 '18 at 22:42