清理 VS2010 WiX 安装程序项目

发布于 2024-09-10 23:51:17 字数 214 浏览 2 评论 0原文

我有一个 VS2010 解决方案,其中包含 WiX 3.5(测试版)Votive 项目(以及我正在安装的程序的所有项目)。当我清理 VS 解决方案时,所有程序项目都会得到正确清理,但 WiX 项目不会 - wixobj、wixpdb 和 msi 文件不会被删除。

所以我的问题是:

我所看到的行为是预期的吗?

如果是这样,我该怎么做才能在清理解决方案时删除这些文件?

I have a VS2010 solution with a WiX 3.5 (beta) Votive project, (as well as all the projects for the program that I am installing). When I clean the VS solution all of the program projects get properly cleaned, but the WiX project does not - the wixobj, wixpdb and msi files are not deleted.

So my questions are:

Is what I am seeing expected behavior?

If so what can I do so that these files are deleted when I clean the solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

雄赳赳气昂昂 2024-09-17 23:51:17

要纠正这种行为,我认为你应该直接修改 wixproj 文件。打开此文件,查看目标名称=“Clean”并将其更改为:

<Target Name = "Clean">
     <RemoveDir Directories="bin\$(Configuration)" />
     <RemoveDir Directories="obj\$(Configuration)" />
</Target>

To correct this behaivor, I think you should modify directly wixproj file. Open this file look at Target Name = "Clean" and change this to:

<Target Name = "Clean">
     <RemoveDir Directories="bin\$(Configuration)" />
     <RemoveDir Directories="obj\$(Configuration)" />
</Target>
吃颗糖壮壮胆 2024-09-17 23:51:17

我认为这种行为是不正确的。但您也可以在 WiX 3.0 RTM 上找到相同的行为。

我的所有产品构建都是自动化的,并且我通过以下(明显的)步骤遇到了这个问题:

  • 清理 WiX - Visual Studio 项目。
  • 删除Bin/(Debug或Release)文件夹中的所有内容。

I think that this behavior is not correct. But you can find the same behavior on WiX 3.0 RTM too.

I have all my product build automated, and I have faced this issue with the following (obvious) steps:

  • Cleaning the WiX - Visual Studio project.
  • Deleting all the contents on Bin/(Debug or Release) folder.
开始看清了 2024-09-17 23:51:17

以下作品也在一行中

<Target Name="CleanMe" AfterTargets="Clean">
<RemoveDir Directories="$(OUTDIR)"/>
</Target>

Following works in one line also

<Target Name="CleanMe" AfterTargets="Clean">
<RemoveDir Directories="$(OUTDIR)"/>
</Target>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文