Hot Reload attempting to build unrelated files

Hello,

I am working on a Monogame project which has many .cs files for game logic but also some .fx files for shaders. For a few months, hot reload has worked as expected. However after opening and editing some .fx files, hot reload now attempts to build those files when applying changes. It does this even though those files are not normally built via any project, and there are no changes to those files. 

This effectively has broken hot reload for my application. I need Rider to not attempt to compile/build those files during hot reload (which it doesn't during the normal build anyway). I have already tried to File > Invalidate Caches.

Any suggestions?

0
1 comment

Hello Wilkopolis ,

Thank you for reaching Rider Forum.

Could you please let me know if the issue persists in the current Rider version

If it is, could you please share the .csproj, .mgcb files? 

Besides, could you please remove: 

  • All bin and obj folders under your .NET projects.
  • MonoGame content build intermediates (Content/bin, Content/obj or whatever you use).

Then rebuild the game again.

Looking forward to hearing from you soon.

0

Please sign in to leave a comment.