Skip to content

Commit

Permalink
Update dependency to WixToolset.Dtf.Compression.Cab (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Oct 11, 2024
1 parent 2c462c3 commit 8f34172
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .cspell.jsonc
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"words": [
"cimv",
"netstandard",
"Nieto",
"norestart",
"runspace",
"Toolset",
"wusa"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: .NET Build
run: dotnet build --configuration Release
run: dotnet publish --configuration Release

- name: Create module
run: |
Expand Down
6 changes: 3 additions & 3 deletions BuildSettings.psd1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@{
Path = @(
'./src/code/bin/Release/net461/MsuProvider.dll',
'./src/code/bin/Release/net461/Microsoft.Deployment.Compression.dll',
'./src/code/bin/Release/net461/Microsoft.Deployment.Compression.Cab.dll',
'./src/code/bin/Release/netstandard2.0/publish/MsuProvider.dll',
'./src/code/bin/Release/netstandard2.0/publish/WixToolset.Dtf.Compression.dll',
'./src/code/bin/Release/netstandard2.0/publish/WixToolset.Dtf.Compression.Cab.dll',
'./src/AnyPackage.Msu.psd1'
)
Destination = './module'
Expand Down
9 changes: 3 additions & 6 deletions src/code/MsuProvider.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
// Copyright (c) Thomas Nieto - All Rights Reserved
// Copyright (c) Thomas Nieto - All Rights Reserved
// You may use, distribute and modify this code under the
// terms of the MIT license.

using Microsoft.Deployment.Compression.Cab;

using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Management;
using System.Management.Automation;
using System.Text.RegularExpressions;

using WixToolset.Dtf.Compression.Cab;

namespace AnyPackage.Provider.Msu;

[PackageProvider("Msu", PackageByName = false, FileExtensions = [".msu"])]
Expand Down
11 changes: 6 additions & 5 deletions src/code/MsuProvider.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Copyright>© 2024 Thomas Nieto. All rights reserved.</Copyright>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AnyPackage" Version="0.7.0" />
<PackageReference Include="MSFTCompressionCab" Version="1.0.0" />
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" />
<PackageReference Include="System.Management" Version="6.0.0" />
<PackageReference Include="AnyPackage" Version="0.7.0" PrivateAssets="All" />
<PackageReference Include="WixToolset.Dtf.Compression.Cab" Version="5.0.2" />
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="All" />
<PackageReference Include="System.Management" Version="6.0.0" PrivateAssets="All" />
</ItemGroup>

</Project>

0 comments on commit 8f34172

Please sign in to comment.