Visual Studio 不会发布 WiX 扩展中使用的文件
我在 Visual Studio 下构建 wixproj 时遇到问题。
我所做的:
- 将我的预处理器扩展添加为单独的项目(同时阅读 this post)
- 在 Product.wxs 文件中添加了我的扩展方法调用
第一次编译工作完美。我看到 Product.wxs 中所做的更改。当第二次、第三次、第四次等等建造时,事情就会出错。
这就是我得到的:
“无法复制文件 “obj\x86\Release\WixStringFormattingExtension.dll”到 “bin\Release\WixStringFormattingExtension.dll”。该过程不能 访问文件“bin\Release\WixStringFormattingExtension.dll”,因为 它正在被另一个进程使用。”
重新启动 Visual Studio 会有所帮助...但仅限于第一次编译。似乎某些东西 (light.exe Candle.exe devenv.exe) 没有释放文件。
I have a problem with building wixproj under Visual Studio.
What I have done:
- added my preprocessor extension as separate project (wile reading this post)
- added my extension method invocation in Product.wxs file
First compilation works perfectly. I see changes made in Product.wxs. Things are going wrong while building second, third, fourth time and so on.
This is what I get:
"Unable to copy file
"obj\x86\Release\WixStringFormattingExtension.dll" to
"bin\Release\WixStringFormattingExtension.dll". The process cannot
access the file 'bin\Release\WixStringFormattingExtension.dll' because
it is being used by another process."
Restarting Visual Studio helps ... but only for first compilation. It seems like something (light.exe candle.exe devenv.exe) is not releasing files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这听起来像是一个错误报告而不是一个问题...也就是说,为了确认您的怀疑,您可以随时使用 Process Explorer 找出哪个进程正在持有您的文件句柄。为此,请运行它,按 Ctrl+F,然后键入文件名:WixStringFormattingExtension.dll
This sounds like a bug report instead of a question... That said to confirm your suspicion you could always use Process Explorer to figure out what process is holding a handle to your files. To do that, run it, hit Ctrl+F, and type the name of your file: WixStringFormattingExtension.dll