From a6dab00f37810009c288f8890b085f0bb5bbf1eb Mon Sep 17 00:00:00 2001 From: John Luo Date: Tue, 8 Mar 2016 15:03:57 -0800 Subject: [PATCH] Reacting to KoreBuild changes --- .../TagHelpers/TagHelperDesignTimeDescriptorFactoryTest.cs | 4 ++++ .../Runtime/TagHelpers/XmlDocumentationProviderTest.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/TagHelperDesignTimeDescriptorFactoryTest.cs b/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/TagHelperDesignTimeDescriptorFactoryTest.cs index 13d6445d6f..e35017fc87 100644 --- a/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/TagHelperDesignTimeDescriptorFactoryTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/TagHelperDesignTimeDescriptorFactoryTest.cs @@ -33,7 +33,11 @@ namespace Microsoft.AspNetCore.Razor.Runtime.TagHelpers // These test assemblies don't really exist. They are used to look up corresponding XML for a fake assembly // which is based on the DocumentedTagHelper type. public static readonly string TestRoot = +#if NET451 + Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "..")); +#else Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..", "..")); +#endif public static readonly string DocumentedAssemblyLocation = Path.Combine(TestRoot, "TestFiles", "NotLocalized", "TagHelperDocumentation.dll"); public static readonly string LocalizedDocumentedAssemblyLocation = diff --git a/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/XmlDocumentationProviderTest.cs b/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/XmlDocumentationProviderTest.cs index e85b99b8e3..b643f3590d 100644 --- a/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/XmlDocumentationProviderTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Runtime.Test/Runtime/TagHelpers/XmlDocumentationProviderTest.cs @@ -14,7 +14,11 @@ namespace Microsoft.AspNetCore.Razor.Runtime.TagHelpers public class XmlDocumentationProviderTest { private static readonly string TestRoot = +#if NET451 + Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "..")); +#else Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..", "..")); +#endif private static readonly string XmlTestFileLocation = TestRoot + "/TestFiles/NotLocalized/TagHelperDocumentation.xml"; private static readonly TypeInfo DocumentedTagHelperTypeInfo = typeof(DocumentedTagHelper).GetTypeInfo();