I've created a Form1.cs in a Windows Forms application, and there's already a file Form1.resx. But whenever I try to run my application, I'm constantly getting the following error:
Unable to create a manifest resource name for "....\gg\Form1.resx". Could not find file 'C:\Documents and Settings\Administrator\Desktop\gg\Form1.cs'.
Could anyone please tell me a reason, and how can I overcome my problem?
Your .csproj is corrupted. You need to manually edit it. For a form, there must be 3 entries:
<Compile Include="MyForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MyForm.Designer.cs">
<DependentUpon>MyForm.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="MyForm.resx">
<DependentUpon>MyForm.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
This is my project..
project pic
Look at SalesSoListReportTest.cs and SalesSoListReportTest.aspx there are warning icons beside it.. Try to delete warning files, and re-add.. You can find the files at recycle bin.. delete, and re-add the files
It basically means it can't find your files. 1. Try to close and reopen the project. 2. Re-add the files via Add -> Existing item.
best to run solutions away from desktop. (and "Document and Settings" folder). try moving your solution folder to C:\Projects\ or smth and try again and see if it fixes it.
or if you are not using any resources in your form, then remove it (from project), when you need it will get added automatically next time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With