From b80e5d65778f5136f783fb21eeed58c9412890c2 Mon Sep 17 00:00:00 2001 From: Carl de Billy Date: Wed, 18 Dec 2019 10:15:34 -0500 Subject: [PATCH] Prevent RemoteGenerator from trigerring warnings or errors in code analysis. --- .../RemoteControl/RemoteControlGenerator.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/SourceGenerators/Uno.UI.SourceGenerators/RemoteControl/RemoteControlGenerator.cs b/src/SourceGenerators/Uno.UI.SourceGenerators/RemoteControl/RemoteControlGenerator.cs index e27a17908c55..5705d6e0385e 100644 --- a/src/SourceGenerators/Uno.UI.SourceGenerators/RemoteControl/RemoteControlGenerator.cs +++ b/src/SourceGenerators/Uno.UI.SourceGenerators/RemoteControl/RemoteControlGenerator.cs @@ -26,6 +26,17 @@ public override void Execute(SourceGeneratorContext context) { var sb = new IndentedStringBuilder(); + sb.AppendLineInvariant("// "); + sb.AppendLineInvariant("// ***************************************************************************************"); + sb.AppendLineInvariant("// This file has been generated by the package Uno.UI.RemoteControl - for Xaml Hot Reload."); + sb.AppendLineInvariant("// Documentation: https://platform.uno/docs/articles/features/working-with-xaml-hot-reload.html"); + sb.AppendLineInvariant("// ***************************************************************************************"); + sb.AppendLineInvariant("// "); + sb.AppendLineInvariant("// "); + sb.AppendLineInvariant("#pragma warning disable // Ignore code analysis warnings"); + + sb.AppendLineInvariant(""); + BuildEndPointAttribute(context, sb); BuildSearchPaths(context, sb);