mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18619: Removing Compiler option for Medium Trust
Work Item: 18619 --HG-- branch : 1.x
This commit is contained in:
@@ -10,10 +10,10 @@ namespace Orchard.Environment.Extensions.Compilers {
|
||||
|
||||
_codeCompilerType = GetDefaultCompilerTypeForLanguage("C#");
|
||||
|
||||
// define a precompilation flag so that module can adapt for older version
|
||||
var orchardVersion = new AssemblyName(typeof (IDependency).Assembly.FullName).Version;
|
||||
|
||||
_codeCompilerType.CompilerParameters.CompilerOptions += string.Format("/define:ORCHARD_{0}_{1}", orchardVersion.Major, orchardVersion.Minor) ;
|
||||
// NOTE: This code could be used to define a compilation flag with the current Orchar version
|
||||
// but it's not compatible with Medium Trust
|
||||
// var orchardVersion = new AssemblyName(typeof(IDependency).Assembly.FullName).Version;
|
||||
// _codeCompilerType.CompilerParameters.CompilerOptions += string.Format("/define:ORCHARD_{0}_{1}", orchardVersion.Major, orchardVersion.Minor);
|
||||
}
|
||||
|
||||
public IOrchardHostContainer HostContainer { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user