Skip to content

Commit

Permalink
Adding internalsVisibleAttribute to allow for test assembly to see in…
Browse files Browse the repository at this point in the history
…to target assembly
  • Loading branch information
TimBarcz committed Oct 11, 2010
1 parent 79914b4 commit da77754
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ task Init -depends Clean {
-company "Hibernating Rhinos" `
-product "Rhino Mocks $version" `
-version $version `
-copyright "Hibernating Rhinos & Ayende Rahien 2004 - 2009"
-copyright "Hibernating Rhinos & Ayende Rahien 2004 - 2009" `
-internalsVisibleTo "Rhino.Mocks.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001009d1cf4b75b7218b141ac64c15450141b1e5f41f6a302ac717ab9761fa6ae2c3ee0c354c22d0a60ac59de41fa285d572e7cf33c320aa7ff877e2b7da1792fcc6aa4eb0b4d8294a2f74cb14d03fb9b091f751d6dc49e626d74601692c99eab7718ed76a40c36d39af842be378b677e6e4eae973f643d7065241ad86ecc156d81ab"

Generate-Assembly-Info `
-file "$base_dir\Rhino.Mocks.Tests\Properties\AssemblyInfo.cs" `
Expand Down
4 changes: 3 additions & 1 deletion psake_ext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ param(
[string]$product,
[string]$copyright,
[string]$version,
[string]$file = $(throw "file is a required parameter.")
[string]$file = $(throw "file is a required parameter."),
[string]$internalsVisibleTo
)
$commit = Get-Git-Commit
$asmInfo = "using System;
Expand All @@ -33,6 +34,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyInformationalVersionAttribute(""$version / $commit"")]
[assembly: AssemblyFileVersionAttribute(""$version"")]
[assembly: AssemblyDelaySignAttribute(false)]
[assembly: InternalsVisibleTo(""$internalsVisibleTo"")]
"

$dir = [System.IO.Path]::GetDirectoryName($file)
Expand Down

0 comments on commit da77754

Please sign in to comment.