diff options
Diffstat (limited to 'Xamarin.Forms.Xaml')
-rw-r--r-- | Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.csproj | 1 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml/XamlCompilationAttribute.cs | 1 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml/XamlFilePathAttribute.cs | 13 |
3 files changed, 15 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.csproj b/Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.csproj index f521d362..2b9d57de 100644 --- a/Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.csproj +++ b/Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.csproj @@ -82,6 +82,7 @@ <Compile Include="XamlCompilationAttribute.cs" /> <Compile Include="TypeArgumentsParser.cs" /> <Compile Include="PruneIgnoredNodesVisitor.cs" /> + <Compile Include="XamlFilePathAttribute.cs" /> </ItemGroup> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> <ItemGroup> diff --git a/Xamarin.Forms.Xaml/XamlCompilationAttribute.cs b/Xamarin.Forms.Xaml/XamlCompilationAttribute.cs index 79cc87bd..fbc5656a 100644 --- a/Xamarin.Forms.Xaml/XamlCompilationAttribute.cs +++ b/Xamarin.Forms.Xaml/XamlCompilationAttribute.cs @@ -1,5 +1,6 @@ using System; using System.Reflection; +using System.Runtime.CompilerServices; namespace Xamarin.Forms.Xaml { 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 |