Skip to content

Commit 8f34172

Browse files
authoredOct 11, 2024··
Update dependency to WixToolset.Dtf.Compression.Cab (#37)
1 parent 2c462c3 commit 8f34172

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed
 

‎.cspell.jsonc

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"words": [
33
"cimv",
4+
"netstandard",
45
"Nieto",
56
"norestart",
67
"runspace",
8+
"Toolset",
79
"wusa"
810
]
911
}

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323

2424
- name: .NET Build
25-
run: dotnet build --configuration Release
25+
run: dotnet publish --configuration Release
2626

2727
- name: Create module
2828
run: |

‎BuildSettings.psd1

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@{
22
Path = @(
3-
'./src/code/bin/Release/net461/MsuProvider.dll',
4-
'./src/code/bin/Release/net461/Microsoft.Deployment.Compression.dll',
5-
'./src/code/bin/Release/net461/Microsoft.Deployment.Compression.Cab.dll',
3+
'./src/code/bin/Release/netstandard2.0/publish/MsuProvider.dll',
4+
'./src/code/bin/Release/netstandard2.0/publish/WixToolset.Dtf.Compression.dll',
5+
'./src/code/bin/Release/netstandard2.0/publish/WixToolset.Dtf.Compression.Cab.dll',
66
'./src/AnyPackage.Msu.psd1'
77
)
88
Destination = './module'

‎src/code/MsuProvider.cs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
// Copyright (c) Thomas Nieto - All Rights Reserved
1+
// Copyright (c) Thomas Nieto - All Rights Reserved
22
// You may use, distribute and modify this code under the
33
// terms of the MIT license.
44

5-
using Microsoft.Deployment.Compression.Cab;
6-
7-
using System.Collections.Generic;
85
using System.Diagnostics;
9-
using System.IO;
10-
using System.Linq;
116
using System.Management;
127
using System.Management.Automation;
138
using System.Text.RegularExpressions;
149

10+
using WixToolset.Dtf.Compression.Cab;
11+
1512
namespace AnyPackage.Provider.Msu;
1613

1714
[PackageProvider("Msu", PackageByName = false, FileExtensions = [".msu"])]

‎src/code/MsuProvider.csproj

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net461</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
7+
<ImplicitUsings>enable</ImplicitUsings>
78
<Copyright>© 2024 Thomas Nieto. All rights reserved.</Copyright>
89
</PropertyGroup>
910

1011
<ItemGroup>
11-
<PackageReference Include="AnyPackage" Version="0.7.0" />
12-
<PackageReference Include="MSFTCompressionCab" Version="1.0.0" />
13-
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" />
14-
<PackageReference Include="System.Management" Version="6.0.0" />
12+
<PackageReference Include="AnyPackage" Version="0.7.0" PrivateAssets="All" />
13+
<PackageReference Include="WixToolset.Dtf.Compression.Cab" Version="5.0.2" />
14+
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="All" />
15+
<PackageReference Include="System.Management" Version="6.0.0" PrivateAssets="All" />
1516
</ItemGroup>
1617

1718
</Project>

0 commit comments

Comments
 (0)
Please sign in to comment.