diff options
author | Bob Arnson <bob@joyofsetup.com> | 2019-10-28 21:17:09 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2019-10-28 21:22:25 -0400 |
commit | 7a934bcfb8d460b0cf91a51caa956a8bbff14edf (patch) | |
tree | 861e5cc38b9ee762d8de1e679f65ec305d52c5f5 | |
parent | cc153493c432de282ad7297c7e674340829caf7f (diff) | |
download | wix-7a934bcfb8d460b0cf91a51caa956a8bbff14edf.tar.gz wix-7a934bcfb8d460b0cf91a51caa956a8bbff14edf.tar.bz2 wix-7a934bcfb8d460b0cf91a51caa956a8bbff14edf.zip |
Modernize tuple creation and update dependencies.
-rw-r--r-- | src/ca/fwca.vcxproj | 23 | ||||
-rw-r--r-- | src/ca/packages.config | 4 | ||||
-rw-r--r-- | src/test/WixToolsetTest.Firewall/WixToolsetTest.Firewall.csproj | 12 | ||||
-rw-r--r-- | src/wixext/FirewallCompiler.cs | 33 | ||||
-rw-r--r-- | src/wixext/FirewallWindowsInstallerBackendExtension.cs | 5 | ||||
-rw-r--r-- | src/wixext/Tuples/FirewallTupleDefinitions.cs | 3 | ||||
-rw-r--r-- | src/wixext/Tuples/WixFirewallExceptionTuple.cs | 19 | ||||
-rw-r--r-- | src/wixext/tables.xml | 2 | ||||
-rw-r--r-- | src/wixlib/firewall.wixproj | 4 | ||||
-rw-r--r-- | src/wixlib/packages.config | 2 |
10 files changed, 47 insertions, 60 deletions
diff --git a/src/ca/fwca.vcxproj b/src/ca/fwca.vcxproj index a933ed06..de77df9b 100644 --- a/src/ca/fwca.vcxproj +++ b/src/ca/fwca.vcxproj | |||
@@ -1,10 +1,8 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!-- 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 | <!-- 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. --> |
3 | |||
4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 3 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
5 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props')" /> | 4 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.8\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.8\build\WixToolset.WcaUtil.props')" /> |
6 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props')" /> | 5 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props')" /> |
7 | |||
8 | <ItemGroup Label="ProjectConfigurations"> | 6 | <ItemGroup Label="ProjectConfigurations"> |
9 | <ProjectConfiguration Include="Debug|Win32"> | 7 | <ProjectConfiguration Include="Debug|Win32"> |
10 | <Configuration>Debug</Configuration> | 8 | <Configuration>Debug</Configuration> |
@@ -15,7 +13,6 @@ | |||
15 | <Platform>Win32</Platform> | 13 | <Platform>Win32</Platform> |
16 | </ProjectConfiguration> | 14 | </ProjectConfiguration> |
17 | </ItemGroup> | 15 | </ItemGroup> |
18 | |||
19 | <PropertyGroup Label="Globals"> | 16 | <PropertyGroup Label="Globals"> |
20 | <ProjectGuid>{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}</ProjectGuid> | 17 | <ProjectGuid>{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}</ProjectGuid> |
21 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 18 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
@@ -25,40 +22,32 @@ | |||
25 | <ProjectModuleDefinitionFile>fwca.def</ProjectModuleDefinitionFile> | 22 | <ProjectModuleDefinitionFile>fwca.def</ProjectModuleDefinitionFile> |
26 | <Description>WiX Toolset Firewall CustomAction</Description> | 23 | <Description>WiX Toolset Firewall CustomAction</Description> |
27 | </PropertyGroup> | 24 | </PropertyGroup> |
28 | |||
29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 25 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
30 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 26 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
31 | |||
32 | <PropertyGroup> | 27 | <PropertyGroup> |
33 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> | 28 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> |
34 | </PropertyGroup> | 29 | </PropertyGroup> |
35 | |||
36 | <ItemGroup> | 30 | <ItemGroup> |
37 | <ClCompile Include="dllmain.cpp"> | 31 | <ClCompile Include="dllmain.cpp"> |
38 | <PrecompiledHeader>Create</PrecompiledHeader> | 32 | <PrecompiledHeader>Create</PrecompiledHeader> |
39 | </ClCompile> | 33 | </ClCompile> |
40 | <ClCompile Include="firewall.cpp" /> | 34 | <ClCompile Include="firewall.cpp" /> |
41 | </ItemGroup> | 35 | </ItemGroup> |
42 | |||
43 | <ItemGroup> | 36 | <ItemGroup> |
44 | <ClInclude Include="cost.h" /> | 37 | <ClInclude Include="cost.h" /> |
45 | <ClInclude Include="CustomMsiErrors.h" /> | 38 | <ClInclude Include="CustomMsiErrors.h" /> |
46 | <ClInclude Include="precomp.h" /> | 39 | <ClInclude Include="precomp.h" /> |
47 | </ItemGroup> | 40 | </ItemGroup> |
48 | |||
49 | <ItemGroup> | 41 | <ItemGroup> |
50 | <None Include="packages.config" /> | ||
51 | <None Include="fwca.def" /> | 42 | <None Include="fwca.def" /> |
43 | <None Include="packages.config" /> | ||
52 | </ItemGroup> | 44 | </ItemGroup> |
53 | |||
54 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 45 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
55 | |||
56 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 46 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
57 | <PropertyGroup> | 47 | <PropertyGroup> |
58 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | 48 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
59 | </PropertyGroup> | 49 | </PropertyGroup> |
60 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.6\build\WixToolset.DUtil.props'))" /> | 50 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props'))" /> |
61 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.2\build\WixToolset.WcaUtil.props'))" /> | 51 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.8\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.8\build\WixToolset.WcaUtil.props'))" /> |
62 | </Target> | 52 | </Target> |
63 | </Project> | 53 | </Project> \ No newline at end of file |
64 | |||
diff --git a/src/ca/packages.config b/src/ca/packages.config index b87f9ab4..4e9403bf 100644 --- a/src/ca/packages.config +++ b/src/ca/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="WixToolset.DUtil" version="4.0.6" targetFramework="native" /> | 3 | <package id="WixToolset.DUtil" version="4.0.18" targetFramework="native" /> |
4 | <package id="WixToolset.WcaUtil" version="4.0.2" targetFramework="native" /> | 4 | <package id="WixToolset.WcaUtil" version="4.0.8" targetFramework="native" /> |
5 | </packages> \ No newline at end of file | 5 | </packages> \ No newline at end of file |
diff --git a/src/test/WixToolsetTest.Firewall/WixToolsetTest.Firewall.csproj b/src/test/WixToolsetTest.Firewall/WixToolsetTest.Firewall.csproj index d9c026f2..306f4b5f 100644 --- a/src/test/WixToolsetTest.Firewall/WixToolsetTest.Firewall.csproj +++ b/src/test/WixToolsetTest.Firewall/WixToolsetTest.Firewall.csproj | |||
@@ -23,6 +23,9 @@ | |||
23 | </ItemGroup> | 23 | </ItemGroup> |
24 | 24 | ||
25 | <ItemGroup> | 25 | <ItemGroup> |
26 | <PackageReference Include="WixToolset.Core" Version="4.0.*" PrivateAssets="all" /> | ||
27 | <PackageReference Include="WixToolset.Core.Burn" Version="4.0.*" PrivateAssets="all" /> | ||
28 | <PackageReference Include="WixToolset.Core.WindowsInstaller" Version="4.0.*" PrivateAssets="all" /> | ||
26 | <PackageReference Include="WixToolset.Core.TestPackage" Version="4.0.*" PrivateAssets="all" /> | 29 | <PackageReference Include="WixToolset.Core.TestPackage" Version="4.0.*" PrivateAssets="all" /> |
27 | </ItemGroup> | 30 | </ItemGroup> |
28 | 31 | ||
@@ -31,8 +34,11 @@ | |||
31 | </ItemGroup> | 34 | </ItemGroup> |
32 | 35 | ||
33 | <ItemGroup> | 36 | <ItemGroup> |
34 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" /> | 37 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" /> |
35 | <PackageReference Include="xunit" Version="2.4.0" /> | 38 | <PackageReference Include="xunit" Version="2.4.1" /> |
36 | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /> | 39 | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1"> |
40 | <PrivateAssets>all</PrivateAssets> | ||
41 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
42 | </PackageReference> | ||
37 | </ItemGroup> | 43 | </ItemGroup> |
38 | </Project> | 44 | </Project> |
diff --git a/src/wixext/FirewallCompiler.cs b/src/wixext/FirewallCompiler.cs index 0696b4b1..353afff3 100644 --- a/src/wixext/FirewallCompiler.cs +++ b/src/wixext/FirewallCompiler.cs | |||
@@ -4,10 +4,10 @@ namespace WixToolset.Firewall | |||
4 | { | 4 | { |
5 | using System; | 5 | using System; |
6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
7 | using System.Globalization; | ||
8 | using System.Xml.Linq; | 7 | using System.Xml.Linq; |
9 | using WixToolset.Data; | 8 | using WixToolset.Data; |
10 | using WixToolset.Extensibility; | 9 | using WixToolset.Extensibility; |
10 | using WixToolset.Firewall.Tuples; | ||
11 | 11 | ||
12 | /// <summary> | 12 | /// <summary> |
13 | /// The compiler for the WiX Toolset Firewall Extension. | 13 | /// The compiler for the WiX Toolset Firewall Extension. |
@@ -255,13 +255,18 @@ namespace WixToolset.Firewall | |||
255 | fileId = file; | 255 | fileId = file; |
256 | } | 256 | } |
257 | 257 | ||
258 | var row = this.ParseHelper.CreateRow(section, sourceLineNumbers, "WixFirewallException", id); | 258 | var tuple = new WixFirewallExceptionTuple(sourceLineNumbers, id) |
259 | row.Set(1, name); | 259 | { |
260 | row.Set(2, remoteAddresses); | 260 | Name = name, |
261 | RemoteAddresses = remoteAddresses, | ||
262 | Profile = profile ?? FirewallConstants.NET_FW_PROFILE2_ALL, | ||
263 | ComponentRef = componentId, | ||
264 | Description = description, | ||
265 | }; | ||
261 | 266 | ||
262 | if (!String.IsNullOrEmpty(port)) | 267 | if (!String.IsNullOrEmpty(port)) |
263 | { | 268 | { |
264 | row.Set(3, port); | 269 | tuple.Port = port; |
265 | 270 | ||
266 | if (!protocol.HasValue) | 271 | if (!protocol.HasValue) |
267 | { | 272 | { |
@@ -270,32 +275,24 @@ namespace WixToolset.Firewall | |||
270 | } | 275 | } |
271 | } | 276 | } |
272 | 277 | ||
273 | if (protocol.HasValue) | 278 | tuple.Protocol = protocol.Value; |
274 | { | ||
275 | row.Set(4, protocol); | ||
276 | } | ||
277 | 279 | ||
278 | if (!String.IsNullOrEmpty(fileId)) | 280 | if (!String.IsNullOrEmpty(fileId)) |
279 | { | 281 | { |
280 | row.Set(5, $"[#{fileId}]"); | 282 | tuple.Program = $"[#{fileId}]"; |
281 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "File", fileId); | 283 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "File", fileId); |
282 | } | 284 | } |
283 | else if (!String.IsNullOrEmpty(program)) | 285 | else if (!String.IsNullOrEmpty(program)) |
284 | { | 286 | { |
285 | row.Set(5, program); | 287 | tuple.Program = program; |
286 | } | 288 | } |
287 | 289 | ||
288 | if (CompilerConstants.IntegerNotSet != attributes) | 290 | if (CompilerConstants.IntegerNotSet != attributes) |
289 | { | 291 | { |
290 | row.Set(6, attributes); | 292 | tuple.Attributes = attributes; |
291 | } | 293 | } |
292 | 294 | ||
293 | // Default is "all" | 295 | section.Tuples.Add(tuple); |
294 | row.Set(7, profile ?? FirewallConstants.NET_FW_PROFILE2_ALL); | ||
295 | |||
296 | row.Set(8, componentId); | ||
297 | |||
298 | row.Set(9, description); | ||
299 | 296 | ||
300 | if (this.Context.Platform == Platform.ARM) | 297 | if (this.Context.Platform == Platform.ARM) |
301 | { | 298 | { |
diff --git a/src/wixext/FirewallWindowsInstallerBackendExtension.cs b/src/wixext/FirewallWindowsInstallerBackendExtension.cs index a3949e69..47a01ac0 100644 --- a/src/wixext/FirewallWindowsInstallerBackendExtension.cs +++ b/src/wixext/FirewallWindowsInstallerBackendExtension.cs | |||
@@ -1,9 +1,10 @@ | |||
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. | 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 | 2 | ||
3 | namespace WixToolset.Firewall | 3 | namespace WixToolset.Firewall |
4 | { | 4 | { |
5 | using System.Linq; | 5 | using System.Linq; |
6 | using System.Xml; | 6 | using System.Xml; |
7 | using WixToolset.Data; | ||
7 | using WixToolset.Data.WindowsInstaller; | 8 | using WixToolset.Data.WindowsInstaller; |
8 | using WixToolset.Extensibility; | 9 | using WixToolset.Extensibility; |
9 | 10 | ||
@@ -13,6 +14,8 @@ namespace WixToolset.Firewall | |||
13 | 14 | ||
14 | protected override TableDefinition[] TableDefinitionsForTuples => Tables; | 15 | protected override TableDefinition[] TableDefinitionsForTuples => Tables; |
15 | 16 | ||
17 | public override bool TryAddTupleToOutput(IntermediateTuple tuple, WindowsInstallerData output) => this.BackendHelper.TryAddTupleToOutputMatchingTableDefinitions(tuple, output, this.TableDefinitionsForTuples, true); | ||
18 | |||
16 | private static TableDefinition[] LoadTables() | 19 | private static TableDefinition[] LoadTables() |
17 | { | 20 | { |
18 | using (var resourceStream = typeof(FirewallWindowsInstallerBackendBinderExtension).Assembly.GetManifestResourceStream("WixToolset.Firewall.tables.xml")) | 21 | using (var resourceStream = typeof(FirewallWindowsInstallerBackendBinderExtension).Assembly.GetManifestResourceStream("WixToolset.Firewall.tables.xml")) |
diff --git a/src/wixext/Tuples/FirewallTupleDefinitions.cs b/src/wixext/Tuples/FirewallTupleDefinitions.cs index 79fc28cf..df595c18 100644 --- a/src/wixext/Tuples/FirewallTupleDefinitions.cs +++ b/src/wixext/Tuples/FirewallTupleDefinitions.cs | |||
@@ -15,7 +15,6 @@ namespace WixToolset.Firewall.Tuples | |||
15 | FirewallTupleDefinitionNames.WixFirewallException, | 15 | FirewallTupleDefinitionNames.WixFirewallException, |
16 | new[] | 16 | new[] |
17 | { | 17 | { |
18 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.WixFirewallException), IntermediateFieldType.String), | ||
19 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Name), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Name), IntermediateFieldType.String), |
20 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.RemoteAddresses), IntermediateFieldType.String), | 19 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.RemoteAddresses), IntermediateFieldType.String), |
21 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Port), IntermediateFieldType.String), | 20 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Port), IntermediateFieldType.String), |
@@ -23,7 +22,7 @@ namespace WixToolset.Firewall.Tuples | |||
23 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Program), IntermediateFieldType.String), | 22 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Program), IntermediateFieldType.String), |
24 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Attributes), IntermediateFieldType.Number), | 23 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Attributes), IntermediateFieldType.Number), |
25 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Profile), IntermediateFieldType.Number), | 24 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Profile), IntermediateFieldType.Number), |
26 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Component_), IntermediateFieldType.String), | 25 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.ComponentRef), IntermediateFieldType.String), |
27 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Description), IntermediateFieldType.String), | 26 | new IntermediateFieldDefinition(nameof(WixFirewallExceptionTupleFields.Description), IntermediateFieldType.String), |
28 | }, | 27 | }, |
29 | typeof(WixFirewallExceptionTuple)); | 28 | typeof(WixFirewallExceptionTuple)); |
diff --git a/src/wixext/Tuples/WixFirewallExceptionTuple.cs b/src/wixext/Tuples/WixFirewallExceptionTuple.cs index 715a4b9b..3c7cda3a 100644 --- a/src/wixext/Tuples/WixFirewallExceptionTuple.cs +++ b/src/wixext/Tuples/WixFirewallExceptionTuple.cs | |||
@@ -6,7 +6,6 @@ namespace WixToolset.Firewall.Tuples | |||
6 | 6 | ||
7 | public enum WixFirewallExceptionTupleFields | 7 | public enum WixFirewallExceptionTupleFields |
8 | { | 8 | { |
9 | WixFirewallException, | ||
10 | Name, | 9 | Name, |
11 | RemoteAddresses, | 10 | RemoteAddresses, |
12 | Port, | 11 | Port, |
@@ -14,7 +13,7 @@ namespace WixToolset.Firewall.Tuples | |||
14 | Program, | 13 | Program, |
15 | Attributes, | 14 | Attributes, |
16 | Profile, | 15 | Profile, |
17 | Component_, | 16 | ComponentRef, |
18 | Description, | 17 | Description, |
19 | } | 18 | } |
20 | 19 | ||
@@ -30,12 +29,6 @@ namespace WixToolset.Firewall.Tuples | |||
30 | 29 | ||
31 | public IntermediateField this[WixFirewallExceptionTupleFields index] => this.Fields[(int)index]; | 30 | public IntermediateField this[WixFirewallExceptionTupleFields index] => this.Fields[(int)index]; |
32 | 31 | ||
33 | public string WixFirewallException | ||
34 | { | ||
35 | get => this.Fields[(int)WixFirewallExceptionTupleFields.WixFirewallException].AsString(); | ||
36 | set => this.Set((int)WixFirewallExceptionTupleFields.WixFirewallException, value); | ||
37 | } | ||
38 | |||
39 | public string Name | 32 | public string Name |
40 | { | 33 | { |
41 | get => this.Fields[(int)WixFirewallExceptionTupleFields.Name].AsString(); | 34 | get => this.Fields[(int)WixFirewallExceptionTupleFields.Name].AsString(); |
@@ -54,9 +47,9 @@ namespace WixToolset.Firewall.Tuples | |||
54 | set => this.Set((int)WixFirewallExceptionTupleFields.Port, value); | 47 | set => this.Set((int)WixFirewallExceptionTupleFields.Port, value); |
55 | } | 48 | } |
56 | 49 | ||
57 | public int Protocol | 50 | public int? Protocol |
58 | { | 51 | { |
59 | get => this.Fields[(int)WixFirewallExceptionTupleFields.Protocol].AsNumber(); | 52 | get => this.Fields[(int)WixFirewallExceptionTupleFields.Protocol].AsNullableNumber(); |
60 | set => this.Set((int)WixFirewallExceptionTupleFields.Protocol, value); | 53 | set => this.Set((int)WixFirewallExceptionTupleFields.Protocol, value); |
61 | } | 54 | } |
62 | 55 | ||
@@ -78,10 +71,10 @@ namespace WixToolset.Firewall.Tuples | |||
78 | set => this.Set((int)WixFirewallExceptionTupleFields.Profile, value); | 71 | set => this.Set((int)WixFirewallExceptionTupleFields.Profile, value); |
79 | } | 72 | } |
80 | 73 | ||
81 | public string Component_ | 74 | public string ComponentRef |
82 | { | 75 | { |
83 | get => this.Fields[(int)WixFirewallExceptionTupleFields.Component_].AsString(); | 76 | get => this.Fields[(int)WixFirewallExceptionTupleFields.ComponentRef].AsString(); |
84 | set => this.Set((int)WixFirewallExceptionTupleFields.Component_, value); | 77 | set => this.Set((int)WixFirewallExceptionTupleFields.ComponentRef, value); |
85 | } | 78 | } |
86 | 79 | ||
87 | public string Description | 80 | public string Description |
diff --git a/src/wixext/tables.xml b/src/wixext/tables.xml index 5b408b96..b0c32305 100644 --- a/src/wixext/tables.xml +++ b/src/wixext/tables.xml | |||
@@ -17,7 +17,7 @@ | |||
17 | <columnDefinition name="Program" type="string" length="255" nullable="yes" modularize="property" | 17 | <columnDefinition name="Program" type="string" length="255" nullable="yes" modularize="property" |
18 | category="formatted" description="Exception for a program (formatted path name)." /> | 18 | category="formatted" description="Exception for a program (formatted path name)." /> |
19 | <columnDefinition name="Attributes" type="number" length="4" nullable="yes" | 19 | <columnDefinition name="Attributes" type="number" length="4" nullable="yes" |
20 | minValue="0" maxValue="65536" description="Vital=1" /> | 20 | description="Vital=1" /> |
21 | <columnDefinition name="Profile" type="number" length="4" nullable="no" | 21 | <columnDefinition name="Profile" type="number" length="4" nullable="no" |
22 | category="integer" minValue="1" maxValue="2147483647" description="Profile (1=domain; 2=private; 4=public; 2147483647=all)." /> | 22 | category="integer" minValue="1" maxValue="2147483647" description="Profile (1=domain; 2=private; 4=public; 2147483647=all)." /> |
23 | <columnDefinition name="Component_" type="string" length="72" modularize="column" | 23 | <columnDefinition name="Component_" type="string" length="72" modularize="column" |
diff --git a/src/wixlib/firewall.wixproj b/src/wixlib/firewall.wixproj index 71a17115..e14c29ed 100644 --- a/src/wixlib/firewall.wixproj +++ b/src/wixlib/firewall.wixproj | |||
@@ -1,7 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!-- 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 | <!-- 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. --> |
3 | <Project DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> | 3 | <Project DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> |
4 | <Import Project="..\..\packages\WixToolset.MSBuild.4.0.0-build-0005\build\WixToolset.MSBuild.props" Condition="Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0005\build\WixToolset.MSBuild.props')" /> | 4 | <Import Project="..\..\packages\WixToolset.MSBuild.4.0.0-build-0051\build\WixToolset.MSBuild.props" Condition="Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0051\build\WixToolset.MSBuild.props')" /> |
5 | <Import Project="..\FindLocalWix.props" /> | 5 | <Import Project="..\FindLocalWix.props" /> |
6 | <PropertyGroup> | 6 | <PropertyGroup> |
7 | <ProjectGuid>{1acffefd-505a-41a5-acbf-a02b7b473aa2}</ProjectGuid> | 7 | <ProjectGuid>{1acffefd-505a-41a5-acbf-a02b7b473aa2}</ProjectGuid> |
@@ -38,7 +38,7 @@ | |||
38 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | 38 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
39 | </PropertyGroup> | 39 | </PropertyGroup> |
40 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> | 40 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> |
41 | <Error Condition="!Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0005\build\WixToolset.MSBuild.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.MSBuild.4.0.0-build-0005\build\WixToolset.MSBuild.props'))" /> | 41 | <Error Condition="!Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0051\build\WixToolset.MSBuild.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.MSBuild.4.0.0-build-0051\build\WixToolset.MSBuild.props'))" /> |
42 | </Target> | 42 | </Target> |
43 | <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> | 43 | <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> |
44 | </Project> \ No newline at end of file | 44 | </Project> \ No newline at end of file |
diff --git a/src/wixlib/packages.config b/src/wixlib/packages.config index f3d424e1..1ae2b79f 100644 --- a/src/wixlib/packages.config +++ b/src/wixlib/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" developmentDependency="true" targetFramework="net40" /> | 3 | <package id="Nerdbank.GitVersioning" version="2.1.65" developmentDependency="true" targetFramework="net40" /> |
4 | <package id="WixToolset.MSBuild" version="4.0.0-build-0005" developmentDependency="true" targetFramework="net40" /> | 4 | <package id="WixToolset.MSBuild" version="4.0.0-build-0051" developmentDependency="true" targetFramework="net40" /> |
5 | </packages> \ No newline at end of file | 5 | </packages> \ No newline at end of file |