Searching for machine.config in bin folder
I am using C# .net6. for developing an excel-dna add-in and I get this error multiple times while debugging. It is looking for the machine.config in the wrong location while debugging.
Exception thrown: 'System.IO.DirectoryNotFoundException' in System.Private.CoreLib.dll Could not find a part of the path 'C:<application code location>\bin\x64\Debug\net6.0-windows\Config\machine.config'.
Exception thrown: 'System.Net.WebException' in System.Net.Requests.dll Could not find a part of the path 'C:<application code location>\bin\x64\Debug\net6.0-windows\Config\machine.config'.
Exception thrown: 'System.Net.WebException' in System.Private.CoreLib.dll Could not find a part of the path 'C:<application code location>\bin\x64\Debug\net6.0-windows\Config\machine.config'.
Any advice on how to fix this?
This question is directed to "Working with App.Config files", but I don't know how that answers it. I have the same problem, and it seems like it started when the my project upgraded from 1.7.0-rc6 to 1.7.0. However, reverting to rc6 doesn't fix it, so I don't know... The problem only affects debugging. I can run the Release version just fine, but when I try to debug, I get the same DirectoryNotFoundException as TurHan8. I have no idea what to do about it...