diff options
author | Rob Mensching <rob@firegiant.com> | 2018-07-23 14:42:38 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2018-07-23 14:42:38 -0700 |
commit | 54225eca5faab731a209303f56c0149492852167 (patch) | |
tree | 788ede2035937df8bcc7e9ad129a2fac9bf3ae92 | |
parent | 306f1d0c528cb6c151594ff96a41b5c01a5c4d9b (diff) | |
download | wix-54225eca5faab731a209303f56c0149492852167.tar.gz wix-54225eca5faab731a209303f56c0149492852167.tar.bz2 wix-54225eca5faab731a209303f56c0149492852167.zip |
Integrate Extensibility.Data namespace change
-rw-r--r-- | src/WixToolset.BuildTasks/DoIt.cs | 12 | ||||
-rw-r--r-- | src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj | 4 | ||||
-rw-r--r-- | src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj | 8 | ||||
-rw-r--r-- | src/wix/Program.cs | 12 |
4 files changed, 16 insertions, 20 deletions
diff --git a/src/WixToolset.BuildTasks/DoIt.cs b/src/WixToolset.BuildTasks/DoIt.cs index 02b33522..33842e44 100644 --- a/src/WixToolset.BuildTasks/DoIt.cs +++ b/src/WixToolset.BuildTasks/DoIt.cs | |||
@@ -10,6 +10,7 @@ namespace WixToolset.BuildTasks | |||
10 | using WixToolset.Core; | 10 | using WixToolset.Core; |
11 | using WixToolset.Data; | 11 | using WixToolset.Data; |
12 | using WixToolset.Extensibility; | 12 | using WixToolset.Extensibility; |
13 | using WixToolset.Extensibility.Data; | ||
13 | using WixToolset.Extensibility.Services; | 14 | using WixToolset.Extensibility.Services; |
14 | 15 | ||
15 | /// <summary> | 16 | /// <summary> |
@@ -168,13 +169,10 @@ namespace WixToolset.BuildTasks | |||
168 | var arguments = serviceProvider.GetService<ICommandLineArguments>(); | 169 | var arguments = serviceProvider.GetService<ICommandLineArguments>(); |
169 | arguments.Populate(commandLineString); | 170 | arguments.Populate(commandLineString); |
170 | 171 | ||
171 | var context = serviceProvider.GetService<ICommandLineContext>(); | 172 | var commandLine = serviceProvider.GetService<ICommandLineParser>(); |
172 | context.Messaging = messaging; | 173 | commandLine.ExtensionManager = this.CreateExtensionManagerWithStandardBackends(serviceProvider, arguments.Extensions); |
173 | context.ExtensionManager = this.CreateExtensionManagerWithStandardBackends(serviceProvider, arguments.Extensions); | 174 | commandLine.Arguments = arguments; |
174 | context.Arguments = arguments; | 175 | var command = commandLine.ParseStandardCommandLine(); |
175 | |||
176 | var commandLine = serviceProvider.GetService<ICommandLine>(); | ||
177 | var command = commandLine.ParseStandardCommandLine(context); | ||
178 | command?.Execute(); | 176 | command?.Execute(); |
179 | } | 177 | } |
180 | 178 | ||
diff --git a/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj b/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj index ec16f8b1..8a5c388d 100644 --- a/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj +++ b/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj | |||
@@ -40,12 +40,12 @@ | |||
40 | 40 | ||
41 | <ItemGroup> | 41 | <ItemGroup> |
42 | <PackageReference Include="Microsoft.Build.Tasks.Core" Version="14.3" Condition="'$(TargetFramework)'=='net461' " /> | 42 | <PackageReference Include="Microsoft.Build.Tasks.Core" Version="14.3" Condition="'$(TargetFramework)'=='net461' " /> |
43 | <PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.3.409" Condition="'$(TargetFramework)'=='netcoreapp2.1' " /> | 43 | <PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.7.179" Condition="'$(TargetFramework)'=='netcoreapp2.1' " /> |
44 | <PackageReference Include="WixToolset.Dtf.WindowsInstaller" Version="4.0.*" /> | 44 | <PackageReference Include="WixToolset.Dtf.WindowsInstaller" Version="4.0.*" /> |
45 | </ItemGroup> | 45 | </ItemGroup> |
46 | 46 | ||
47 | <ItemGroup> | 47 | <ItemGroup> |
48 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63102-01" PrivateAssets="All"/> | 48 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63102-01" PrivateAssets="All" /> |
49 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> | 49 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> |
50 | </ItemGroup> | 50 | </ItemGroup> |
51 | </Project> | 51 | </Project> |
diff --git a/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj b/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj index 5ec5b7fd..99da83cd 100644 --- a/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj +++ b/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj | |||
@@ -7,7 +7,7 @@ | |||
7 | <IsPackable>false</IsPackable> | 7 | <IsPackable>false</IsPackable> |
8 | <DebugType>embedded</DebugType> | 8 | <DebugType>embedded</DebugType> |
9 | </PropertyGroup> | 9 | </PropertyGroup> |
10 | 10 | ||
11 | <ItemGroup> | 11 | <ItemGroup> |
12 | <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" /> | 12 | <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" /> |
13 | <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> | 13 | <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> |
@@ -25,8 +25,8 @@ | |||
25 | </ItemGroup> | 25 | </ItemGroup> |
26 | 26 | ||
27 | <ItemGroup> | 27 | <ItemGroup> |
28 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" /> | 28 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" /> |
29 | <PackageReference Include="xunit" Version="2.3.1" /> | 29 | <PackageReference Include="xunit" Version="2.4.0" /> |
30 | <PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" /> | 30 | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /> |
31 | </ItemGroup> | 31 | </ItemGroup> |
32 | </Project> | 32 | </Project> |
diff --git a/src/wix/Program.cs b/src/wix/Program.cs index 134900e9..2a092ffc 100644 --- a/src/wix/Program.cs +++ b/src/wix/Program.cs | |||
@@ -9,6 +9,7 @@ namespace WixToolset.Tools | |||
9 | using WixToolset.Core; | 9 | using WixToolset.Core; |
10 | using WixToolset.Data; | 10 | using WixToolset.Data; |
11 | using WixToolset.Extensibility; | 11 | using WixToolset.Extensibility; |
12 | using WixToolset.Extensibility.Data; | ||
12 | using WixToolset.Extensibility.Services; | 13 | using WixToolset.Extensibility.Services; |
13 | 14 | ||
14 | /// <summary> | 15 | /// <summary> |
@@ -46,13 +47,10 @@ namespace WixToolset.Tools | |||
46 | var arguments = serviceProvider.GetService<ICommandLineArguments>(); | 47 | var arguments = serviceProvider.GetService<ICommandLineArguments>(); |
47 | arguments.Populate(args); | 48 | arguments.Populate(args); |
48 | 49 | ||
49 | var context = serviceProvider.GetService<ICommandLineContext>(); | 50 | var commandLine = serviceProvider.GetService<ICommandLineParser>(); |
50 | context.Messaging = messaging; | 51 | commandLine.ExtensionManager = CreateExtensionManagerWithStandardBackends(serviceProvider, arguments.Extensions); |
51 | context.ExtensionManager = CreateExtensionManagerWithStandardBackends(serviceProvider, arguments.Extensions); | 52 | commandLine.Arguments = arguments; |
52 | context.Arguments = arguments; | 53 | var command = commandLine.ParseStandardCommandLine(); |
53 | |||
54 | var commandLine = serviceProvider.GetService<ICommandLine>(); | ||
55 | var command = commandLine.ParseStandardCommandLine(context); | ||
56 | return command?.Execute() ?? 1; | 54 | return command?.Execute() ?? 1; |
57 | } | 55 | } |
58 | 56 | ||