diff options
Diffstat (limited to 'src/ext/Util')
-rw-r--r-- | src/ext/Util/README.md | 53 | ||||
-rw-r--r-- | src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs | 7 | ||||
-rw-r--r-- | src/ext/Util/util_t.proj | 6 | ||||
-rw-r--r-- | src/ext/Util/wixext/UtilDecompiler.cs | 2 | ||||
-rw-r--r-- | src/ext/Util/wixext/WixToolset.Util.wixext.csproj | 5 |
5 files changed, 67 insertions, 6 deletions
diff --git a/src/ext/Util/README.md b/src/ext/Util/README.md index 540c539c..2bbf17ce 100644 --- a/src/ext/Util/README.md +++ b/src/ext/Util/README.md | |||
@@ -1,3 +1,52 @@ | |||
1 | # Util.wixext | 1 | # WixToolset.Util.wixext - Utility WiX Toolset Extension |
2 | WixToolset.Util.wixext - Utility WiX Toolset Extension | ||
3 | 2 | ||
3 | This WiX Extension provides support for configuring various parts of Windows. | ||
4 | |||
5 | [Web Site][web] | [Documentation][docs] | [Issue Tracker][issues] | [Discussions][discussions] | ||
6 | |||
7 | |||
8 | ## Open Source Maintenance Fee | ||
9 | |||
10 | To ensure the long-term sustainability of this project, users of this package who generate revenue must pay an [Open Source Maintenance Fee][osmf]. While the source code is freely available under the terms of the [LICENSE][license], this package and other aspects of the project require [adherence to the Open Source Maintenance Fee EULA][eula]. | ||
11 | |||
12 | To pay the Maintenance Fee, [become a Sponsor](https://github.com/sponsors/wixtoolset). | ||
13 | |||
14 | |||
15 | ## Getting started | ||
16 | |||
17 | Add the WiX Extension as a PackageReference to your .wixproj: | ||
18 | |||
19 | ``` | ||
20 | <Project Sdk="WixToolset.Sdk/7.0.0"> | ||
21 | <ItemGroup> | ||
22 | <PackageReference Include="WixToolset.Util.wixext" Version="7.0.0" /> | ||
23 | </ItemGroup> | ||
24 | </Project> | ||
25 | ``` | ||
26 | |||
27 | Then add the extension's namespace: | ||
28 | |||
29 | ``` | ||
30 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
31 | xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
32 | |||
33 | .. | ||
34 | </Wix> | ||
35 | ``` | ||
36 | |||
37 | ## Additional resources | ||
38 | |||
39 | * [WiX Website][web] | ||
40 | * [WiX Documentation][docs] | ||
41 | * [WiX Issue Tracker][issues] | ||
42 | * [WiX Discussions][discussions] | ||
43 | |||
44 | |||
45 | [web]: https://www.firegiant.com/wixtoolset/ | ||
46 | [docs]: https://docs.firegiant.com/wixtoolset/ | ||
47 | [issues]: https://github.com/wixtoolset/issues/issues | ||
48 | [discussions]: https://github.com/orgs/wixtoolset/discussions | ||
49 | [sdk]: https://www.nuget.org/packages/WixToolset.Sdk/ | ||
50 | [osmf]: https://opensourcemaintenancefee.org/ | ||
51 | [license]: https://github.com/wixtoolset/wix/blob/main/LICENSE.TXT | ||
52 | [eula]: https://github.com/wixtoolset/wix/blob/main/OSMFEULA.txt | ||
diff --git a/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs b/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs index 03d87e4e..bb00717f 100644 --- a/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs +++ b/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs | |||
@@ -1,15 +1,18 @@ | |||
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 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.Util | 7 | namespace WixToolsetTest.Util |
4 | { | 8 | { |
5 | using System; | ||
6 | using System.IO; | 9 | using System.IO; |
7 | using System.Linq; | 10 | using System.Linq; |
8 | using System.Xml; | 11 | using System.Xml; |
9 | using System.Xml.Linq; | 12 | using System.Xml.Linq; |
10 | using Microsoft.VisualStudio.TestTools.UnitTesting; | 13 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
11 | using WixInternal.MSTestSupport; | ||
12 | using WixInternal.Core.MSTestPackage; | 14 | using WixInternal.Core.MSTestPackage; |
15 | using WixInternal.MSTestSupport; | ||
13 | using WixToolset.Util; | 16 | using WixToolset.Util; |
14 | 17 | ||
15 | [TestClass] | 18 | [TestClass] |
diff --git a/src/ext/Util/util_t.proj b/src/ext/Util/util_t.proj index 6ec63476..02be4b49 100644 --- a/src/ext/Util/util_t.proj +++ b/src/ext/Util/util_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Util.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Util.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Util.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Util.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Util/wixext/UtilDecompiler.cs b/src/ext/Util/wixext/UtilDecompiler.cs index cde64f8f..fb6d02e5 100644 --- a/src/ext/Util/wixext/UtilDecompiler.cs +++ b/src/ext/Util/wixext/UtilDecompiler.cs | |||
@@ -538,7 +538,7 @@ namespace WixToolset.Util | |||
538 | new XAttribute("Name", Path.GetFileNameWithoutExtension(row.FieldAsString(3))), // remove .lnk/.url extension because compiler extension adds it back for us | 538 | new XAttribute("Name", Path.GetFileNameWithoutExtension(row.FieldAsString(3))), // remove .lnk/.url extension because compiler extension adds it back for us |
539 | new XAttribute("Type", type), | 539 | new XAttribute("Type", type), |
540 | new XAttribute("Target", row.FieldAsString(4)), | 540 | new XAttribute("Target", row.FieldAsString(4)), |
541 | new XAttribute("IconFile", row.FieldAsString(6)), | 541 | AttributeIfNotNull("IconFile", row, 6), |
542 | NumericAttributeIfNotNull("IconIndex", row, 7) | 542 | NumericAttributeIfNotNull("IconIndex", row, 7) |
543 | ); | 543 | ); |
544 | 544 | ||
diff --git a/src/ext/Util/wixext/WixToolset.Util.wixext.csproj b/src/ext/Util/wixext/WixToolset.Util.wixext.csproj index a4fcaf14..2a2a2f6a 100644 --- a/src/ext/Util/wixext/WixToolset.Util.wixext.csproj +++ b/src/ext/Util/wixext/WixToolset.Util.wixext.csproj | |||
@@ -7,6 +7,7 @@ | |||
7 | <RootNamespace>WixToolset.Util</RootNamespace> | 7 | <RootNamespace>WixToolset.Util</RootNamespace> |
8 | <Description>WiX Toolset Utility extension</Description> | 8 | <Description>WiX Toolset Utility extension</Description> |
9 | <Title>WiX Toolset Utility extension</Title> | 9 | <Title>WiX Toolset Utility extension</Title> |
10 | <PackageReadmeFile>README.md</PackageReadmeFile> | ||
10 | <DebugType>embedded</DebugType> | 11 | <DebugType>embedded</DebugType> |
11 | </PropertyGroup> | 12 | </PropertyGroup> |
12 | 13 | ||
@@ -16,6 +17,10 @@ | |||
16 | <EmbeddedResource Include="$(OutputPath)..\util.wixlib" /> | 17 | <EmbeddedResource Include="$(OutputPath)..\util.wixlib" /> |
17 | </ItemGroup> | 18 | </ItemGroup> |
18 | 19 | ||
20 | <ItemGroup> | ||
21 | <None Include="..\README.md" Pack="true" PackagePath="\" /> | ||
22 | </ItemGroup> | ||
23 | |||
19 | <ItemGroup Condition=" '$(NCrunch)'=='' "> | 24 | <ItemGroup Condition=" '$(NCrunch)'=='' "> |
20 | <ProjectReference Include="..\wixlib\util.wixproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" /> | 25 | <ProjectReference Include="..\wixlib\util.wixproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" /> |
21 | </ItemGroup> | 26 | </ItemGroup> |