diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2016-11-16 20:51:53 +0100 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-11-16 11:51:53 -0800 |
commit | d97dfe91b28a30e9a350155262b1149eed8d462f (patch) | |
tree | 0dd0a9cab6461d9207410c0d84e7cd8dca796af1 /Xamarin.Forms.Xaml/XamlFilePathAttribute.cs | |
parent | bc7755ca56e3958318434263d74611c249a59aff (diff) | |
download | xamarin-forms-d97dfe91b28a30e9a350155262b1149eed8d462f.tar.gz xamarin-forms-d97dfe91b28a30e9a350155262b1149eed8d462f.tar.bz2 xamarin-forms-d97dfe91b28a30e9a350155262b1149eed8d462f.zip |
[XamlC] use correct filePath for XamlC error reporting (#513)
* [XamlG] decorate partial classes with [XamlFile] attribute
* [XamlC] use correct filePath for XamlC error reporting
* [docs] update docs
Diffstat (limited to 'Xamarin.Forms.Xaml/XamlFilePathAttribute.cs')
-rw-r--r-- | Xamarin.Forms.Xaml/XamlFilePathAttribute.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml/XamlFilePathAttribute.cs b/Xamarin.Forms.Xaml/XamlFilePathAttribute.cs new file mode 100644 index 00000000..615f290b --- /dev/null +++ b/Xamarin.Forms.Xaml/XamlFilePathAttribute.cs @@ -0,0 +1,13 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Xamarin.Forms.Xaml +{ + [AttributeUsage(AttributeTargets.Class, Inherited = false)] + public sealed class XamlFilePathAttribute : Attribute + { + public XamlFilePathAttribute([CallerFilePath] string filePath = "") + { + } + } +}
\ No newline at end of file |