Bump Razor to dotnet5.5
This commit is contained in:
parent
b6f8c523a8
commit
b622a5b0d3
|
|
@ -17,7 +17,7 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {}
|
||||
"dotnet5.5": {}
|
||||
},
|
||||
"exclude": [
|
||||
"wwwroot",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Reflection.PortableExecutable;
|
||||
#if DOTNET5_4
|
||||
#if DOTNET5_5
|
||||
using System.Runtime.Loader;
|
||||
#endif
|
||||
using Microsoft.AspNet.FileProviders;
|
||||
|
|
@ -40,7 +40,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
|
|||
private readonly Lazy<List<MetadataReference>> _applicationReferences;
|
||||
private readonly string _classPrefix;
|
||||
|
||||
#if DOTNET5_4
|
||||
#if DOTNET5_5
|
||||
private readonly RazorLoadContext _razorLoadContext;
|
||||
#endif
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
|
|||
_fileProvider = optionsAccessor.Value.FileProvider;
|
||||
_classPrefix = host.MainClassNamePrefix;
|
||||
|
||||
#if DOTNET5_4
|
||||
#if DOTNET5_5
|
||||
_razorLoadContext = new RazorLoadContext();
|
||||
#endif
|
||||
}
|
||||
|
|
@ -339,7 +339,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
|
|||
return null;
|
||||
}
|
||||
|
||||
#if DOTNET5_4
|
||||
#if DOTNET5_5
|
||||
private class RazorLoadContext : AssemblyLoadContext
|
||||
{
|
||||
protected override Assembly Load(AssemblyName assemblyName)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"System.Threading.Tasks": ""
|
||||
}
|
||||
},
|
||||
"dotnet5.4": {
|
||||
"dotnet5.5": {
|
||||
"dependencies": {
|
||||
"System.Text.Encoding": "4.0.11-*",
|
||||
"System.Runtime.Loader": "4.0.0-*",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dotnet5.5": {
|
||||
"dependencies": {
|
||||
"System.Security.Cryptography.Algorithms": "4.0.0-*"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,6 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {}
|
||||
"dotnet5.5": {}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue