how do I delete an assembly file after application shutdown? This is not as easy as it sounds, because it is used in my default appdomain. For several reasons I cant simply create a new appdomain and put it there, but app domain solution is not really what I m looking for anyway since this is complicated and I have a hard time juggling around with two of them already. I thought about creating a new process at shutdown which will delete the file I want to delete. But I would need to pass a string file path to that process somehow. In short: am I thinking too complicated? Is there a better solution?
我已经在派遣人员后试图将其删除。 有人叫ShutdownFinished,但似乎仍在使用。
感谢!
编辑:担心,我认为可能出现混淆: 我指的是,我想要删除一个文件。