File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 11{
22 "words" : [
33 " cimv" ,
4+ " netstandard" ,
45 " Nieto" ,
56 " norestart" ,
67 " runspace" ,
8+ " Toolset" ,
79 " wusa"
810 ]
911}
Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 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'
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
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 ;
85using System . Diagnostics ;
9- using System . IO ;
10- using System . Linq ;
116using System . Management ;
127using System . Management . Automation ;
138using System . Text . RegularExpressions ;
149
10+ using WixToolset . Dtf . Compression . Cab ;
11+
1512namespace AnyPackage . Provider . Msu ;
1613
1714[ PackageProvider ( "Msu" , PackageByName = false , FileExtensions = [ ".msu" ] ) ]
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments