From ea4a01b8ce29eb44083c9e57814353f2f6782338 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Tue, 5 Nov 2024 08:23:09 +0000 Subject: [PATCH] Update the location of Auto-Generated The Windows Forms Generators had misplaced tags --- .../RoutedControlHost/RoutedControlHostGenerator.Execute.cs | 3 ++- .../ViewModelControlHostGenerator.Execute.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ReactiveUI.SourceGenerators/RoutedControlHost/RoutedControlHostGenerator.Execute.cs b/src/ReactiveUI.SourceGenerators/RoutedControlHost/RoutedControlHostGenerator.Execute.cs index 81a0f3a..f760443 100644 --- a/src/ReactiveUI.SourceGenerators/RoutedControlHost/RoutedControlHostGenerator.Execute.cs +++ b/src/ReactiveUI.SourceGenerators/RoutedControlHost/RoutedControlHostGenerator.Execute.cs @@ -88,17 +88,18 @@ private static string GetRoutedControlHost(string containingTypeName, string con return $$""" +// // Copyright (c) {{DateTime.Now.Year}} .NET Foundation and Contributors. All rights reserved. // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. + using ReactiveUI; using System.ComponentModel; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Windows.Forms; -// #pragma warning disable #nullable enable namespace {{containingNamespace}} diff --git a/src/ReactiveUI.SourceGenerators/ViewModelControlHost/ViewModelControlHostGenerator.Execute.cs b/src/ReactiveUI.SourceGenerators/ViewModelControlHost/ViewModelControlHostGenerator.Execute.cs index 477b7ff..d4df054 100644 --- a/src/ReactiveUI.SourceGenerators/ViewModelControlHost/ViewModelControlHostGenerator.Execute.cs +++ b/src/ReactiveUI.SourceGenerators/ViewModelControlHost/ViewModelControlHostGenerator.Execute.cs @@ -81,17 +81,18 @@ private static string GetViewModelControlHost(string containingTypeName, string return $$""" +// // Copyright (c) {{DateTime.Now.Year}} .NET Foundation and Contributors. All rights reserved. // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. + using ReactiveUI; using System.ComponentModel; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Windows.Forms; -// #pragma warning disable #nullable enable namespace {{containingNamespace}}