File tree Expand file tree Collapse file tree 11 files changed +37
-26
lines changed
Expand file tree Collapse file tree 11 files changed +37
-26
lines changed Original file line number Diff line number Diff line change 44 <LangVersion >10</LangVersion >
55 <Nullable >enable</Nullable >
66 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
7- <AnalysisLevel >8 .0-all</AnalysisLevel >
7+ <AnalysisLevel >10 .0-all</AnalysisLevel >
88 </PropertyGroup >
99
1010</Project >
Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ pull_requests:
1818skip_tags : true
1919environment :
2020 DOTNET_CLI_TELEMETRY_OPTOUT : true
21- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
21+ DOTNET_NOLOGO : true
2222install :
2323- cmd : curl -OsSL https://dot.net/v1/dotnet-install.ps1
2424- ps : if ($isWindows) { ./dotnet-install.ps1 -JsonFile global.json }
25+ - ps : if ($isWindows) { ./dotnet-install.ps1 -Runtime dotnet -Version 8.0.22 -SkipNonVersionedFiles }
2526- sh : curl -OsSL https://dot.net/v1/dotnet-install.sh
2627- sh : chmod +x dotnet-install.sh
2728- sh : ./dotnet-install.sh --jsonfile global.json
28- - sh : ./dotnet-install.sh --version 6 .0.25 --runtime dotnet
29+ - sh : ./dotnet-install.sh --version 8 .0.22 --runtime dotnet --skip-non-versioned-files
2930- sh : export PATH="$HOME/.dotnet:$PATH"
3031before_build :
3132- dotnet --info
Original file line number Diff line number Diff line change 1- @ dotnet run --no-launch-profile -f net6 .0 --project " %~dp0 src\CSharpMinifierConsole" -- %*
1+ @ dotnet run --no-launch-profile -f net10 .0 --project " %~dp0 src\CSharpMinifierConsole" -- %*
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22set -e
3- dotnet run --no-launch-profile -f net6 .0 --project " $( dirname " $0 " ) /src/CSharpMinifierConsole" -- " $@ "
3+ dotnet run --no-launch-profile -f net10 .0 --project " $( dirname " $0 " ) /src/CSharpMinifierConsole" -- " $@ "
Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 8 .0.300 " ,
3+ "version" : " 10 .0.100 " ,
44 "rollForward" : " latestPatch"
55 }
66}
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFramework >netstandard2.0</TargetFramework >
5- <VersionPrefix >2.1 .0</VersionPrefix >
5+ <VersionPrefix >2.2 .0</VersionPrefix >
66 <Copyright >Copyright © 2019 Atif Aziz. All rights reserved.</Copyright >
77 <Description >C# Minification Library</Description >
88 <Authors >Atif Aziz</Authors >
2222 </PropertyGroup >
2323
2424 <ItemGroup >
25- <PackageReference Include =" PolySharp" Version =" 1.14.1 " >
25+ <PackageReference Include =" PolySharp" Version =" 1.15.0 " >
2626 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
2727 <PrivateAssets >all</PrivateAssets >
2828 </PackageReference >
Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <RootNamespace ></RootNamespace >
55 <OutputType >Exe</OutputType >
6- <TargetFrameworks >net8 .0;net6 .0</TargetFrameworks >
7- <VersionPrefix >2.1 .0</VersionPrefix >
6+ <TargetFrameworks >net10 .0;net8 .0</TargetFrameworks >
7+ <VersionPrefix >2.2 .0</VersionPrefix >
88 <PackAsTool >true</PackAsTool >
99 <ToolCommandName >csmin</ToolCommandName >
1010 <Copyright >Copyright © 2019 Atif Aziz. All rights reserved.</Copyright >
3636 <ItemGroup >
3737 <PackageReference Include =" AngryArrays" Version =" 1.1.0" />
3838 <PackageReference Include =" docopt.net" Version =" 0.8.1" />
39- <PackageReference Include =" Microsoft.Extensions.FileSystemGlobbing" Version =" 8 .0.0 " />
40- <PackageReference Include =" PolySharp" Version =" 1.14.1 " >
39+ <PackageReference Include =" Microsoft.Extensions.FileSystemGlobbing" Version =" 10 .0.1 " />
40+ <PackageReference Include =" PolySharp" Version =" 1.15.0 " >
4141 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
4242 <PrivateAssets >all</PrivateAssets >
4343 </PackageReference >
44- <PackageReference Include =" ThisAssembly.AssemblyInfo" Version =" 1.4.3 " />
44+ <PackageReference Include =" ThisAssembly.AssemblyInfo" Version =" 2.1.2 " />
4545 </ItemGroup >
4646
4747</Project >
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ var algoName
4545 var format
4646 = args . OptFormat is { } fs
4747 ? Enum . TryParse < HashOutputFormat > ( fs , true , out var fv )
48- && Enum . IsDefined ( typeof ( HashOutputFormat ) , fv ) ? fv
48+ && Enum . IsDefined ( fv ) ? fv
4949 : throw new Exception ( "Invalid hash format." )
5050 : HashOutputFormat . Hexadecimal ;
5151
@@ -79,9 +79,13 @@ var format
7979 {
8080 case HashOutputFormat . Hexadecimal :
8181 {
82- Console . WriteLine ( BitConverter . ToString ( hash )
83- . Replace ( "-" , string . Empty , StringComparison . Ordinal )
84- . ToLowerInvariant ( ) ) ;
82+ Console . WriteLine (
83+ #if NET8_0
84+ Convert . ToHexString ( hash ) . ToLowerInvariant ( )
85+ #else
86+ Convert . ToHexStringLower ( hash )
87+ #endif
88+ ) ;
8589 break ;
8690 }
8791 case HashOutputFormat . Base32 :
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ dotnet_diagnostic.CA1062.severity = none
77
88# CA1034: Nested types should not be visible
99dotnet_diagnostic.CA1034.severity = none
10+
11+ # CA1515: Consider making public types internal
12+ dotnet_diagnostic.CA1515.severity = none
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net8 .0;net6 .0</TargetFrameworks >
4+ <TargetFrameworks >net10 .0;net8 .0</TargetFrameworks >
55 <IsPackable >false</IsPackable >
66 </PropertyGroup >
77
1212 </ItemGroup >
1313
1414 <ItemGroup >
15- <PackageReference Include =" coverlet.collector" Version =" 6.0.2" />
16- <PackageReference Include =" morelinq" Version =" 4.2.0" />
17- <PackageReference Include =" nunit" Version =" 4.1.0" />
18- <PackageReference Include =" NUnit3TestAdapter" Version =" 4.5.0" >
15+ <PackageReference Include =" coverlet.collector" Version =" 6.0.4" >
1916 <PrivateAssets >all</PrivateAssets >
2017 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
2118 </PackageReference >
22- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10.0" />
23- <PackageReference Include =" NunitXml.TestLogger" Version =" 3.1.20" />
19+ <PackageReference Include =" morelinq" Version =" 4.4.0" />
20+ <PackageReference Include =" nunit" Version =" 4.4.0" />
21+ <PackageReference Include =" NUnit3TestAdapter" Version =" 6.0.1" >
22+ <PrivateAssets >all</PrivateAssets >
23+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
24+ </PackageReference >
25+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 18.0.1" />
26+ <PackageReference Include =" NunitXml.TestLogger" Version =" 7.1.0" />
2427 </ItemGroup >
2528
2629 <ItemGroup >
You can’t perform that action at this time.
0 commit comments