2

Well, I have some static website files that are required to be added to my project's Resources, so i normally selected build action "Resource" but for some reason whenever i rebuild the solution i get this strange error. After fiddling around for couple of hours i noticed that somehow visual studio doesn't include file extensions when naming a resource so i narrowed down the conflict to be in the fonts folder.

[1]]

Questions

  • Is this a bug in VS 2017 ?, if not is there a way to actually solve this ?

Notes

  • If i normally Build the solution it succeeds, however if i Rebuild that's when the error occurs.
PM.
  • 1,735
  • 1
  • 30
  • 38
Ricky Spanish
  • 705
  • 6
  • 16

1 Answers1

3

Check if there is an item in your project file being referenced twice. In question error RG1000: Unknown build error this has happened after a code merge.

After removing that duplicate reference, clean the project and manually delete obj and bin folder - just to be sure.

divisionby0
  • 170
  • 5
  • The compiler should give a warning that specifies which item was duplicated. – onezeno Aug 02 '21 at 20:56
  • I had to up the build verbosity in order to figure it out. In VS 2022, Tools/Options/Projects and Solutions/Build and Run/MSBuild project build output verbosity: change to Verbose. In my case, my csproj file explicitly included a resource `` and later included that same resource again `` – Tim Cooke Jul 27 '23 at 19:09