Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 Can't save, build, or rebuild solution

Suddenly after i clicked clean solution i am no longer able either to save, build or do anything to the solution. It appears to be a bug as every time i hit CTRL+S or just Rebuild or Build or even Start button i get this message

enter image description here

  • Also i double checked all the assemblies and they are there nothing is missing. I need to find a solution without losing my unsaved data.
like image 861
Roman Ratskey Avatar asked Feb 11 '14 23:02

Roman Ratskey


People also ask

How do I rebuild a solution in Visual Studio?

To build or rebuild a single project In Solution Explorer, choose or open the project. On the menu bar, choose Build, and then choose either Build ProjectName or Rebuild ProjectName. Choose Build ProjectName to build only those project components that have changed since the most recent build.

What is the difference between build Solution and rebuild solution?

Build Solution - compiles code files (dll and exe) that have changed. Rebuild Solution - Deletes all compiled files and Compiles them again regardless of whether or not the code has changed.

Is rebuild the same as clean and build?

For a multi-project solution, "rebuild solution" does a "clean" followed by a "build" for each project (possibly in parallel). Whereas a "clean solution" followed by a "build solution" first cleans all projects (possibly in parallel) and then builds all projects (possibly in parallel).

What is difference between build and rebuild?

Taken from this link: Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not. Build is the normal thing to do and is faster.


1 Answers

Well this is strange glitch which I once faced with Visual Studio which results in losing the linkage to it's references or something like that.

A quick fix would be just

  1. Opening the project in a 2nd visual studio instance (without
    closing the existing one to keep your data alive!)
  2. Rebuild your project from the newly opened 2nd instance then close
    and return to your bugged visual studio (1st instance) and it should work be able to save/build/rebuild now.
  3. When switching back to your 1st instance, if you had made changes
    in the 2nd instance to get your project to compile, the 1st instance will detect these and ask if you would like to reload the changed
    files. Select "No to all" otherwise you will lose your unsaved
    changes in the 1st instance.
like image 172
Erric J Manderin Avatar answered Oct 05 '22 23:10

Erric J Manderin