Skip to content

Commit

Permalink
Strong-name fixes
Browse files Browse the repository at this point in the history
* Stop strong-naming the Microsoft.Xaml.Behaviors.dll using the
  Behaviors.snk. The released NuGets always use FinalPublicKey.snk,
  so make sure to use that always.
* Renamed src/Behaviors.snk to Tests/UnitTests.snk so it's less confusing
* Updated UnitTests.csproj to use the newly named UnitTests.snk
* Removed properties that only affected UnitTests.csproj from the
  Directory.Build.props
  • Loading branch information
jstedfast committed Feb 21, 2024
1 parent 7aabe63 commit 96c171d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\src\Behaviors.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</Project>
File renamed without changes.
2 changes: 2 additions & 0 deletions Test/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<OutputType>Library</OutputType>
<AssemblyName>UnitTests</AssemblyName>
<RootNamespace>UnitTests</RootNamespace>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\UnitTests.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Xaml.Behaviors/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@

[assembly: SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Microsoft.Xaml.Behaviors")]

[assembly: AssemblyKeyFile("..\\Behaviors.snk")]
[assembly: AssemblyKeyFile("..\\FinalPublicKey.snk")]
[assembly: AssemblyDelaySign(true)]
[assembly: InternalsVisibleTo("UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e5435599803109fe684072f487ec0670f2766325a25d47089633ffb5d9a56bf115a705bc0632660aeecfe00248951540865f481613845080859feafc5d9b55750395e7ca4c2124136d17bc9e73f0371d802fc2c9e8308f6f8b0ab3096661d2d1b0cbbbcb6de3fe711ef415f29271088537081b09ad1ee08ce8020b22031cdebd")]

0 comments on commit 96c171d

Please sign in to comment.