I'd like to use JetBrains Rider IDE more in my professional work, however we use IIS (not Express) as our platform for local development, which causes me some issues with building my code.
When I build my solution, it is fine. However when I build my solution with the website open I get several errors which I will list below. If I close the website these persist.
Microsoft.Common.CurrentVersion.targets(5097, 5): [MSB3027] Could not copy "C:\API\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\API.exe". Exceeded retry count of 10. Failed. The file is locked by: "API (41932)"
AND
Microsoft.Common.CurrentVersion.targets(5097, 5): [MSB3021] Unable to copy file "C:\API\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\API.exe". The process cannot access the file 'C:\API\bin\Debug\netcoreapp3.1\API.exe' because it is being used by another process.
So far the only solution I have found for this is stopping and starting my IIS service. This is great, but it has to be done after every change that I make and it can take up to a minute to do this process every time, which is frustrating.
I know that this is currently a tracked issue by JetBrains: https://youtrack.jetbrains.com/issue/RIDER-20542
I am looking to see if anyone has come up with any workarounds for making working with Rider easier under these circumstances, as this issue has been around a long time on their tracker now.