Error in Visual Studio C #. Please how do i solve it. Thanks a million

stanton francis 1 Reputation point
2020-09-25T00:38:37.377+00:00

Severity Code Description Project File Line Suppression State
Error Resource file "obj\Debug\PUNTO_DE_VENTA_CODIGO369_CSHARP.MODULOS.REPORTES.REPORTES_DE_KARDEX_listo.REPORTES_DE_INVENTARIOS_todos.FormInventariosTodos.resources" has an invalid name. The item metadata "%(FullPath)" cannot be applied to the path "obj\Debug\PUNTO_DE_VENTA_CODIGO369_CSHARP.MODULOS.REPORTES.REPORTES_DE_KARDEX_listo.REPORTES_DE_INVENTARIOS_todos.FormInventariosTodos.resources". obj\Debug\PUNTO_DE_VENTA_CODIGO369_CSHARP.MODULOS.REPORTES.REPORTES_DE_KARDEX_listo.REPORTES_DE_INVENTARIOS_todos.FormInventariosTodos.resources PUNTO_DE_VENTA_CODIGO369_CSHARP C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets 2719

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,430 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Xingyu Zhao-MSFT 5,371 Reputation points
    2020-09-25T05:34:38.467+00:00

    Hi stantonfrancis-7608,

    According to your question, your resource file name is too long.

    Try to move the project to the root of folder, or you can enable the Win32 long paths policy to fix the issue.
    Besides, here's another reference you can refer to.

    Resource file name too long

    Hope it could be helpful.

    Best Regards,
    Xingyu Zhao

    0 comments No comments

  2. stanton francis 1 Reputation point
    2020-10-01T22:15:23.567+00:00

    Thanks for your help but i tried enabling the Win32 long paths policy to fix the issue.
    But it doesn't work. It is still giving the same issues.
    Also i tried the second option Resource file name too long but the file refused to be modified.
    If there is any other help, i would appreciate it.

    0 comments No comments

  3. Xingyu Zhao-MSFT 5,371 Reputation points
    2020-10-02T07:11:57.607+00:00

    Hi stantonfrancis-7608,

    Thanks for your feedback.

    Try deleting the debug folder/directory, or avoid keeping your project in deep nested folder.

    If above suggestions cannot help you solve the problem, please provide more details about your resource file or show a small sample here? It will help us make a test.

    Best Regards,

    Xingyu Zhao

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.