Switching to generations TFMs

This commit is contained in:
Pranav K 2015-10-22 00:20:57 -07:00
parent 2e884f20f7
commit 20f90e9879
7 changed files with 109 additions and 99 deletions

View File

@ -1,18 +1,20 @@
{
"version": "1.0.0-*",
"description": "ASP.NET 5 diagnostics middleware abstractions.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
},
"compilationOptions": { "warningsAsErrors": true },
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.Runtime": "4.0.21-beta-*",
"System.Resources.ResourceManager": "4.0.1-beta-*"
}
}
"version": "1.0.0-*",
"description": "ASP.NET 5 diagnostics middleware abstractions.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
},
"compilationOptions": {
"warningsAsErrors": true
},
"frameworks": {
"net451": {},
"dotnet5.4": {
"dependencies": {
"System.Runtime": "4.0.21-beta-*",
"System.Resources.ResourceManager": "4.0.1-beta-*"
}
}
}
}
}

View File

@ -1,5 +1,5 @@
using System;
#if DNX451
#if NET451
using System.Runtime.Remoting;
using System.Runtime.Remoting.Messaging;
#else
@ -25,7 +25,7 @@ namespace Microsoft.AspNet.Diagnostics.Elm
public ScopeNode Node { get; set; }
#if DNX451
#if NET451
private static string FieldKey = typeof(ElmScope).FullName + ".Value";
public static ElmScope Current
{

View File

@ -1,21 +1,23 @@
{
"version": "1.0.0-*",
"description": "ASP.NET 5 Middleware to capture and display the request logs.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
},
"dependencies": {
"Microsoft.AspNet.Diagnostics": "1.0.0-*",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*"
},
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.Threading": "4.0.11-beta-*"
}
}
},
"compileExclude": ["Views/*.cshtml"]
}
"version": "1.0.0-*",
"description": "ASP.NET 5 Middleware to capture and display the request logs.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
},
"dependencies": {
"Microsoft.AspNet.Diagnostics": "1.0.0-*",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*"
},
"frameworks": {
"net451": {},
"dotnet5.4": {
"dependencies": {
"System.Threading": "4.0.11-beta-*"
}
}
},
"compileExclude": [
"Views/*.cshtml"
]
}

View File

@ -6,7 +6,7 @@ using Microsoft.AspNet.Diagnostics.Entity.Utilities;
using Microsoft.Data.Entity.Storage;
using Microsoft.Extensions.Logging;
using System;
#if DNXCORE50
#if DOTNET5_4
using System.Threading;
#else
using System.Runtime.Remoting.Messaging;
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity
{
public class DataStoreErrorLogger : ILogger
{
#if DNXCORE50
#if DOTNET5_4
private readonly AsyncLocal<DataStoreErrorLog> _log = new AsyncLocal<DataStoreErrorLog>();
#else
private const string ContextName = "__DataStoreErrorLog";
@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity
{
get
{
#if DNXCORE50
#if DOTNET5_4
return _log.Value;
#else
return (DataStoreErrorLog)CallContext.LogicalGetData(ContextName);
@ -41,7 +41,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity
// it will not be available to code outside of the current async context.
// We create it ahead of time so that any cloning just clones the reference
// to the object that will hold any errors.
#if DNXCORE50
#if DOTNET5_4
_log.Value = new DataStoreErrorLog();
#else
CallContext.LogicalSetData(ContextName, new DataStoreErrorLog());

View File

@ -66,7 +66,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity
try
{
#if !DNXCORE50
#if !DOTNET5_4
// TODO This probably isn't the correct place for this workaround, it
// needs to be called before anything is written to CallContext
// http://msdn.microsoft.com/en-us/library/dn458353(v=vs.110).aspx

View File

@ -1,29 +1,31 @@
{
"version": "7.0.0-*",
"description": "ASP.NET 5 Middleware for Entity Framework error pages.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
"version": "7.0.0-*",
"description": "ASP.NET 5 Middleware for Entity Framework error pages.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
},
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Diagnostics": "1.0.0-*",
"EntityFramework.Relational": "7.0.0-*"
},
"compile": [
"..\\Shared\\*.cs"
],
"frameworks": {
"net451": {
"frameworkAssemblies": {
"System.Configuration": "",
"System.Threading.Tasks": ""
}
},
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Diagnostics": "1.0.0-*",
"EntityFramework.Relational": "7.0.0-*"
},
"compile": [ "..\\Shared\\*.cs" ],
"frameworks": {
"dnx451": {
"frameworkAssemblies": {
"System.Configuration": "",
"System.Threading.Tasks": ""
}
},
"dnxcore50": {
"dependencies": {
"System.Threading": "4.0.11-beta-*"
}
}
"dotnet5.4": {
"dependencies": {
"System.Threading": "4.0.11-beta-*"
}
}
}
}
}

View File

@ -1,32 +1,36 @@
{
"version": "1.0.0-*",
"description": "ASP.NET 5 Middleware for exception handling, exception display pages, and diagnostics information.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
"version": "1.0.0-*",
"description": "ASP.NET 5 Middleware for exception handling, exception display pages, and diagnostics information.",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/diagnostics"
},
"dependencies": {
"Microsoft.AspNet.Diagnostics.Abstractions": "1.0.0-*",
"Microsoft.AspNet.FileProviders.Physical": "1.0.0-*",
"Microsoft.AspNet.Http.Extensions": "1.0.0-*",
"Microsoft.AspNet.WebUtilities": "1.0.0-*",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
"Microsoft.Extensions.OptionsModel": "1.0.0-*",
"Microsoft.Dnx.Compilation.Abstractions": "1.0.0-*",
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-*",
"System.Diagnostics.DiagnosticSource": "4.0.0-beta-*"
},
"frameworks": {
"net451": {
"frameworkAssemblies": {
"System.Runtime": ""
}
},
"dependencies": {
"Microsoft.AspNet.Diagnostics.Abstractions": "1.0.0-*",
"Microsoft.AspNet.FileProviders.Physical": "1.0.0-*",
"Microsoft.AspNet.Http.Extensions": "1.0.0-*",
"Microsoft.AspNet.WebUtilities": "1.0.0-*",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
"Microsoft.Extensions.OptionsModel": "1.0.0-*",
"Microsoft.Dnx.Compilation.Abstractions": "1.0.0-*",
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-*",
"System.Diagnostics.DiagnosticSource": "4.0.0-beta-*"
},
"frameworks": {
"dnx451": {
"frameworkAssemblies": {
"System.Runtime": ""
}
},
"dnxcore50": {
"dependencies": {
"System.Reflection.Extensions": "4.0.1-beta-*"
}
}
},
"compileExclude": ["DeveloperExceptionPage/Views/*.cshtml", "RuntimeInfo/Views/*.cshtml", "WelcomePage/Views/*.cshtml"]
}
"dotnet5.4": {
"dependencies": {
"System.Reflection.Extensions": "4.0.1-beta-*"
}
}
},
"compileExclude": [
"DeveloperExceptionPage/Views/*.cshtml",
"RuntimeInfo/Views/*.cshtml",
"WelcomePage/Views/*.cshtml"
]
}