diff --git a/.gitignore b/.gitignore index 3fbeffe..4a6ca0f 100644 --- a/.gitignore +++ b/.gitignore @@ -251,3 +251,5 @@ paket-files/ .idea/ *.sln.iml Test + +content/ \ No newline at end of file diff --git a/src/MIISHandler/Common.cs b/src/MIISHandler/Common.cs index 6d37389..3707230 100644 --- a/src/MIISHandler/Common.cs +++ b/src/MIISHandler/Common.cs @@ -43,6 +43,11 @@ public static string GetFieldValue(string name, MarkdownFile md = null, string d return val; } + return GetFieldValueFromConfig(name, defValue); + } + + public static string GetFieldValueFromConfig(string name, string defValue) + { //Retrieve from Web.config using the app-specific prefix or without it if it's not present return WebHelper.GetParamValue(WEB_CONFIG_PARAM_PREFIX + name, WebHelper.GetParamValue(name, defValue)); } diff --git a/src/MIISHandler/MIISHandler.csproj b/src/MIISHandler/MIISHandler.csproj index 6ec35e6..48bb73c 100644 --- a/src/MIISHandler/MIISHandler.csproj +++ b/src/MIISHandler/MIISHandler.csproj @@ -31,6 +31,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -39,14 +40,20 @@ TRACE prompt 4 + false ..\packages\Markdig.0.15.1\lib\net35\Markdig.dll + + + + + @@ -111,7 +118,9 @@ Web.config - + + + 10.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) @@ -124,16 +133,7 @@ - True - True - 51460 - / - http://localhost:51465/ - False - False - - - False + True diff --git a/src/MIISHandler/Web.config b/src/MIISHandler/Web.config index 338bfb4..8c3bd33 100644 --- a/src/MIISHandler/Web.config +++ b/src/MIISHandler/Web.config @@ -1,12 +1,12 @@  - - - + + + - + @@ -27,10 +27,21 @@ - + - + + + + + + + + + + + + + - \ No newline at end of file