Ho alcune DLL compilate in .Net3.5 o in .Net4.0. (Hanno lo stesso nome)
In wix, ho 2 funzioni di condizionale.
Caratteristica Un installa DLL .net3.5 della mia app con ComponentRef Id = "Cmp35"
Caratteristica B installa .net4.0 DLL con ComponentRef Id = "CMP40"
Caratteristiche sono mutuamente esclusive, solo una funzione è installata.Come gestire i file con lo stesso nome in Wix?
miei componenti:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="Cmp35" Guid="..">
<File Id="Behaviors.Assembly" Name="$(var.Behaviors.v3.5.gen.TargetFileName)" Source="$(var.Behaviors.v3.5.gen.TargetPath)" />
<File Id="Other.Assembly" Name="$(var.Other.v3.5.gen.TargetFileName)" Source="$(var.Other.v3.5.gen.TargetPath)" />
</Component>
<Component Id="Cmp40" Guid="...">
<File Id="Behaviors.Assembly.4.0" Name="$(var.Behaviors.v4.0.gen.TargetFileName)" Source="$(var.Behaviors.v4.0.gen.TargetPath)" />
<File Id="Other.Assembly.4.0" Name="$(var.Other.v4.0.gen.TargetFileName)" Source="$(var.Other.v4.0.gen.TargetPath)" />
</Component>
</DirectoryRef>
</Fragment>
</Wix>
ho un errore durante la compilazione: errore LGHT0204: ICE30: Il file di destinazione ... è installato in ... da due componenti diverse su un sistema LFN:
Sembra che abbia un problema perché i nomi dei file sono uguali ...
C'è un modo per gestirlo? Grazie!
Faccio lo stesso, l'unica differenza che ho è che nei miei componenti ho delle condizioni. Funzionerebbe? –