File tree 5 files changed +15
-15
lines changed
5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"words" : [
3
3
" cimv" ,
4
+ " netstandard" ,
4
5
" Nieto" ,
5
6
" norestart" ,
6
7
" runspace" ,
8
+ " Toolset" ,
7
9
" wusa"
8
10
]
9
11
}
Original file line number Diff line number Diff line change 22
22
uses : actions/checkout@v4
23
23
24
24
- name : .NET Build
25
- run : dotnet build --configuration Release
25
+ run : dotnet publish --configuration Release
26
26
27
27
- name : Create module
28
28
run : |
Original file line number Diff line number Diff line change 1
1
@ {
2
2
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' ,
6
6
' ./src/AnyPackage.Msu.psd1'
7
7
)
8
8
Destination = ' ./module'
Original file line number Diff line number Diff line change 1
- // Copyright (c) Thomas Nieto - All Rights Reserved
1
+ // Copyright (c) Thomas Nieto - All Rights Reserved
2
2
// You may use, distribute and modify this code under the
3
3
// terms of the MIT license.
4
4
5
- using Microsoft . Deployment . Compression . Cab ;
6
-
7
- using System . Collections . Generic ;
8
5
using System . Diagnostics ;
9
- using System . IO ;
10
- using System . Linq ;
11
6
using System . Management ;
12
7
using System . Management . Automation ;
13
8
using System . Text . RegularExpressions ;
14
9
10
+ using WixToolset . Dtf . Compression . Cab ;
11
+
15
12
namespace AnyPackage . Provider . Msu ;
16
13
17
14
[ PackageProvider ( "Msu" , PackageByName = false , FileExtensions = [ ".msu" ] ) ]
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net461 </TargetFramework >
4
+ <TargetFramework >netstandard2.0 </TargetFramework >
5
5
<LangVersion >latest</LangVersion >
6
6
<Nullable >enable</Nullable >
7
+ <ImplicitUsings >enable</ImplicitUsings >
7
8
<Copyright >© 2024 Thomas Nieto. All rights reserved.</Copyright >
8
9
</PropertyGroup >
9
10
10
11
<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 " />
15
16
</ItemGroup >
16
17
17
18
</Project >
You can’t perform that action at this time.
0 commit comments