Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency to WixToolset.Dtf.Compression.Cab #37

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>