Reacting to KoreBuild changes

This commit is contained in:
John Luo 2016-03-08 15:03:57 -08:00
parent e5927ddd01
commit a6dab00f37
2 changed files with 8 additions and 0 deletions

View File

@ -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 =

View File

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