You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by cc...@apache.org on 2013/02/20 23:09:31 UTC
git commit: LUCENENET-500 - Fixes for running in medium trust
Updated Branches:
refs/heads/master 855782fd4 -> 02b2430ad
LUCENENET-500 - Fixes for running in medium trust
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/02b2430a
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/02b2430a
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/02b2430a
Branch: refs/heads/master
Commit: 02b2430ada2b8048a883cc6dac7bd7cba407c4f4
Parents: 855782f
Author: ccurrens <cu...@gmail.com>
Authored: Wed Feb 20 14:08:58 2013 -0800
Committer: ccurrens <cu...@gmail.com>
Committed: Wed Feb 20 14:08:58 2013 -0800
----------------------------------------------------------------------
src/contrib/Analyzers/Contrib.Analyzers.csproj | 4 ++--
src/contrib/Analyzers/Properties/AssemblyInfo.cs | 2 ++
src/contrib/Core/Properties/AssemblyInfo.cs | 3 +++
.../Properties/AssemblyInfo.cs | 3 +++
src/contrib/Highlighter/AssemblyInfo.cs | 7 +++++--
src/contrib/Memory/Properties/AssemblyInfo.cs | 3 +++
src/contrib/Queries/Properties/AssemblyInfo.cs | 3 +++
src/contrib/Regex/Properties/AssemblyInfo.cs | 3 +++
.../SimpleFacetedSearch/Properties/AssemblyInfo.cs | 3 ++-
src/contrib/Snowball/AssemblyInfo.cs | 3 +++
src/contrib/Spatial/Properties/AssemblyInfo.cs | 3 +++
src/contrib/SpellChecker/AssemblyInfo.cs | 2 ++
src/contrib/WordNet/SynExpand/AssemblyInfo.cs | 2 ++
src/contrib/WordNet/SynLookup/AssemblyInfo.cs | 2 ++
src/contrib/WordNet/Syns2Index/AssemblyInfo.cs | 2 ++
src/core/AssemblyInfo.cs | 8 +++++---
src/core/Lucene.Net.csproj | 4 ++--
src/demo/Demo.Common/AssemblyInfo.cs | 3 +++
src/demo/Demo.Common/Demo.Common.csproj | 8 ++++----
test/contrib/Spatial/Properties/AssemblyInfo.cs | 3 +++
test/contrib/SpellChecker/AssemblyInfo.cs | 3 +++
21 files changed, 60 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Analyzers/Contrib.Analyzers.csproj
----------------------------------------------------------------------
diff --git a/src/contrib/Analyzers/Contrib.Analyzers.csproj b/src/contrib/Analyzers/Contrib.Analyzers.csproj
index 4f7826e..0dbb066 100644
--- a/src/contrib/Analyzers/Contrib.Analyzers.csproj
+++ b/src/contrib/Analyzers/Contrib.Analyzers.csproj
@@ -46,7 +46,7 @@
<DefineConstants>DEBUG;TRACE;$(Framework)</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<NoWarn>618</NoWarn>
<OutputType>Library</OutputType>
</PropertyGroup>
@@ -60,7 +60,7 @@
<DefineConstants>DEBUG;TRACE;$(Framework)</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<NoWarn>618</NoWarn>
<OutputType>Library</OutputType>
</PropertyGroup>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Analyzers/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Analyzers/Properties/AssemblyInfo.cs b/src/contrib/Analyzers/Properties/AssemblyInfo.cs
index a549681..8eb8d02 100644
--- a/src/contrib/Analyzers/Properties/AssemblyInfo.cs
+++ b/src/contrib/Analyzers/Properties/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -55,6 +56,7 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.3")]
[assembly: AssemblyFileVersion("3.0.3")]
+[assembly: AllowPartiallyTrustedCallers]
// for testing
[assembly: InternalsVisibleTo("Lucene.Net.Contrib.Analyzers.Test, PublicKey=002400000480000094000000060200000024000052534131000400000100010075a07ce602f88e" +
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Core/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Core/Properties/AssemblyInfo.cs b/src/contrib/Core/Properties/AssemblyInfo.cs
index 200903e..a492979 100644
--- a/src/contrib/Core/Properties/AssemblyInfo.cs
+++ b/src/contrib/Core/Properties/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -55,3 +56,5 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.3")]
[assembly: AssemblyFileVersion("3.0.3")]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs b/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs
index 15c18cc..9a545d9 100644
--- a/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs
+++ b/src/contrib/FastVectorHighlighter/Properties/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -54,3 +55,5 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.3")]
[assembly: AssemblyFileVersion("3.0.3")]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Highlighter/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Highlighter/AssemblyInfo.cs b/src/contrib/Highlighter/AssemblyInfo.cs
index 65ce67a..487630b 100644
--- a/src/contrib/Highlighter/AssemblyInfo.cs
+++ b/src/contrib/Highlighter/AssemblyInfo.cs
@@ -18,6 +18,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -34,7 +35,9 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Highlight")]
[assembly: AssemblyCulture("")]
-[assembly: AssemblyInformationalVersionAttribute("2.3.2")]
+[assembly: AssemblyInformationalVersionAttribute("3.0.3")]
+
+[assembly: AllowPartiallyTrustedCallers]
//
@@ -48,7 +51,7 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("2.3.2.001")]
+[assembly: AssemblyVersion("3.0.3")]
//
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Memory/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Memory/Properties/AssemblyInfo.cs b/src/contrib/Memory/Properties/AssemblyInfo.cs
index 1610da4..5635333 100644
--- a/src/contrib/Memory/Properties/AssemblyInfo.cs
+++ b/src/contrib/Memory/Properties/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -35,6 +36,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
+[assembly: AllowPartiallyTrustedCallers]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Queries/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Queries/Properties/AssemblyInfo.cs b/src/contrib/Queries/Properties/AssemblyInfo.cs
index 3bcfa71..fd774f2 100644
--- a/src/contrib/Queries/Properties/AssemblyInfo.cs
+++ b/src/contrib/Queries/Properties/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -55,3 +56,5 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.3")]
[assembly: AssemblyFileVersion("3.0.3")]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Regex/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Regex/Properties/AssemblyInfo.cs b/src/contrib/Regex/Properties/AssemblyInfo.cs
index b2db57e..36cbb93 100644
--- a/src/contrib/Regex/Properties/AssemblyInfo.cs
+++ b/src/contrib/Regex/Properties/AssemblyInfo.cs
@@ -18,6 +18,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -51,3 +52,5 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.3")]
[assembly: AssemblyFileVersion("3.0.3")]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs b/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs
index c39896d..ca1395b 100644
--- a/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs
+++ b/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -55,7 +56,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyVersion("3.0.3")]
[assembly: AssemblyFileVersion("3.0.3")]
-
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Snowball/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Snowball/AssemblyInfo.cs b/src/contrib/Snowball/AssemblyInfo.cs
index 354be74..6847c76 100644
--- a/src/contrib/Snowball/AssemblyInfo.cs
+++ b/src/contrib/Snowball/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -82,3 +83,5 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/Spatial/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Spatial/Properties/AssemblyInfo.cs b/src/contrib/Spatial/Properties/AssemblyInfo.cs
index 8c53fbc..dd324bd 100644
--- a/src/contrib/Spatial/Properties/AssemblyInfo.cs
+++ b/src/contrib/Spatial/Properties/AssemblyInfo.cs
@@ -17,6 +17,7 @@
using System.Reflection;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -58,3 +59,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/SpellChecker/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/SpellChecker/AssemblyInfo.cs b/src/contrib/SpellChecker/AssemblyInfo.cs
index 9728ab1..f1c5eb3 100644
--- a/src/contrib/SpellChecker/AssemblyInfo.cs
+++ b/src/contrib/SpellChecker/AssemblyInfo.cs
@@ -21,6 +21,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -78,6 +79,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
+[assembly: AllowPartiallyTrustedCallers]
//[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("SpellcheckTests")]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/WordNet/SynExpand/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/WordNet/SynExpand/AssemblyInfo.cs b/src/contrib/WordNet/SynExpand/AssemblyInfo.cs
index 7aed53c..f52e363 100644
--- a/src/contrib/WordNet/SynExpand/AssemblyInfo.cs
+++ b/src/contrib/WordNet/SynExpand/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -52,6 +53,7 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
[assembly: AssemblyVersion("2.0.0.1")]
+[assembly: AllowPartiallyTrustedCallers]
//
// In order to sign your assembly you must specify a key to use. Refer to the
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/WordNet/SynLookup/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/WordNet/SynLookup/AssemblyInfo.cs b/src/contrib/WordNet/SynLookup/AssemblyInfo.cs
index affd949..1135b81 100644
--- a/src/contrib/WordNet/SynLookup/AssemblyInfo.cs
+++ b/src/contrib/WordNet/SynLookup/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -52,6 +53,7 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
[assembly: AssemblyVersion("2.0.0.1")]
+[assembly: AllowPartiallyTrustedCallers]
//
// In order to sign your assembly you must specify a key to use. Refer to the
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/contrib/WordNet/Syns2Index/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/contrib/WordNet/Syns2Index/AssemblyInfo.cs b/src/contrib/WordNet/Syns2Index/AssemblyInfo.cs
index dbb4d5c..827e272 100644
--- a/src/contrib/WordNet/Syns2Index/AssemblyInfo.cs
+++ b/src/contrib/WordNet/Syns2Index/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -52,6 +53,7 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
[assembly: AssemblyVersion("2.0.0.1")]
+[assembly: AllowPartiallyTrustedCallers]
//
// In order to sign your assembly you must specify a key to use. Refer to the
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/core/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/core/AssemblyInfo.cs b/src/core/AssemblyInfo.cs
index b4285a3..8eaea22 100644
--- a/src/core/AssemblyInfo.cs
+++ b/src/core/AssemblyInfo.cs
@@ -18,6 +18,7 @@
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -57,6 +58,7 @@ using System.Runtime.CompilerServices;
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.3")]
+[assembly: AllowPartiallyTrustedCallers]
//
@@ -84,6 +86,6 @@ using System.Runtime.CompilerServices;
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-[assembly: AssemblyKeyName("")]
+//[assembly: AssemblyDelaySign(false)]
+//[assembly: AssemblyKeyFile("")]
+//[assembly: AssemblyKeyName("")]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/core/Lucene.Net.csproj
----------------------------------------------------------------------
diff --git a/src/core/Lucene.Net.csproj b/src/core/Lucene.Net.csproj
index de827a2..9245227 100644
--- a/src/core/Lucene.Net.csproj
+++ b/src/core/Lucene.Net.csproj
@@ -79,7 +79,7 @@
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
<OutputPath>..\..\build\bin\core\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>TRACE;$(Framework)</DefineConstants>
@@ -102,7 +102,7 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
<OutputPath>..\..\build\bin\core\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>TRACE;$(Framework)</DefineConstants>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/demo/Demo.Common/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/demo/Demo.Common/AssemblyInfo.cs b/src/demo/Demo.Common/AssemblyInfo.cs
index 95ef1d1..8959684 100644
--- a/src/demo/Demo.Common/AssemblyInfo.cs
+++ b/src/demo/Demo.Common/AssemblyInfo.cs
@@ -18,6 +18,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -78,3 +79,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
[assembly: ComVisibleAttribute(false)]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/src/demo/Demo.Common/Demo.Common.csproj
----------------------------------------------------------------------
diff --git a/src/demo/Demo.Common/Demo.Common.csproj b/src/demo/Demo.Common/Demo.Common.csproj
index 3c3e36c..d8b0613 100644
--- a/src/demo/Demo.Common/Demo.Common.csproj
+++ b/src/demo/Demo.Common/Demo.Common.csproj
@@ -62,7 +62,7 @@
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
<OutputPath>..\..\..\build\bin\demo\Demo.Common\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile></ConfigurationOverrideFile>
@@ -85,7 +85,7 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
<OutputPath>..\..\..\build\bin\demo\Demo.Common\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile></ConfigurationOverrideFile>
@@ -108,7 +108,7 @@
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
<OutputPath>..\..\..\build\bin\demo\Demo.Common\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile></ConfigurationOverrideFile>
@@ -131,7 +131,7 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<Framework>$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</Framework>
<OutputPath>..\..\..\build\bin\demo\Demo.Common\$(Configuration.Replace("35", ""))\$(Framework)\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile></ConfigurationOverrideFile>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/test/contrib/Spatial/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/test/contrib/Spatial/Properties/AssemblyInfo.cs b/test/contrib/Spatial/Properties/AssemblyInfo.cs
index 583572a..21e4f8c 100644
--- a/test/contrib/Spatial/Properties/AssemblyInfo.cs
+++ b/test/contrib/Spatial/Properties/AssemblyInfo.cs
@@ -17,6 +17,7 @@
using System.Reflection;
using System.Runtime.InteropServices;
+using System.Security;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -57,3 +58,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
+
+[assembly: AllowPartiallyTrustedCallers]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02b2430a/test/contrib/SpellChecker/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/test/contrib/SpellChecker/AssemblyInfo.cs b/test/contrib/SpellChecker/AssemblyInfo.cs
index de32172..938c6cb 100644
--- a/test/contrib/SpellChecker/AssemblyInfo.cs
+++ b/test/contrib/SpellChecker/AssemblyInfo.cs
@@ -22,6 +22,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -82,3 +83,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
[assembly: ComVisibleAttribute(false)]
+
+[assembly: AllowPartiallyTrustedCallers]