Updated missed dnx name changes.

This commit is contained in:
N. Taylor Mullen 2015-03-09 02:17:58 -07:00
parent 39db3ffc2b
commit 35fc8279dd
5 changed files with 14 additions and 14 deletions

View File

@ -1,9 +1,9 @@
@{ @{
string message = string message =
#if ASPNET50 #if DNX451
"Value set inside ASPNET50 " + GetType().Assembly.FullName; "Value set inside DNX451 " + GetType().Assembly.FullName;
#elif ASPNETCORE50 #elif DNXCORE50
"Value set inside ASPNETCORE50 " + System.Reflection.IntrospectionExtensions.GetTypeInfo(GetType()).Assembly.FullName; "Value set inside DNXCORE50 " + System.Reflection.IntrospectionExtensions.GetTypeInfo(GetType()).Assembly.FullName;
#endif #endif
} }
@message @message

View File

@ -17,12 +17,12 @@
"frameworks": { "frameworks": {
"dnx451": { "dnx451": {
"compilationOptions": { "compilationOptions": {
"define": [ "CUSTOM_ASPNET50_DEFINE" ] "define": [ "CUSTOM_DNX451_DEFINE" ]
} }
}, },
"dnxcore50": { "dnxcore50": {
"compilationOptions": { "compilationOptions": {
"define": [ "CUSTOM_ASPNETCORE50_DEFINE" ] "define": [ "CUSTOM_DNXCORE50_DEFINE" ]
} }
} }
}, },

View File

@ -15,14 +15,14 @@ namespace RazorWebSite
} }
#if DNX451_CUSTOM_DEFINE #if DNX451_CUSTOM_DEFINE
public string ExecuteAspNet50Operation() public string ExecuteDnx451Operation()
{ {
return "This method is only defined in DNX451"; return "This method is only defined in DNX451";
} }
#endif #endif
#if DNXCORE50_CUSTOM_DEFINE #if DNXCORE50_CUSTOM_DEFINE
public string ExecuteAspNetCore50Operation() public string ExecuteDnxCore50Operation()
{ {
return "This method is only defined in DNXCORE50"; return "This method is only defined in DNXCORE50";
} }

View File

@ -1,11 +1,11 @@
@inject FrameworkSpecificHelper MyHelper @inject FrameworkSpecificHelper MyHelper
@{ @{
string value = string value =
#if ASPNET50_CUSTOM_DEFINE #if DNX451_CUSTOM_DEFINE
MyHelper.ExecuteAspNet50Operation(); MyHelper.ExecuteDnx451Operation();
#endif #endif
#if ASPNETCORE50_CUSTOM_DEFINE #if DNXCORE50_CUSTOM_DEFINE
MyHelper.ExecuteAspNetCore50Operation(); MyHelper.ExecuteDnxCore50Operation();
#endif #endif
} }
@value @value

View File

@ -14,12 +14,12 @@
"frameworks": { "frameworks": {
"dnx451": { "dnx451": {
"compilationOptions": { "compilationOptions": {
"define": [ "ASPNET50_CUSTOM_DEFINE" ] "define": [ "DNX451_CUSTOM_DEFINE" ]
} }
}, },
"dnxcore50": { "dnxcore50": {
"compilationOptions": { "compilationOptions": {
"define": [ "ASPNETCORE50_CUSTOM_DEFINE" ] "define": [ "DNXCORE50_CUSTOM_DEFINE" ]
} }
} }
}, },