✅ Couldn't copy obj on VS Studio

Hi guys, I hope ur doing good. Everytime when I code I have this problem and it's annoying. Do you know how to solve this problem? Please help
6 Replies
ZacharyPatten
ZacharyPatten2y ago
we need more info. is there a compiler error? a runtime error? can you share a screenshot and/or short video demonstrating your issue? can you sahre some code?
skywallkerr
skywallkerrOP2y ago
skywallkerr
skywallkerrOP2y ago
this problem
ZacharyPatten
ZacharyPatten2y ago
the error is self explanatory C# works with projects. you have a project that ends in a .csproj extension. when you "build" the project the result of the build gets put in the build output folder (for which the default is bin\... and obj\...). When you run the code in Visual Studio it has to build the code first before it can run it. Visual Studio is trying to build your code, but it cannot copy the result of the build to the build output directory because the files are in use so you need to kill whatever process is running that is preventing Visual Studio from modifying those files. The most likely occurrence of this is that you have the app running in the background there are easy ways to find what process is using what files... but for beginners the easiest solution is generally to restart your PC that will release all file locks you currently have
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server