diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2019-02-15 19:12:01 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-05-11 19:11:19 -0500 |
commit | 22263a6a6ca49222d9c46acf8e99a68ffc699a54 (patch) | |
tree | dca124a57c827fbd9ee22a41f2ff9aad1023cb1a | |
parent | dd40005b0cc376410cd931c9790bdd69551e9aa1 (diff) | |
download | wix-22263a6a6ca49222d9c46acf8e99a68ffc699a54.tar.gz wix-22263a6a6ca49222d9c46acf8e99a68ffc699a54.tar.bz2 wix-22263a6a6ca49222d9c46acf8e99a68ffc699a54.zip |
WIXFEAT:3815 - Create WixBAFactory to address changes in BootstrapperCore.
-rw-r--r-- | src/WixToolset.WixBA/Properties/AssemblyInfo.cs | 4 | ||||
-rw-r--r-- | src/WixToolset.WixBA/WixBA.cs | 6 | ||||
-rw-r--r-- | src/WixToolset.WixBA/WixBAFactory.cs | 14 | ||||
-rw-r--r-- | src/WixToolset.WixBA/WixDistribution.cs | 2 | ||||
-rw-r--r-- | src/WixToolset.WixBA/WixToolset.WixBA.csproj | 3 | ||||
-rw-r--r-- | src/WixToolset.WixBA/packages.config | 2 |
6 files changed, 26 insertions, 5 deletions
diff --git a/src/WixToolset.WixBA/Properties/AssemblyInfo.cs b/src/WixToolset.WixBA/Properties/AssemblyInfo.cs index 566bc9f2..9c40cc07 100644 --- a/src/WixToolset.WixBA/Properties/AssemblyInfo.cs +++ b/src/WixToolset.WixBA/Properties/AssemblyInfo.cs | |||
@@ -17,6 +17,6 @@ using WixToolset.WixBA; | |||
17 | [assembly: Guid("0ffc4944-9295-40b7-adac-3a6864b5219b")] | 17 | [assembly: Guid("0ffc4944-9295-40b7-adac-3a6864b5219b")] |
18 | [assembly: CLSCompliantAttribute(true)] | 18 | [assembly: CLSCompliantAttribute(true)] |
19 | 19 | ||
20 | // Identifies the class that derives from BootstrapperApplication and is the BA class that gets | 20 | // Identifies the class that derives from IBootstrapperApplicationFactory and is the BAFactory class that gets |
21 | // instantiated by the interop layer | 21 | // instantiated by the interop layer |
22 | [assembly: BootstrapperApplication(typeof(WixBA))] | 22 | [assembly: BootstrapperApplicationFactory(typeof(WixBAFactory))] |
diff --git a/src/WixToolset.WixBA/WixBA.cs b/src/WixToolset.WixBA/WixBA.cs index e0444f06..6b64b252 100644 --- a/src/WixToolset.WixBA/WixBA.cs +++ b/src/WixToolset.WixBA/WixBA.cs | |||
@@ -19,6 +19,12 @@ namespace WixToolset.WixBA | |||
19 | /// </summary> | 19 | /// </summary> |
20 | public class WixBA : BootstrapperApplication | 20 | public class WixBA : BootstrapperApplication |
21 | { | 21 | { |
22 | public WixBA(Engine engine, Command command) | ||
23 | : base(engine, command) | ||
24 | { | ||
25 | |||
26 | } | ||
27 | |||
22 | /// <summary> | 28 | /// <summary> |
23 | /// Gets the global model. | 29 | /// Gets the global model. |
24 | /// </summary> | 30 | /// </summary> |
diff --git a/src/WixToolset.WixBA/WixBAFactory.cs b/src/WixToolset.WixBA/WixBAFactory.cs new file mode 100644 index 00000000..66012521 --- /dev/null +++ b/src/WixToolset.WixBA/WixBAFactory.cs | |||
@@ -0,0 +1,14 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.WixBA | ||
4 | { | ||
5 | using WixToolset.BootstrapperCore; | ||
6 | |||
7 | public class WixBAFactory : BaseBootstrapperApplicationFactory | ||
8 | { | ||
9 | protected override IBootstrapperApplication Create(Engine engine, ref Command command) | ||
10 | { | ||
11 | return new WixBA(engine, command); | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/src/WixToolset.WixBA/WixDistribution.cs b/src/WixToolset.WixBA/WixDistribution.cs index 6b7ed4f0..0d20e585 100644 --- a/src/WixToolset.WixBA/WixDistribution.cs +++ b/src/WixToolset.WixBA/WixDistribution.cs | |||
@@ -41,7 +41,7 @@ namespace WixToolset | |||
41 | /// <summary> | 41 | /// <summary> |
42 | /// Telemetry URL format for the distribution. | 42 | /// Telemetry URL format for the distribution. |
43 | /// </summary> | 43 | /// </summary> |
44 | public static string TelemetryUrlFormat = "http://wixtoolset.org/telemetry/v{0}/?r={1}"; | 44 | public static string TelemetryUrlFormat = "http://wixtoolset.org/integrationtelemetry/v{0}/?r={1}"; |
45 | 45 | ||
46 | /// <summary> | 46 | /// <summary> |
47 | /// VS Extensions Landing page Url for the distribution. | 47 | /// VS Extensions Landing page Url for the distribution. |
diff --git a/src/WixToolset.WixBA/WixToolset.WixBA.csproj b/src/WixToolset.WixBA/WixToolset.WixBA.csproj index 4ce98a03..083d4e6e 100644 --- a/src/WixToolset.WixBA/WixToolset.WixBA.csproj +++ b/src/WixToolset.WixBA/WixToolset.WixBA.csproj | |||
@@ -16,6 +16,7 @@ | |||
16 | <Compile Include="ProgressViewModel.cs" /> | 16 | <Compile Include="ProgressViewModel.cs" /> |
17 | <Compile Include="RelayCommand.cs" /> | 17 | <Compile Include="RelayCommand.cs" /> |
18 | <Compile Include="InstallationViewModel.cs" /> | 18 | <Compile Include="InstallationViewModel.cs" /> |
19 | <Compile Include="WixBAFactory.cs" /> | ||
19 | <Compile Include="WixDistribution.cs" /> | 20 | <Compile Include="WixDistribution.cs" /> |
20 | <Page Include="Styles.xaml"> | 21 | <Page Include="Styles.xaml"> |
21 | <Generator>MSBuild:Compile</Generator> | 22 | <Generator>MSBuild:Compile</Generator> |
@@ -56,7 +57,7 @@ | |||
56 | <Reference Include="System.Xaml" /> | 57 | <Reference Include="System.Xaml" /> |
57 | <Reference Include="WindowsBase" /> | 58 | <Reference Include="WindowsBase" /> |
58 | <Reference Include="WixToolset.BootstrapperCore"> | 59 | <Reference Include="WixToolset.BootstrapperCore"> |
59 | <HintPath>..\..\packages\WixToolset.BootstrapperCore.4.0.3\lib\net20\WixToolset.BootstrapperCore.dll</HintPath> | 60 | <HintPath>..\..\packages\WixToolset.BootstrapperCore.4.0.4\lib\net20\WixToolset.BootstrapperCore.dll</HintPath> |
60 | </Reference> | 61 | </Reference> |
61 | </ItemGroup> | 62 | </ItemGroup> |
62 | <ItemGroup> | 63 | <ItemGroup> |
diff --git a/src/WixToolset.WixBA/packages.config b/src/WixToolset.WixBA/packages.config index e1757432..3ca82077 100644 --- a/src/WixToolset.WixBA/packages.config +++ b/src/WixToolset.WixBA/packages.config | |||
@@ -1,5 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <packages> | 2 | <packages> |
3 | <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="net45" developmentDependency="true" /> | 3 | <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="net45" developmentDependency="true" /> |
4 | <package id="WixToolset.BootstrapperCore" version="4.0.3" targetFramework="net45" /> | 4 | <package id="WixToolset.BootstrapperCore" version="4.0.4" targetFramework="net45" /> |
5 | </packages> \ No newline at end of file | 5 | </packages> \ No newline at end of file |