Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 981712a

Browse files
Add strong name signing and update tests (#16)
1 parent 383f927 commit 981712a

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

src/Microsoft.PowerShell.Pager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Collections.Generic;
66
using System.Linq;
77

8-
[assembly:System.Runtime.CompilerServices.InternalsVisibleTo(assemblyName: "test")]
8+
[assembly:System.Runtime.CompilerServices.InternalsVisibleTo("test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
99
namespace Microsoft.PowerShell
1010
{
1111
/// <summary>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<Product>PowerShell Pager</Product>
5+
<Company>Microsoft Corporation</Company>
6+
<Copyright>(c) Microsoft Corporation.</Copyright>
7+
48
<TargetFramework>netstandard2.0</TargetFramework>
59
<IsPackable>true</IsPackable>
10+
11+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
12+
13+
<DelaySign>true</DelaySign>
14+
<AssemblyOriginatorKeyFile>signing/visualstudiopublic.snk</AssemblyOriginatorKeyFile>
15+
<SignAssembly>true</SignAssembly>
16+
<HighEntropyVA>true</HighEntropyVA>
617
</PropertyGroup>
718

819
</Project>

src/signing/visualstudiopublic.snk

160 Bytes
Binary file not shown.

test/test.csproj

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,25 @@
66

77
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
88
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
9+
<RuntimeIdentifier>win7-x64</RuntimeIdentifier> <!--This is needed for xunit to run net461 tests-->
910
</PropertyGroup>
1011

1112
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
1213
<TargetFramework>netcoreapp3.1</TargetFramework>
1314
</PropertyGroup>
1415

16+
<PropertyGroup>
17+
<DelaySign>true</DelaySign>
18+
<AssemblyOriginatorKeyFile>../src/signing/visualstudiopublic.snk</AssemblyOriginatorKeyFile>
19+
<SignAssembly>true</SignAssembly>
20+
</PropertyGroup>
21+
1522
<ItemGroup>
1623
<ProjectReference Include="../src/Microsoft.PowerShell.Pager.csproj" />
17-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
18-
<PackageReference Include="xunit" Version="2.4.0" />
19-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
20-
<PackageReference Include="coverlet.collector" Version="1.2.0" />
24+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.0" />
25+
<PackageReference Include="xunit" Version="2.4.1" />
26+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
27+
<PackageReference Include="coverlet.collector" Version="1.3.0" />
2128
</ItemGroup>
2229

2330
</Project>

0 commit comments

Comments
 (0)