On my current project whenever I add, update or delete a resource the tool creates a copy of the designer file which screws things up. I don't see this behavior with my other projects, and as far as I can tell I'm implementing resources the same way. Can anyone shed some light on this behavior? Thanks
Visual studio 2017
The reference to the duplicated designer file is in the csproj file.
You can now reload the solution. If you want to regenerate the designer file:
Unfortunately I have no idea what was causing this for me but after wasting a fair bit of time I found a work around which seems to of worked without issues for me.
I simply deleted the designer file and re-built my project. This automatically re-creates the designer file and everything continued to work as normal.
The only noticeable difference is the designer file now has a 1 on the end of it.
E.g. String.resx -> Strings1.Designer.cs
I have been making changes on and off to this file in the past with no issues. If anyone could explain what got it into this corrupt state, please share with us.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With