I have a project that when i compile it keeps crashing visual studio 2010. It's only that project in the solution, and it seems like it gets compiled, but it crashes.
It's a silverlight c# project
From the SDK command line tool I can run MSBuild, and the project will compile without problems, without crashing vs of course. When building in vs the project also gets compiled (I can see that it has been built when the vs restarts itself), it's just that vs crashes.
How can I debug this issue to resolve it?
---Tried:
- resetting the visual studio settings in: Tools -> Import and Export Settings -> reset all settings
- Writing out a log with devenv /log, but there are no errors and no warnings
- deleting the .suo file
Following Nescio's solution
I get this error just before visual studio crashes:
A StreamWriter was not closed and all buffered data within that StreamWriter was not flushed to the underlying stream. (This was detected when the StreamWriter was finalized with data in its buffer.) A portion of the data was lost. Consider one of calling Close(), Flush(), setting the StreamWriter's AutoFlush property to true, or allocating the StreamWriter with a "using" statement. Stream type: System.IO.FileStream File name: C:\Users\MyUser\AppData\Local\Temp\28e633d3642e4ac28a6ca861274e8b9a\svcutil.log Allocated from: callstack information is not captured by default for performance reasons. Please enable captureAllocatedCallStack config switch for streamWriterBufferedDataLost MDA (refer to MSDN MDA documentation for how to do this).