Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot load application.Designer.vb what to do?

Tags:

vb.net-2010

I got this error:

Error   1   Unable to open module file 'D:\business\shared\Dropbox\badgers\vb\vb.net\My Project\Application.Designer.vb': The system cannot find the path specified.    D:\business\shared\Dropbox\badgers\vb\vb.net\My Project\Application.Designer.vb 1   1   traverseweb4

Application.designer.vb is a generated file. I simply deleted that. How do I get that regenerated?

If I open the .vbproj file directly with notepad ++ I saw:

<Compile Include="My Project\Application.Designer.vb">
  <AutoGen>True</AutoGen>
  <DependentUpon>Application.myapp</DependentUpon>
</Compile>

So it clearly is autogenerated, so why vb.net blame me for not having that stupid file?

By the way removing those stupid lines in notepad ++ works. Now things work perfectly. But this pissed me off a lot.

Anyone can explain why it happen in the first place? Why hacking into a .vbproj file is necessary to get this fixed?

like image 834
user4951 Avatar asked Feb 20 '13 04:02

user4951


1 Answers

When I've had problems like this in the past I usually clean the project (right click solution - clean) and then rebuild from the same menu - which usually fixes errors like this.

like image 81
GJKH Avatar answered Oct 15 '22 19:10

GJKH