C
C#11mo ago
GabeHasWon

✅ Visual Studio debugging issue with assembly info attribute

I'm working on my game, and very often when I EaC or hot reload, the console will output:
Distractishow.AssemblyInfo.cs (line 17): error ENC0003: Updating 'attribute' requires restarting the application.
Distractishow.AssemblyInfo.cs (line 17): error ENC0003: Updating 'attribute' requires restarting the application.
I've checked what happens to that file during runtime, and the assembly info's version will change from 1.0.0 to some string of values, before almost immediately reverting back. This happened randomly, I've not changed any settings that should modify this, and it only happens to this project on my machine. Nothing else has this issue.
8 Replies
GabeHasWon
GabeHasWonOP11mo ago
Oh right, and removing /obj/ from the root folder fixes the issue for a bit, then it reoccurs sometime later.
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX11mo ago
* close VS * remove the hidden folder .vs * remove all bin and obj folder next to each csproj (DO NOT TOUCH THE .git FOLDER OR WHAT'S INSIDE) * restart vs
GabeHasWon
GabeHasWonOP11mo ago
That did not fix the issue, sadly.
Petris
Petris11mo ago
Does this happen if you commit your changes while running?
GabeHasWon
GabeHasWonOP11mo ago
Commit? If you mean to git, I've never tried that.
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
GabeHasWon
GabeHasWonOP11mo ago
Yes, that's the issue. I don't want to restart the game every time I make a minor change. I'll check out the fix tomorrow though, thanks!
Want results from more Discord servers?
Add your server