Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能我可以创建一个应用程序域并连接到 DomainUnload 事件,但我想在主应用程序域上这样做。
.net 中没有类似物 :(
你有正确的想法,你需要明确删除它。
// Delete the previously created file. File.Delete(filepath);