✅ is there a way to delete or overwrite a dll during the postbuild event?
I'm trying to do some il weaving as a post build event, and I'd like to either overwrite the old dll, or make a new file and delete the old one, however I always get an IOException (another process is using this file) which I presume comes from msbuild still holding onto the file during the postbuild event.
tldr: is there a workaround to allow automatic post build weaving in visual studio that I don't know of or am I missing something
edit: here's my current csproj file, without the library references (if they matter I can add them)
2 Replies
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
I found a work around using msbuild tasks to move and delete the old one
and the il weaver reads from the dll2 file and outputs to a normal dll with the same name