StudioCherno / Coral

Coral is a C++/C# wrapper around the .NET CoreCLR library, the purpose of Coral is to provide a native interface similar to Mono, but in a more modern style, and using .NET Core instead of .NET Framework
MIT License
220 stars 29 forks source link

File is locked. #24

Open kaitabuchi314 opened 2 months ago

kaitabuchi314 commented 2 months ago

For my game engine, I am using Coral. When I am running my game engine, and try to rebuild the C# project, it says the file is locked.

Ggjorven commented 2 months ago

I think that's because you're trying to overwrite a dynamic library while it is being used (I think). This is not allowed. There are ways around this. You could create a copy of the file and load that so that the 'actual' file is not being used and can be overwritten. And then re-load and copy the file again to use the new version.

ViktorPopp commented 3 weeks ago

Yeah. If the dynamic still not is in use try just closing VS and then open again. That should unload the files exept if they are being run outside VS.