From f0ac92ab4b7d0563879e71c0979e32b2bb1b7cb9 Mon Sep 17 00:00:00 2001 From: dmeatte Date: Fri, 12 Oct 2018 07:35:32 -0400 Subject: [PATCH 1/2] added a content folder and got all requests to redirect to the content folder --- .gitignore | 2 ++ src/MIISHandler/Common.cs | 5 +++++ src/MIISHandler/MIISHandler.csproj | 22 +++++++++++----------- src/MIISHandler/Web.config | 21 ++++++++++++++------- 4 files changed, 32 insertions(+), 18 deletions(-) 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..af4741a 100644 --- a/src/MIISHandler/Web.config +++ b/src/MIISHandler/Web.config @@ -1,12 +1,12 @@  - - - + + + - + @@ -27,10 +27,17 @@ - + - + + + + + + + + + - \ No newline at end of file From 8aa0d1ae326ac3132b8d448c81a55305d2d21b52 Mon Sep 17 00:00:00 2001 From: dmeatte Date: Fri, 12 Oct 2018 09:15:51 -0400 Subject: [PATCH 2/2] removed the css and templates folder from the redirect --- src/MIISHandler/Web.config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MIISHandler/Web.config b/src/MIISHandler/Web.config index af4741a..8c3bd33 100644 --- a/src/MIISHandler/Web.config +++ b/src/MIISHandler/Web.config @@ -35,6 +35,10 @@ + + + +