diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 183984f7..8810c667 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -11,7 +11,7 @@ variables:
PathToCommunityToolkitSampleCsproj: 'samples/CommunityToolkit.Maui.Markup.Sample/CommunityToolkit.Maui.Markup.Sample.csproj'
PathToCommunityToolkitUnitTestCsproj: 'src/CommunityToolkit.Maui.Markup.UnitTests/CommunityToolkit.Maui.Markup.UnitTests.csproj'
PathToCommunityToolkitSourceGeneratorsCsproj: 'src/CommunityToolkit.Maui.Markup.SourceGenerators/CommunityToolkit.Maui.Markup.SourceGenerators.csproj'
- XcodeVersion: '14.1.0'
+ XcodeVersion: '14.2.0'
ShouldCheckDependencies: true
trigger:
@@ -91,28 +91,28 @@ jobs:
inputs:
solution: '$(PathToCommunityToolkitSourceGeneratorsCsproj)'
configuration: 'Release'
- msbuildArgs: '/restore'
+ msbuildArgs: '/restore /warnaserror'
- task: VSBuild@1
displayName: 'Build CommunityToolkit.Maui.Markup'
inputs:
solution: '$(PathToCommunityToolkitCsproj)'
configuration: 'Release'
- msbuildArgs: '/restore'
+ msbuildArgs: '/restore /warnaserror'
- task: VSBuild@1
displayName: 'Build CommunityToolkit.Maui.Markup.Sample'
inputs:
solution: '$(PathToCommunityToolkitSampleCsproj)'
configuration: 'Release'
- msbuildArgs: '/restore'
+ msbuildArgs: '/restore /warnaserror'
- task: VSBuild@1
displayName: 'Build CommunityToolkit.Maui.Markup.UnitTests'
inputs:
solution: '$(PathToCommunityToolkitUnitTestCsproj)'
configuration: 'Release'
- msbuildArgs: '/restore'
+ msbuildArgs: '/restore /warnaserror'
# test
- task: DotNetCoreCLI@2
@@ -289,22 +289,22 @@ jobs:
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Markup.SourceGenerators'
inputs:
- script: dotnet build $(PathToCommunityToolkitSourceGeneratorsCsproj) -c Release
+ script: dotnet build $(PathToCommunityToolkitSourceGeneratorsCsproj) -c Release -warnaserror
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Markup'
inputs:
- script: dotnet build $(PathToCommunityToolkitCsproj) -c Release
+ script: dotnet build $(PathToCommunityToolkitCsproj) -c Release -warnaserror
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Markup.Sample'
inputs:
- script: dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release
+ script: dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release -warnaserror
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Markup.UnitTests'
inputs:
- script: dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release
+ script: dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release -warnaserror
# test
- task: CmdLine@2
diff --git a/samples/CommunityToolkit.Maui.Markup.Sample/CommunityToolkit.Maui.Markup.Sample.csproj b/samples/CommunityToolkit.Maui.Markup.Sample/CommunityToolkit.Maui.Markup.Sample.csproj
index e35d5241..c652ab9d 100644
--- a/samples/CommunityToolkit.Maui.Markup.Sample/CommunityToolkit.Maui.Markup.Sample.csproj
+++ b/samples/CommunityToolkit.Maui.Markup.Sample/CommunityToolkit.Maui.Markup.Sample.csproj
@@ -53,4 +53,14 @@
+
+
+
+
+
+
+
diff --git a/src/CommunityToolkit.Maui.Markup.SourceGenerators/AnalyzerReleases.Shipped.md b/src/CommunityToolkit.Maui.Markup.SourceGenerators/AnalyzerReleases.Shipped.md
deleted file mode 100644
index a1bfa5fd..00000000
--- a/src/CommunityToolkit.Maui.Markup.SourceGenerators/AnalyzerReleases.Shipped.md
+++ /dev/null
@@ -1,10 +0,0 @@
-## Release 1.1.0
-
-### New Rules
-
-Rule ID | Severity | Notes
---------|----------|-------
-MMCT001 | Warning | Global namespace is not support for this Source Generator
-MMCT002 | Error | Unable to find Microsoft.Maui.ITextAlignment
-MMCT003 | Info | Unable to get information from the Class
-MMCT004 | Info | Class marked with invalid modifier access
\ No newline at end of file
diff --git a/src/CommunityToolkit.Maui.Markup.SourceGenerators/AnalyzerReleases.Unshipped.md b/src/CommunityToolkit.Maui.Markup.SourceGenerators/AnalyzerReleases.Unshipped.md
deleted file mode 100644
index fed559a3..00000000
--- a/src/CommunityToolkit.Maui.Markup.SourceGenerators/AnalyzerReleases.Unshipped.md
+++ /dev/null
@@ -1,6 +0,0 @@
-## Release 1.1.0
-
-### New Rules
-
-Rule ID | Severity | Notes
---------|----------|-------
\ No newline at end of file
diff --git a/src/CommunityToolkit.Maui.Markup.SourceGenerators/Diagnostics/TextAlignmentDiagnostics.cs b/src/CommunityToolkit.Maui.Markup.SourceGenerators/Diagnostics/TextAlignmentDiagnostics.cs
deleted file mode 100644
index 0cd3cab9..00000000
--- a/src/CommunityToolkit.Maui.Markup.SourceGenerators/Diagnostics/TextAlignmentDiagnostics.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using Microsoft.CodeAnalysis;
-
-namespace CommunityToolkit.Maui.Markup.SourceGenerators;
-
-class TextAlignmentDiagnostics
-{
- const string category = "TextAlignmentExtensions";
-
- public static readonly DiagnosticDescriptor GlobalNamespace = new(
- "MMCT001",
- "Global namespace is not support for this Source Generator",
- "Please put '{0}' inside a valid namespace",
- category,
- DiagnosticSeverity.Warning,
- true);
-
- public static readonly DiagnosticDescriptor MauiReferenceIsMissing = new(
- "MMCT002",
- "Unable to find Microsoft.Maui.ITextAlignment",
- "Please make sure that your project is referencing Microsoft.Maui",
- category,
- DiagnosticSeverity.Error,
- true);
-
- public static readonly DiagnosticDescriptor InvalidClassDeclarationSyntax = new(
- "MMCT003",
- "Unable to get information from the Class",
- "Please make sure that the code inside '{0}' has not error, the TextColorTo methods will not be generated for this file",
- category,
- DiagnosticSeverity.Info,
- true);
-
- public static readonly DiagnosticDescriptor InvalidModifierAccess = new(
- "MMCT004",
- "Class marked with invalid modifier access",
- "TextColorTo only supports public and internal classes inheriting from ITextStyle, please fix '{0}'",
- category,
- DiagnosticSeverity.Info,
- true);
-
-}
\ No newline at end of file