summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-03-01 19:45:03 +0100
committerJason Smith <jason.smith@xamarin.com>2017-03-01 10:45:03 -0800
commitc57f859745aeef7965e03639fc016ee0c7a8a218 (patch)
treea9629670f09032d2d352dcd8c368a0661c901392 /Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs
parent9b18ab9fb438a88c2be8a54aa3f567a9b1c398da (diff)
downloadxamarin-forms-c57f859745aeef7965e03639fc016ee0c7a8a218.tar.gz
xamarin-forms-c57f859745aeef7965e03639fc016ee0c7a8a218.tar.bz2
xamarin-forms-c57f859745aeef7965e03639fc016ee0c7a8a218.zip
Xamlc ppdb backport (#792)
* [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 * [XamlC] support portable pdb (#726) * [XamlC] update to cecil 0.10.0-b4 to better symbol detection (#791)
Diffstat (limited to 'Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs')
-rw-r--r--Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs b/Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs
index 60c3328f..e417f118 100644
--- a/Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs
+++ b/Xamarin.Forms.Build.Tasks/CompiledValueProviders/SetterValueProvider.cs
@@ -29,7 +29,7 @@ namespace Xamarin.Forms.Core.XamlC
var bpRef = (new BindablePropertyConverter()).GetBindablePropertyFieldReference((string)bpNode.Value, module, bpNode);
TypeReference _;
- var setValueRef = module.Import(module.Import(typeof(Setter)).GetProperty(p => p.Name == "Value", out _).SetMethod);
+ var setValueRef = module.ImportReference(module.ImportReference(typeof(Setter)).GetProperty(p => p.Name == "Value", out _).SetMethod);
//push the setter
yield return Instruction.Create(OpCodes.Ldloc, vardefref.VariableDefinition);