Updated missed dnx name changes.
This commit is contained in:
parent
39db3ffc2b
commit
35fc8279dd
|
|
@ -1,9 +1,9 @@
|
|||
@{
|
||||
string message =
|
||||
#if ASPNET50
|
||||
"Value set inside ASPNET50 " + GetType().Assembly.FullName;
|
||||
#elif ASPNETCORE50
|
||||
"Value set inside ASPNETCORE50 " + System.Reflection.IntrospectionExtensions.GetTypeInfo(GetType()).Assembly.FullName;
|
||||
#if DNX451
|
||||
"Value set inside DNX451 " + GetType().Assembly.FullName;
|
||||
#elif DNXCORE50
|
||||
"Value set inside DNXCORE50 " + System.Reflection.IntrospectionExtensions.GetTypeInfo(GetType()).Assembly.FullName;
|
||||
#endif
|
||||
}
|
||||
@message
|
||||
|
|
|
|||
|
|
@ -17,12 +17,12 @@
|
|||
"frameworks": {
|
||||
"dnx451": {
|
||||
"compilationOptions": {
|
||||
"define": [ "CUSTOM_ASPNET50_DEFINE" ]
|
||||
"define": [ "CUSTOM_DNX451_DEFINE" ]
|
||||
}
|
||||
},
|
||||
"dnxcore50": {
|
||||
"compilationOptions": {
|
||||
"define": [ "CUSTOM_ASPNETCORE50_DEFINE" ]
|
||||
"define": [ "CUSTOM_DNXCORE50_DEFINE" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,14 +15,14 @@ namespace RazorWebSite
|
|||
}
|
||||
|
||||
#if DNX451_CUSTOM_DEFINE
|
||||
public string ExecuteAspNet50Operation()
|
||||
public string ExecuteDnx451Operation()
|
||||
{
|
||||
return "This method is only defined in DNX451";
|
||||
}
|
||||
#endif
|
||||
|
||||
#if DNXCORE50_CUSTOM_DEFINE
|
||||
public string ExecuteAspNetCore50Operation()
|
||||
public string ExecuteDnxCore50Operation()
|
||||
{
|
||||
return "This method is only defined in DNXCORE50";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
@inject FrameworkSpecificHelper MyHelper
|
||||
@{
|
||||
string value =
|
||||
#if ASPNET50_CUSTOM_DEFINE
|
||||
MyHelper.ExecuteAspNet50Operation();
|
||||
#if DNX451_CUSTOM_DEFINE
|
||||
MyHelper.ExecuteDnx451Operation();
|
||||
#endif
|
||||
#if ASPNETCORE50_CUSTOM_DEFINE
|
||||
MyHelper.ExecuteAspNetCore50Operation();
|
||||
#if DNXCORE50_CUSTOM_DEFINE
|
||||
MyHelper.ExecuteDnxCore50Operation();
|
||||
#endif
|
||||
}
|
||||
@value
|
||||
|
|
@ -14,12 +14,12 @@
|
|||
"frameworks": {
|
||||
"dnx451": {
|
||||
"compilationOptions": {
|
||||
"define": [ "ASPNET50_CUSTOM_DEFINE" ]
|
||||
"define": [ "DNX451_CUSTOM_DEFINE" ]
|
||||
}
|
||||
},
|
||||
"dnxcore50": {
|
||||
"compilationOptions": {
|
||||
"define": [ "ASPNETCORE50_CUSTOM_DEFINE" ]
|
||||
"define": [ "DNXCORE50_CUSTOM_DEFINE" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue