Skip to content

Commit

Permalink
strongly sign vailidator and make it visible to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abaskk-msft committed Jul 23, 2024
1 parent dcfea66 commit b39d57c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/YamlValidator.Tests/YamlValidator.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>

<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<PublicSign>true</PublicSign>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/YamlValidator/InternalsVisibleTo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("YamlValidator.Tests")]
[assembly: InternalsVisibleTo("YamlValidator.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
<LangVersion>Latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<PublicSign>true</PublicSign>
</PropertyGroup>

<PropertyGroup Label="Override Directory.Build.props Settings">
<!-- Clear the singular TargetFramework set by Directory.Build.props, so that it doesn't take precedence over the plural TargetFrameworks set above. -->
<TargetFramework></TargetFramework>
<!-- Directory.Build.props sets paths assuming a single Target Framework. Add the framework to the path to prevent overwriting one with the other -->
<OutDir>$(OutDir)\$(TargetFramework)</OutDir>
</PropertyGroup>

<ItemGroup Label="Global usings">
Expand Down

0 comments on commit b39d57c

Please sign in to comment.