Skip to content

Commit

Permalink
Sign assemblies.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtschelfthout committed Dec 28, 2020
1 parent 6270a5a commit c71f734
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
Binary file added FsCheckKey.snk
Binary file not shown.
3 changes: 2 additions & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ Target.create "AssemblyInfo" (fun _ ->
AssemblyInfo.Description package.Summary
AssemblyInfo.Version release.AssemblyVersion
AssemblyInfo.FileVersion release.AssemblyVersion
AssemblyInfo.KeyFile "../../FsCheckKey.snk"
] @ (if package.Name = "FsCheck" || package.Name = "FsCheck.Xunit"
then [Fake.DotNet.AssemblyInfo.InternalsVisibleTo("FsCheck.Test")] else []))
then [AssemblyInfo.InternalsVisibleTo("FsCheck.Test")] else []))
)
)

Expand Down
2 changes: 2 additions & 0 deletions src/FsCheck.NUnit/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ open System.Reflection
[<assembly: AssemblyDescriptionAttribute("Integrates FsCheck with NUnit")>]
[<assembly: AssemblyVersionAttribute("3.0.0")>]
[<assembly: AssemblyFileVersionAttribute("3.0.0")>]
[<assembly: AssemblyKeyFileAttribute("../../FsCheckKey.snk")>]
do ()

module internal AssemblyVersionInformation =
Expand All @@ -15,3 +16,4 @@ module internal AssemblyVersionInformation =
let [<Literal>] AssemblyDescription = "Integrates FsCheck with NUnit"
let [<Literal>] AssemblyVersion = "3.0.0"
let [<Literal>] AssemblyFileVersion = "3.0.0"
let [<Literal>] AssemblyKeyFile = "../../FsCheckKey.snk"
2 changes: 2 additions & 0 deletions src/FsCheck.Xunit/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ open System.Runtime.CompilerServices
[<assembly: AssemblyDescriptionAttribute("Integrates FsCheck with xUnit.NET")>]
[<assembly: AssemblyVersionAttribute("3.0.0")>]
[<assembly: AssemblyFileVersionAttribute("3.0.0")>]
[<assembly: AssemblyKeyFileAttribute("../../FsCheckKey.snk")>]
[<assembly: InternalsVisibleToAttribute("FsCheck.Test")>]
do ()

Expand All @@ -17,4 +18,5 @@ module internal AssemblyVersionInformation =
let [<Literal>] AssemblyDescription = "Integrates FsCheck with xUnit.NET"
let [<Literal>] AssemblyVersion = "3.0.0"
let [<Literal>] AssemblyFileVersion = "3.0.0"
let [<Literal>] AssemblyKeyFile = "../../FsCheckKey.snk"
let [<Literal>] InternalsVisibleTo = "FsCheck.Test"
2 changes: 2 additions & 0 deletions src/FsCheck/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ open System.Runtime.CompilerServices
[<assembly: AssemblyDescriptionAttribute("FsCheck is a tool for testing .NET programs automatically using randomly generated test cases.")>]
[<assembly: AssemblyVersionAttribute("3.0.0")>]
[<assembly: AssemblyFileVersionAttribute("3.0.0")>]
[<assembly: AssemblyKeyFileAttribute("../../FsCheckKey.snk")>]
[<assembly: InternalsVisibleToAttribute("FsCheck.Test")>]
do ()

Expand All @@ -17,4 +18,5 @@ module internal AssemblyVersionInformation =
let [<Literal>] AssemblyDescription = "FsCheck is a tool for testing .NET programs automatically using randomly generated test cases."
let [<Literal>] AssemblyVersion = "3.0.0"
let [<Literal>] AssemblyFileVersion = "3.0.0"
let [<Literal>] AssemblyKeyFile = "../../FsCheckKey.snk"
let [<Literal>] InternalsVisibleTo = "FsCheck.Test"

1 comment on commit c71f734

@roslynn
Copy link

@roslynn roslynn commented on c71f734 Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we apply this change on top of the master branch please? Looks good 👍

Please sign in to comment.