File tree Expand file tree Collapse file tree 5 files changed +29
-16
lines changed
VisualStudioSolutionSecrets.Tests
VisualStudioSolutionSecrets Expand file tree Collapse file tree 5 files changed +29
-16
lines changed Original file line number Diff line number Diff line change 1+ ## July 2023 Release (version 2.0.1)
2+
3+ This release fixes the vulnerability CVE-2023 -29337.
4+
5+ ---
6+
17## October 2022 Release (version 2.0.0)
28
39This release enables the use of different kinds of repositories and enables to configure each solution to use a different kind of repository.
Original file line number Diff line number Diff line change 133133 </ItemGroup >
134134
135135 <ItemGroup >
136- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.3.2 " />
137- <PackageReference Include =" Moq" Version =" 4.18.2 " />
136+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.6.3 " />
137+ <PackageReference Include =" Moq" Version =" 4.18.4 " />
138138 <PackageReference Include =" xunit" Version =" 2.4.2" />
139139 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5" >
140140 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
141141 <PrivateAssets >all</PrivateAssets >
142142 </PackageReference >
143- <PackageReference Include =" coverlet.collector" Version =" 3.1.2 " >
143+ <PackageReference Include =" coverlet.collector" Version =" 6.0.0 " >
144144 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
145145 <PrivateAssets >all</PrivateAssets >
146146 </PackageReference >
Original file line number Diff line number Diff line change @@ -57,19 +57,22 @@ protected int OnExecute(CommandLineApplication app)
5757 private static string GetVersion ( )
5858 {
5959 var assembly = typeof ( Versions ) . Assembly ;
60- var version = assembly ? . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ? . InformationalVersion ;
6160 var copyright = assembly ? . GetCustomAttribute < AssemblyCopyrightAttribute > ( ) ? . Copyright ;
6261 string platform ;
6362#if NET7_0
64- platform = " ( .NET 7.0) " ;
63+ platform = ".NET 7.0" ;
6564#elif NET6_0
66- platform = " ( .NET 6.0) " ;
65+ platform = ".NET 6.0" ;
6766#elif NETCOREAPP3_1
68- platform = " ( .Net Core 3.1) " ;
67+ platform = ".Net Core 3.1" ;
6968#else
7069 platform = String . Empty ;
7170#endif
72- return $ "vs-secrets { version } \n { copyright } { platform } ";
71+ string details = Versions . CommitHash != null
72+ ? $ " ({ platform } , commit { Versions . CommitHash } )"
73+ : $ " ({ platform } )";
74+
75+ return $ "vs-secrets { Versions . CurrentVersion } { details } \n { copyright } ";
7376 }
7477
7578
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public static class Versions
1818
1919
2020 public static string ? VersionString { get ; }
21+ public static string ? CommitHash { get ; }
2122 public static Version ? CurrentVersion { get ; }
2223
2324
@@ -27,8 +28,11 @@ static Versions()
2728 . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ?
2829 . InformationalVersion ;
2930
30- VersionString = version ?? "unknown" ;
31- CurrentVersion = String . IsNullOrEmpty ( version ) ? new Version ( ) : new Version ( version . Split ( '-' ) [ 0 ] ) ;
31+ string [ ] ? versionParts = version ? . Split ( '+' ) ;
32+
33+ VersionString = versionParts ? . Length > 0 ? versionParts [ 0 ] : "unknown" ;
34+ CurrentVersion = String . IsNullOrEmpty ( version ) ? new Version ( ) : new Version ( VersionString . Split ( '-' ) [ 0 ] ) ;
35+ CommitHash = versionParts ? . Length > 1 ? versionParts [ 1 ] . Substring ( 0 , 8 ) : null ;
3236 }
3337
3438
Original file line number Diff line number Diff line change 1616 <RepositoryType >git</RepositoryType >
1717 <Title >Visual Studio Solution Secrets</Title >
1818 <Description >Tool for synchronizing Visual Studio solution secrets across different development machines.</Description >
19- <Copyright >Copyright (c) 2022 Ernesto Cianciotta</Copyright >
19+ <Copyright >Copyright (c) 2023 Ernesto Cianciotta</Copyright >
2020 <PackageTags >visualstudio;vs;secrets;secrets-management;dotnet;dotnet-core;aspnet-core;.net;tools;csharp;vb;fsharp;cpp;github;azure;key-vault</PackageTags >
2121 <PackageOutputPath >./nupkg</PackageOutputPath >
2222 <PackageLicenseExpression >MIT</PackageLicenseExpression >
2323 <PackageReadmeFile >README.md</PackageReadmeFile >
2424 <PackageIcon >Icon.png</PackageIcon >
2525 <PackageProjectUrl >https://devnotes.ernstc.net/visual-studio-solution-secrets-v2</PackageProjectUrl >
26- <Version >2.0.0 </Version >
26+ <Version >2.0.1 </Version >
2727 </PropertyGroup >
2828
2929 <PropertyGroup >
5757 </ItemGroup >
5858
5959 <ItemGroup >
60- <PackageReference Include =" Azure.Identity" Version =" 1.7 .0" />
61- <PackageReference Include =" Azure.Security.KeyVault.Secrets" Version =" 4.4 .0" />
62- <PackageReference Include =" McMaster.Extensions.CommandLineUtils" Version =" 4.0.1 " />
63- <PackageReference Include =" NuGet.Protocol" Version =" 6.3 .1" />
60+ <PackageReference Include =" Azure.Identity" Version =" 1.9 .0" />
61+ <PackageReference Include =" Azure.Security.KeyVault.Secrets" Version =" 4.5 .0" />
62+ <PackageReference Include =" McMaster.Extensions.CommandLineUtils" Version =" 4.0.2 " />
63+ <PackageReference Include =" NuGet.Protocol" Version =" 6.6 .1" />
6464 </ItemGroup >
6565
6666 <ItemGroup >
You can’t perform that action at this time.
0 commit comments