summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-02-02 10:57:50 +0100
committerGitHub <noreply@github.com>2017-02-02 10:57:50 +0100
commitfa0882114d31387acaa8d6f43b638a0bf1efa871 (patch)
treeda73c08286f19c2aae8cabbbfbf630e47ad9a7f5 /Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs
parent72699e34b2f4b3e8a939eebe03240ca7511b50e7 (diff)
downloadxamarin-forms-fa0882114d31387acaa8d6f43b638a0bf1efa871.tar.gz
xamarin-forms-fa0882114d31387acaa8d6f43b638a0bf1efa871.tar.bz2
xamarin-forms-fa0882114d31387acaa8d6f43b638a0bf1efa871.zip
[XamlC] Produce correct mdb files (#699)
* [XamlC] change MockCompile (internal) API * [XamlC] fix debugging in unit test project * f * [XamlC] update cecil to 0.10.0-beta1-v2 * beta2 * avoid method duplication * [XamlC] force loading MdbReader and Writer * [XamlC] force use the writer in the other task too * [XamlC] fix test and test code generator * try building this * [XamlC] Ensure InitializeComponent is correctly routed * fix
Diffstat (limited to 'Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs')
-rw-r--r--Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs b/Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs
index 7682ec86..59b72acc 100644
--- a/Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs
+++ b/Xamarin.Forms.Build.Tasks/XmlTypeExtensions.cs
@@ -91,7 +91,7 @@ namespace Xamarin.Forms.Build.Tasks
var assemblydefinition = module.Assembly.Name.Name == asm.AssemblyName ?
module.Assembly :
- module.AssemblyResolver.Resolve(asm.AssemblyName);
+ module.AssemblyResolver.Resolve(AssemblyNameReference.Parse(asm.AssemblyName));
type = assemblydefinition.MainModule.GetType(asm.ClrNamespace, name);
if (type == null)
@@ -108,14 +108,14 @@ namespace Xamarin.Forms.Build.Tasks
if (type != null && typeArguments != null && type.HasGenericParameters)
{
type =
- module.Import(type)
+ module.ImportReference(type)
.MakeGenericInstanceType(typeArguments.Select(x => GetTypeReference(x, module, xmlInfo)).ToArray());
}
if (type == null)
throw new XamlParseException(string.Format("Type {0} not found in xmlns {1}", elementName, namespaceURI), xmlInfo);
- return module.Import(type);
+ return module.ImportReference(type);
}
}
} \ No newline at end of file