Skip to content

Commit 8fd12ab

Browse files
authored
fix InternalsVisibleTo for tests (#1432)
1 parent f2a31ef commit 8fd12ab

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
*.fsproj merge=union
99
*.dbproj merge=union
1010

11+
*.snk binary
12+
1113
# Normalise endings to CRLF
1214
*.cs eol=crlf
1315
*.xml eol=crlf

src/Directory.build.props

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<EmbedUntrackedSources>true</EmbedUntrackedSources>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9+
<SignAssembly>true</SignAssembly>
10+
<AssemblyOriginatorKeyFile>$(SolutionDir)Humanizer.snk</AssemblyOriginatorKeyFile>
911
</PropertyGroup>
1012
<ItemGroup>
1113
<Using Include="System.ReadOnlySpan&lt;System.Char&gt;" Alias="CharSpan" />

src/Humanizer.Tests/Humanizer.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageReference Include="Verify.DiffPlex" Version="2.3.0" />
1313
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
1414
<ProjectReference Include="..\Humanizer\Humanizer.csproj" />
15-
<Reference Include="System.ComponentModel.DataAnnotations" Condition="'$(TargetFramework)' == 'net48' "/>
15+
<Reference Include="System.ComponentModel.DataAnnotations" Condition="'$(TargetFramework)' == 'net48' "/>
1616

1717
<Compile Include="..\Humanizer.Tests.Shared\**\*.cs">
1818
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>

src/Humanizer.Tests/ModuleInitializerAttribute.cs

-6
This file was deleted.
File renamed without changes.

src/Humanizer/Humanizer.csproj

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
<Copyright>Copyright © .NET Foundation and Contributors</Copyright>
1010
<Product>Humanizer ($(TargetFramework))</Product>
1111
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
12-
<SignAssembly>true</SignAssembly>
13-
<AssemblyOriginatorKeyFile>Humanizer.snk</AssemblyOriginatorKeyFile>
1412
<DebugType Condition=" '$(BuildingForLiveUnitTesting)' != 'true' ">embedded</DebugType>
1513
<NoWarn>CS1573;CS1591</NoWarn>
1614
</PropertyGroup>

0 commit comments

Comments
 (0)