diff options
author | David Karlaš <david.karlas@xamarin.com> | 2016-07-23 23:16:28 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@xamarin.com> | 2016-07-23 23:16:28 +0300 |
commit | fc374fc8f141b4ffc4d14410b6d94771c82f168d (patch) | |
tree | 0b9572985937b679d7b6878ec89a3b594d38db76 /main/src/addins/TextTemplating | |
parent | 237a8592168e1b18cc6c16bedf115267456f0542 (diff) |
[TextTemplatingUnitTest] Fixed failing unit test on Windows
Diffstat (limited to 'main/src/addins/TextTemplating')
-rw-r--r-- | main/src/addins/TextTemplating/Mono.TextTemplating.Tests/GenerationTests.cs | 1 | ||||
-rw-r--r-- | main/src/addins/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/TextTemplating/Mono.TextTemplating.Tests/GenerationTests.cs b/main/src/addins/TextTemplating/Mono.TextTemplating.Tests/GenerationTests.cs index fec5b2ebc5..2fc7d23235 100644 --- a/main/src/addins/TextTemplating/Mono.TextTemplating.Tests/GenerationTests.cs +++ b/main/src/addins/TextTemplating/Mono.TextTemplating.Tests/GenerationTests.cs @@ -51,6 +51,7 @@ namespace Mono.TextTemplating.Tests { var gen = new TemplateGenerator (); string tmp = null; + gen.ReferencePaths.Add (Path.GetDirectoryName (typeof (Uri).Assembly.Location)); gen.ProcessTemplate (null, "<#@ assembly name=\"System.dll\" #>\n<#@ assembly name=\"System.Core.dll\" #>", ref tmp, out tmp); Assert.AreEqual (0, gen.Errors.Count, "ImportReferencesTest"); } diff --git a/main/src/addins/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs b/main/src/addins/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs index bb793a7a53..f4899d6068 100644 --- a/main/src/addins/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs +++ b/main/src/addins/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs @@ -62,7 +62,7 @@ namespace Mono.TextTemplating public TemplateGenerator () { Refs.Add (typeof (TextTransformation).Assembly.Location); - Refs.Add (typeof(Uri).Assembly.FullName); + Refs.Add (typeof(Uri).Assembly.Location); Imports.Add ("System"); } |