Skip to content

Commit 6eeb04c

Browse files
authored
Hide logo and readme in Solution Explorer (#972)
1 parent d5266fa commit 6eeb04c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
</PropertyGroup>
4242

4343
<ItemGroup Condition="'$(IsPackable)' == 'true'">
44-
<None Include="..\..\assets\logo.64x64.png" Pack="true" PackagePath="\" />
45-
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
44+
<None Include="..\..\assets\logo.64x64.png" Pack="true" PackagePath="\" Visible="false" />
45+
<None Include="..\..\README.md" Pack="true" PackagePath="\" Visible="false" />
4646
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
4747
</ItemGroup>
4848

Tests.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
<PropertyGroup>
55
<SingleTestPlatform Condition="'$(SingleTestPlatform)' == ''">false</SingleTestPlatform>
6-
<NoWarn>$(NoWarn);CS1591;IDE0017;IDE0053;CA1707;CA1816;CA1822;CA1825;CA1835;CA2201</NoWarn>
7-
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS1998</WarningsNotAsErrors>
6+
<NoWarn>$(NoWarn);CS1591;CS1998;IDE0017;IDE0053;CA1707;CA1816;CA1822;CA1825;CA1835;CA1852;CA2201</NoWarn>
87
<IsPackable>false</IsPackable>
98
</PropertyGroup>
109

samples/Samples.Jwt/JwtHelper.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ private static (SecurityKey SecurityKey, string SecurityAlgorithm) CreateSymmetr
8585
{
8686
// hash the password and use that to create a symmetric key for signing the JWT tokens
8787
var passwordBytes = System.Text.Encoding.UTF8.GetBytes(password);
88-
using var sha = SHA256.Create();
89-
var keyBytes = sha.ComputeHash(passwordBytes);
88+
var keyBytes = SHA256.HashData(passwordBytes);
9089
var securityKey = new SymmetricSecurityKey(keyBytes);
9190
// return the key
9291
return (securityKey, SecurityAlgorithms.HmacSha256);

0 commit comments

Comments
 (0)