I’ve been working regularly on a legacy project done in VB.NET and recently upgraded it to Visual Studio 2010 (from Visual Studio 2008) and things were going as well as VB.NET projects can… Until mid-day today. Out of seamingly nowhere, I started getting this error when trying to build the entire solution:
vbc : error BC31019: Unable to write to output file, MyProject.pdb
I looked high and low all over Google for a solution. I tried the following:
- Restarted Visual Studio 2010. Did not fix.
- Restarted computer. Did not fix.
- Created a VS2008 solution file, added the projects into it, tried to build. Did not fix.
- Moved the entire solution folder to another area on my C:\ drive. Did not fix.
Then I happened upon this site, and it suggested I open the vbproj file and edit the <DebugType>All</DebugType> element to <DebugType>none</DebugType>. That seemed to do the trick. So now I can build, but I don’t get my output PDB files. It’s a temporary solution, but hopefully I can figure out what has gone wrong here. Another solution was to uninstall/reinstall Visual Studio, and I don’t want to spend 3+ hours on that.
I tell ya, my on-the-side Ruby/Rails projects do not give me this much grief.
{ 1 comment… read it below or add one }
hmmm wonder if that would have fixed my error. Sounds sorta similar… I couldn’t copy of the .exe … or at lease I could only do it once, then VS2010 had a lock on in and would never release it :(