Unable to create a manifest resource name error in Visual Studio 2008

前端 未结 6 913
半阙折子戏
半阙折子戏 2021-01-07 22:54

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 follow

相关标签:
6条回答
  • 2021-01-07 23:31

    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.

    0 讨论(0)
  • 2021-01-07 23:36

    After rolling back updates to an application that involved the deletion of new source files that had been created in the rolled back Changesets; the Rebuild generated "Unable to create a manifest resource name" errors for those deleted source files.

    This was resolved by applying the "Exclude from Project" option on the applicable deleted source files. After doing that, the Rebuild ran without errors.

    0 讨论(0)
  • 2021-01-07 23:37

    If you use TFS this error means created file not found, try copy manually files from creator and paste in your forms folder. This worked for me!

    0 讨论(0)
  • 2021-01-07 23:42

    This is my project..

    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

    0 讨论(0)
  • 2021-01-07 23:43

    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>
    
    0 讨论(0)
  • 2021-01-07 23:50

    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

    0 讨论(0)
提交回复
热议问题