TemporaryGeneratedFile_[guid] in /obj/debug breaking build

后端 未结 6 1866
我在风中等你
我在风中等你 2020-12-24 04:58

I have 3 temporary files being created in obj/debug:

E.g.

  • TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  • TemporaryGeneratedFil
6条回答
  •  渐次进展
    2020-12-24 05:11

    I solved this issue by going to the project solution (whose build) was giving this error.

    1. right click on the project and unload the project.
    2. Then right click on the project and edit the .csproj file.
    3. Look for these temp (problematic) generated files. (see example code)
    4. remove this file references from the .csproj file.
    5. Right click on project and load back the project.
    6. Rebuild the solution.
    7. Its good to go now...

    they look like this in the csproj file:

    
    
    
    

提交回复
热议问题