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();