我正在使用WiX 3.7与Visual Studio 2008,我正在尝试添加对少数WiX DLL文件的引用,以便我可以在我的安装中使用UI.但是,我为以下每个添加引用的文件收到以下错误:
无法添加对C:\ Program Files(x86)\ WiX Toolset v3.7\WixNetFxExtension.dll的引用.请确保该文件可访问,并且该文件是有效的WiX参考.
此外,在我开始考虑迁移到基于UI的界面之前,我正在创建的WiX安装程序没有问题; 它编译和安装绝对罚款.
请注意,我可以在Visual Studio 2012和Visual Studio 2010中添加对相同文件的引用.
我试图通过应用xml转换来清理heat.exe生成的wxs文件.
下面是heat.exe的示例文件输出.
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="APPFOLDER">
<Component Id="cmp78E9FF58917B1844F3E9315A285F3147" Guid="SOME-GUID">
<File Id="fil093D6D7CB723B5B62730D7B4E575F154" KeyPath="yes" Source="PQR.Some.dll" />
</Component>
<Component Id="cmp0B084126FAE7577FD84DB29766AC6C2B" Guid="SOME-GUID">
<File Id="filB20C8708D7EB02EDFBCC4D70F9FE7F8A" KeyPath="yes" Source="ABC.Another.dll" />
</Component>
<Component Id="cmp83BB1954DECD7D949AAE4ACA68806EC3" Guid="SOME-GUID">
<File Id="fil0E29FBFF7DB39F307A2EE19237A0A579" KeyPath="yes" Source="ABC.OneMore.dll" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="AppFiles">
<ComponentRef Id="cmp78E9FF58917B1844F3E9315A285F3147" />
<ComponentRef Id="cmp0B084126FAE7577FD84DB29766AC6C2B" />
<ComponentRef Id="cmp83BB1954DECD7D949AAE4ACA68806EC3" />
</ComponentGroup>
</Fragment>
</Wix>
Run Code Online (Sandbox Code Playgroud)
我想删除其子文件节点具有包含字符串'ABC'的Source属性的Component节点.我知道如何使用正确的匹配模式找到这样的节点.因此,在删除Component节点之前,我想存储组件的Id,然后使用它来删除我刚刚记录的Id的ComponentRef节点.
有没有办法通过XML转换实现这一目标?我想我正在寻找一些可以创建变量的东西,说'X'来存储我删除的组件节点的Id,并使用'X'来查找要删除的ComponentRef节点.
有没有人试图将一个细胞从一个Gridster拖到另一个?我一直试图让它工作......但没有运气.有什么帮助吗?
我正在尝试使用ng-class加载'class'指令.但是当我这样做时,我的指令永远不会被加载.该指令是一个多用途指令,我不想在此创建一个孤立的范围.它将仅在需要时加载,基于ng-class条件,因此不使用attribute或element指令.有没有人试过这样做并成功了?
使用此指令使用<div ng-class="someClass {{tooltip: enabled}}"></div>
此处enabled是范围变量.
app.directive('tooltip', ['$timeout', '$location', '$rootScope', function (timer, $location, $rootScope) {
return {
restrict: 'C',
transclude: true,
link: function (scope, element) {
var printContent = function () {
/* uses the content of .tooltip-content if it is a complex html tooltip,
otherwise
you can use the title attribute for plaintext tooltips
*/
var tooltipContent = $(element).find('.tooltip-content').html();
if (!tooltipContent) {
tooltipContent = $(element).attr('title');
}
$(element).tooltip({
content: tooltipContent,
items: "img, a, span, button, div",
tooltipClass: …Run Code Online (Sandbox Code Playgroud)