Sign test/sample assemblies, and make internals visible to unit tests
Signed-off-by: Jon Skeet <jonskeet@google.com>
This commit is contained in:
parent
b494765587
commit
e836d6ce90
|
|
@ -1,8 +1,17 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<!-- Make the repository root available for other properties -->
|
||||
<RepoRoot>$([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)'))))</RepoRoot>
|
||||
|
||||
<!-- Disable deterministic source paths for sample projects -->
|
||||
<DeterministicSourcePaths>False</DeterministicSourcePaths>
|
||||
|
||||
<!-- Build properties -->
|
||||
<AssemblyOriginatorKeyFile>$(RepoRoot)/CloudEventsSdk.snk</AssemblyOriginatorKeyFile>
|
||||
<SignAssembly>True</SignAssembly>
|
||||
<Deterministic>True</Deterministic>
|
||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||
|
||||
<!-- Never pack any sample projects -->
|
||||
<IsPackable>False</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2021 Cloud Native Foundation.
|
||||
// Licensed under the Apache 2.0 license.
|
||||
// See LICENSE file in the project root for full license information.
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: InternalsVisibleTo("CloudNative.CloudEvents.UnitTests,PublicKey="
|
||||
+ "0024000004800000940000000602000000240000525341310004000001000100e945e99352d0b8"
|
||||
+ "90ddb645995bc05ef5a22497d97e78196b9f6148ea33b0c1b219f0c28df523878d1d8c9d042a02"
|
||||
+ "f005777461dffe455b348f82b39fcbc64985ef091295c0ad2dcb265c23589e9ce8e48dbe84c8e1"
|
||||
+ "7fc37555938b2669aea7575cee288809065aa9dc04dff67ce1dfc5a3167770323c1a2c632f0eb2"
|
||||
+ "f8c64acf")]
|
||||
|
|
@ -1,8 +1,17 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<!-- Make the repository root available for other properties -->
|
||||
<RepoRoot>$([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)'))))</RepoRoot>
|
||||
|
||||
<!-- Disable deterministic source paths for test projects -->
|
||||
<DeterministicSourcePaths>False</DeterministicSourcePaths>
|
||||
|
||||
<!-- Build properties -->
|
||||
<AssemblyOriginatorKeyFile>$(RepoRoot)/CloudEventsSdk.snk</AssemblyOriginatorKeyFile>
|
||||
<SignAssembly>True</SignAssembly>
|
||||
<Deterministic>True</Deterministic>
|
||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||
|
||||
<!-- Never pack any test projects -->
|
||||
<IsPackable>False</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue