Invalid Resource File

后端 未结 5 2609
感动是毒
感动是毒 2021-02-20 00:01

When attempting to compile my C# project, I get the following error:

\'C:\\Documents and Settings\\Dan\\Desktop\\Rowdy Pixel\\Apps\\CleanerMenu\\CleanerMenu\\obj         


        
相关标签:
5条回答
  • 2021-02-20 00:18

    Is this a file you created and added to the project or did it mysteriously show up?

    You can maybe check your .csproj file and see how it is being referenced (it should be a simple xml file and you can search for CSC97.tmp).

    Perhaps post the information you find so we can have more details to help solve your problem

    0 讨论(0)
  • 2021-02-20 00:26

    I don't know if this will help, but from this forum:

    Add an .ico file to the application section of the properties page, and recieved the error thats been described, when I checked the Icon file with an icon editor, it turn out that the file had more than one version of the image ie (16 x 16, 24 x 24, 32 x 32, 48 x 48 vista compressed), I removed the other formats that I didnt want resaved the file (just with 32x 32) and the application now compiles without error.

    Try opening the icon in an icon editor and see if you see other formats like described (also, try removing the icon and seeing if the project will build again, just to verify the icon is causing it).

    0 讨论(0)
  • 2021-02-20 00:26

    In the project properties, Application tap: In the Resources group just select Icon and manifest radio button. in my project that was the problem and fixed with above steps.

    0 讨论(0)
  • 2021-02-20 00:41

    Looking around, it seems some people resolved this by repairing or reinstalling the .NET SDK. You might want to give that a try.

    P.S. I see why you didn't include more of the compiler output, now. Not much to really see there. :)

    0 讨论(0)
  • 2021-02-20 00:42

    I had a similar issue with an "obj/debug/*.tmp" file erroring out in my build log. Turns out my C:\ drive was out of space. After clearing some space, my builds started working.

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