Sourcegenerator code produces warnings
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Current Behavior
The auto generated code produces warnings. In this case it breaks the build because the project is setup with <AnalysisMode>All</AnalysisMode>
and <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
.
1>------ Build started: Project: FeltApp, Configuration: Debug Any CPU ------
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EditorTextColorTo.g.shared.cs(12,29,12,60): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_Editor
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\DatePickerTextColorTo.g.shared.cs(12,29,12,64): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_DatePicker
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\ButtonTextColorTo.g.shared.cs(12,29,12,60): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_Button
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EntryTextColorTo.g.shared.cs(12,29,12,59): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_Entry
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\LabelTextColorTo.g.shared.cs(12,29,12,59): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_Label
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\PickerTextColorTo.g.shared.cs(12,29,12,60): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_Picker
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\RadioButtonTextColorTo.g.shared.cs(12,29,12,65): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_RadioButton
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\SearchBarTextColorTo.g.shared.cs(12,29,12,63): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_SearchBar
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\TimePickerTextColorTo.g.shared.cs(12,29,12,64): error CA1707: Remove the underscores from type name Microsoft.Maui.Controls.ColorAnimationExtensions_TimePicker
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\DatePickerTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\SearchBarTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\LabelTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\DatePickerTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\SearchBarTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\SearchBarTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\SearchBarTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\SearchBarTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\DatePickerTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\DatePickerTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\DatePickerTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\LabelTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\LabelTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\LabelTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\LabelTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\ButtonTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\ButtonTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\ButtonTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\ButtonTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\ButtonTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\RadioButtonTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\RadioButtonTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\RadioButtonTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\RadioButtonTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\RadioButtonTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EditorTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EditorTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EditorTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EditorTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EditorTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\PickerTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\PickerTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\PickerTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\PickerTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\PickerTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EntryTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EntryTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EntryTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EntryTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\EntryTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\TimePickerTextColorTo.g.shared.cs(35,88,35,136): error CA2000: Call System.IDisposable.Dispose on object created by 'GetGreenTransformAnimation(element, color.Green)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\TimePickerTextColorTo.g.shared.cs(35,146,35,192): error CA2000: Call System.IDisposable.Dispose on object created by 'GetBlueTransformAnimation(element, color.Blue)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\TimePickerTextColorTo.g.shared.cs(35,34,35,78): error CA2000: Call System.IDisposable.Dispose on object created by 'GetRedTransformAnimation(element, color.Red)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\TimePickerTextColorTo.g.shared.cs(35,202,35,250): error CA2000: Call System.IDisposable.Dispose on object created by 'GetAlphaTransformAnimation(element, color.Alpha)' before all references to it are out of scope
1>C:\SourceCode\mdir\FeltApp\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\TimePickerTextColorTo.g.shared.cs(35,13,35,254): error CA2000: Call System.IDisposable.Dispose on object created by 'new Animation{{0, 1, GetRedTransformAnimation(element, color.Red)}, {0, 1, GetGreenTransformAnimation(element, color.Green)}, {0, 1, GetBlueTransformAnimation(element, color.Blue)}, {0, 1, GetAlphaTransformAnimation(element, color.Alpha)}, }' before all references to it are out of scope
Expected Behavior
No warnings and also a <auto-generated>
header should be included.
This is an example of a <auto-generated>
header from Microsoft.Maui.Controls.SourceGen
.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a .NET MAUI source generator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId("Test.App.xaml", "App.xaml", typeof(global::Test.App))]
namespace Mdir
{
[global::Microsoft.Maui.Controls.Xaml.XamlFilePath("App.xaml")]
public partial class App : global::Microsoft.Maui.Controls.Application
{
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Maui.Controls.SourceGen", "1.0.0.0")]
#if NET5_0_OR_GREATER
#endif
private void InitializeComponent()
{
global::Microsoft.Maui.Controls.Xaml.Extensions.LoadFromXaml(this, typeof(App));
}
}
}
Steps To Reproduce
<AnalysisMode>All</AnalysisMode>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Link to public reproduction project repository
n/a
Environment
- .NET MAUI CommunityToolkit: 1.2.0
- OS: Windows 11
- .NET MAUI: 6.0
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
JSON serializer source generator produces warnings for ...
Search code, repositories, users, issues, pull requests... · Provide feedback · Saved searches · JSON serializer source generator produces warnings ...
Read more >Source-generator diagnostics in .NET 6+
Learn about analyzer diagnostics created by source generators in .NET 6 and later versions that produce SYSLIB compiler warnings.
Read more >Code Analysis on a Code Generator Generated File
The generated code is producing Code Analysis warnings that I would like to suppress. Is there any way I can suppress CA warnings...
Read more >Incremental Roslyn Source Generators In .NET 6
This new property returns all items of a Smart Enum. Although the Source Generator is fully functional, I still don't consider the current...
Read more >C# Source Generators in Action, by Andrey Dyatlov - YouTube
C# 9 introduced the long-awaited compiler integrated code generation capability. If you've dreamed of getting rid of thousands of lines of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, could you please check that PR #508 fixes your issue. This PR which will be released soon fix the auto-generated flag.
@espenrl so it is resolved for you? Intersecting, I’m still seeing the issue