Permalink
Browse files

Updated pandora dll to be runnable in medium trust.

Added AllowPartiallyTrustedCallers to buildscript for dotless.Core
  • Loading branch information...
1 parent d886b25 commit 5836ec945007935ffc3c1e15c06cd85b3aabc7f9 @Tigraine Tigraine committed Jun 1, 2010
Showing with 9 additions and 2 deletions.
  1. +2 −1 default.ps1
  2. BIN lib/Pandora/Pandora.dll
  3. BIN lib/Pandora/Pandora.pdb
  4. +7 −1 psake_ext.ps1
View
@@ -28,7 +28,8 @@ task Init -depends Clean {
-company "dotless project" `
-product "dotless" `
-version $version `
- -copyright "Copyright © dotless project 2010"
+ -copyright "Copyright © dotless project 2010" `
+ -partial $True
Generate-Assembly-Info `
-file "$source_dir\dotless.Test\Properties\AssemblyInfo.cs" `
-title "dotless Tests $version" `
View
Binary file not shown.
View
Binary file not shown.
View
@@ -32,12 +32,15 @@ param(
[string]$product,
[string]$copyright,
[string]$version,
- [string]$file = $(throw "file is a required parameter.")
+ [string]$file = $(throw "file is a required parameter."),
+ [bool]$partial = $false
)
$commit = Get-Git-Commit
$asmInfo = "using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
+
[assembly: ComVisibleAttribute(false)]
[assembly: AssemblyTitleAttribute(""$title"")]
@@ -50,6 +53,9 @@ using System.Runtime.InteropServices;
[assembly: AssemblyFileVersionAttribute(""$version"")]
[assembly: AssemblyDelaySignAttribute(false)]
"
+ if($partial) {
+ $asmInfo = $asmInfo + "[assembly: AllowPartiallyTrustedCallers]"
+ }
$dir = [System.IO.Path]::GetDirectoryName($file)
if ([System.IO.Directory]::Exists($dir) -eq $false)

0 comments on commit 5836ec9

Please sign in to comment.