when build project error manifest display why and how to solve issue ?

ahmed salah 3,216 Reputation points
2021-01-21T02:26:17.74+00:00

when build desktop app work in csharp I get error manifest why and how to solve issue ?

error details

Severity Code Description Project File Line Suppression State Tool
Error Unable to create a manifest resource name for "........\Module 3.0.0\Trunk\Code\Forms\Forms\Backup.resx". Could not find a part of the path 'C:\Users\ahmed\OneDrive\Desktop\Tab versions\NewTfs 25-09-2019\Module 3.0.0\Trunk\Code\Forms\Forms\Backup.cs'. Tab

so How to solve issue please ?

error display

Unable to create a manifest resource name for "........\Module 3.0.0\Trunk\Code\Forms\Forms\Backup.resx". Could not find a part of the path 'C:\Users\ahmed\OneDrive\Desktop\Tab versions\NewTfs 25-09-2019\Module 3.0.0\Trunk\Code\Forms\Forms\Backup.cs'

i attached my project file

<Compile Include="..\..\..\..\Module 3.0.0\Trunk\Code\Forms\Forms\Backup.cs">  
     <Link>Root\Backup.cs</Link>  
   </Compile>  
   <Compile Include="..\..\..\..\Module 3.0.0\Trunk\Code\Forms\Forms\Backup.designer.cs">  
     <Link>Root\Backup.designer.cs</Link>  
     <DependentUpon>Backup.cs</DependentUpon>  
   </Compile>  
lt;EmbeddedResource Include="..\..\..\..\Module 3.0.0\Trunk\Code\Forms\Forms\Backup.resx">  
     <Link>Root\Backup.resx</Link>  
     <DependentUpon>Backup.cs</DependentUpon>  
   </EmbeddedResource>  

so i need to know why this issue happen and how to solve it

i work on visual studio 2019 csharp .NET Framework 4

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,383 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,621 Reputation points
    2021-01-22T02:27:35.467+00:00

    Hi ahmedsalah-1628,
    This error usually occurs when the compiler cannot find any referenced files.
    Did you add the project to the solution file? If not, add it to the new location and check.
    Please follow the steps below:

    1. Click "Show All Files"on Solution Explorer.
    2. Go to the file that does not have Designer View.
    3. Right click the file and choose "Exclude From Project".
    4. Then right click "Include In Project".
      If not successful, more motheds in these threads you can refer to.
      Unable to create a manifest resource name error in Visual Studio 2008
      Unable to create a manifest resource name for “Form1.resx”; Could not find “…Form1.cs”
      Error : Unable to create a manifest resource name for "C:.......\Form1.resx". Could not find a part of the path 'C:............\Form1.cs'.
      Unable to create a manifest resource name for "Form1.resx". The file or directory is corrupted and unreadable.
      Best Regards,
      Daniel Zhang

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments