Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .NET 9.0 #2215

Merged
merged 191 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 177 commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
c4169ed
Point to the .NET 9.0 release candidate
bijington Sep 18, 2024
e8e4c21
Tweak versions in the pipeline
bijington Sep 18, 2024
0223b47
allow prerelease builds
bijington Sep 18, 2024
24f1026
Find overlapping versions for AnxroidX libraries
bijington Sep 18, 2024
616ca9c
Fix null reference type issue
bijington Sep 18, 2024
590d8df
Shift to TypedBindings
bijington Sep 18, 2024
39df165
Keep disabling IL2092 for NET9_0
bijington Sep 18, 2024
39de8a0
Mark types as Dynamically accessed
bijington Sep 18, 2024
51dc62d
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Sep 19, 2024
9514390
Patch up Analyzer unit tests
bijington Sep 19, 2024
5677465
Fix the AvatarView unit tests
bijington Sep 19, 2024
0e90207
Suppress warning disable IL2026
bijington Sep 19, 2024
0674abf
Update comments in Camera project
bijington Sep 19, 2024
446ed60
Update src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharp…
bijington Sep 19, 2024
7e02482
Update src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharp…
bijington Sep 19, 2024
8f1ab91
Include preview builds for benchmarks
bijington Sep 19, 2024
18e5892
Merge branch 'feature/sl-dotnet-nine' of github.com:CommunityToolkit/…
bijington Sep 19, 2024
d430867
Remove Obsolete code
brminnick Sep 19, 2024
bb378bd
Remove pragma now that unsafe code has been removed
brminnick Sep 19, 2024
92213aa
Update ICommunityToolkitBehavior.shared.cs
brminnick Sep 19, 2024
dce03ba
Update Expander.shared.cs
brminnick Sep 19, 2024
bc7d67b
`MainPage` -> `Windows[0].Page`
brminnick Sep 19, 2024
6d80b85
use `override CreateWindow(IActivationState)` to initialize AppShell
brminnick Sep 23, 2024
0756b7a
Increase to Xcode 16
brminnick Sep 26, 2024
a9e6143
Make use of a TypedBinding instance to workaround current limitations
bijington Oct 2, 2024
7a42193
Merge branch 'main' into feature/sl-dotnet-nine
bijington Oct 2, 2024
9303b48
Remove ifdef
brminnick Oct 4, 2024
de624c6
Enable `NuGetAudit`
brminnick Oct 14, 2024
39d1408
Add WarningsAsErrors for `NuGetAudit`
brminnick Oct 14, 2024
8dec573
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Oct 15, 2024
83ba19a
Remove Obsolete PopupService method
brminnick Oct 15, 2024
8bdbc6f
Update for .NET 9 RC 2
brminnick Oct 15, 2024
4dbaf75
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Oct 15, 2024
189c16d
Update Android dependencies
brminnick Oct 15, 2024
5daf804
Remove unrequired NuGet Packages
brminnick Oct 15, 2024
b66ae83
Fix Vulnerabilities
brminnick Oct 15, 2024
9be58a7
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Oct 15, 2024
c0b7a6e
Resolve NuGet Dependency Conflicts
brminnick Oct 15, 2024
552c31c
Remove reflection
brminnick Oct 16, 2024
e1e3f5e
Fix `Camera` Android Dependencies
brminnick Oct 16, 2024
9a0b537
Refactor return statement
brminnick Oct 16, 2024
2f20c4a
Fix nullability error
brminnick Oct 16, 2024
6f2817c
Merge branch 'feature/sl-dotnet-nine' of https://github.com/Community…
brminnick Oct 16, 2024
1996cd5
Update AppShell.xaml
brminnick Oct 16, 2024
e5bc87b
Increase to RC2
brminnick Oct 16, 2024
b6841ce
Use `static`
brminnick Oct 16, 2024
ecc7d50
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Oct 16, 2024
e119e53
Use `private protected` constructor
brminnick Oct 16, 2024
f2a36fd
Stop automatically assigning Behavior BindingContext
brminnick Oct 16, 2024
a9d4d38
Merge branch 'feature/sl-dotnet-nine' of https://github.com/Community…
brminnick Oct 16, 2024
7c004e4
Remove References to `TrySetBindingContextToAttachedViewBindingContext`
brminnick Oct 16, 2024
a5f0e86
Update BaseBehaviorTest.cs
brminnick Oct 16, 2024
c2bbb86
Refactor GravatarImageSource
brminnick Oct 16, 2024
0bae474
Update CommunityToolkit.Maui.Sample.csproj
brminnick Oct 16, 2024
cf4e34c
Merge branch 'feature/sl-dotnet-nine' of https://github.com/Community…
brminnick Oct 16, 2024
3210586
Update for CsWinRT1028, CsWinRT1030, XC0045, and XC0103
brminnick Oct 16, 2024
0594549
Use `partial` for source generators
brminnick Oct 16, 2024
298e12b
Use Syntax Highlighting for code blocks
brminnick Oct 16, 2024
eddf68f
Removed duplicate string
brminnick Oct 16, 2024
df98a42
Remove References to Application.Current.MainPage
brminnick Oct 16, 2024
0251dcf
Fix typos
brminnick Oct 16, 2024
47fcdd8
Update samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sam…
brminnick Oct 16, 2024
f6cddbd
Update samples/CommunityToolkit.Maui.Sample/Pages/Views/Expander/Expa…
brminnick Oct 16, 2024
7d0d182
Fix Find + Replace typo
brminnick Oct 16, 2024
cdfba47
Remove unused namespace
brminnick Oct 16, 2024
05dd7ec
Remove `MainPage`
brminnick Oct 16, 2024
c917bd0
Add BindingContext to Behaviors in Sample App
brminnick Oct 17, 2024
ce8deb8
Increase Android SupportedOSPlatformVersion to 26
brminnick Oct 17, 2024
1f9c06d
Fix XAML Warnings
brminnick Oct 17, 2024
0272350
Use `macos-15-arm64`
brminnick Oct 27, 2024
32ecaab
Update azure-pipelines.yml
brminnick Oct 27, 2024
26d43e1
Use Xcode version `16`
brminnick Oct 27, 2024
72857ba
Revert back to macOS14
brminnick Oct 27, 2024
eb6ac01
Merge branch 'main' into feature/sl-dotnet-nine
jfversluis Oct 31, 2024
810b69c
Use BindingMode.OneWay
brminnick Oct 31, 2024
7b52c4a
Fix PopupService Tests
brminnick Oct 31, 2024
8bfc313
Fix AvatarView Tests
brminnick Oct 31, 2024
813c143
Fix AvatarView Tests
brminnick Oct 31, 2024
43ffcdb
Fix ParentWindowTests
brminnick Oct 31, 2024
3c1acca
Resolve AppTheme Tests
brminnick Oct 31, 2024
d2b9d8b
Add `[RequiresUnreferencedCode]` attribute to `ValidationBehavior`
brminnick Nov 1, 2024
bb36172
Update BehaviorsGalleryPage.cs
brminnick Nov 1, 2024
c762fb2
`dotnet format`
brminnick Nov 1, 2024
6aedd2e
Remove `Obsolete` attributes from `dotnet format`
brminnick Nov 1, 2024
2cd0c7a
Update `Microsoft.CodeAnalysis.CSharp.Workspaces`
brminnick Nov 4, 2024
ac437a6
Update Sample App NuGet Packages to .NET 9
brminnick Nov 4, 2024
e3e6211
Remove Duplicate NuGet Packages
brminnick Nov 4, 2024
b916b28
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Nov 5, 2024
c19b3d6
Fix https://github.com/CommunityToolkit/Maui/issues/2109
brminnick Nov 5, 2024
b4869b7
Fix CameraView warnings
brminnick Nov 5, 2024
2dd57b5
Refactor ShowKeyboardAsync
brminnick Nov 5, 2024
27e218e
Refactor Code + Performance Improvements
brminnick Nov 5, 2024
928b19f
`dotnet format`
brminnick Nov 5, 2024
4284967
Remove unused using directives
brminnick Nov 5, 2024
3ef7ef9
Add `[EditorBrowsable(EditorBrowsableState.Never)]`
brminnick Nov 5, 2024
a983d56
Use `BindingBase.Create`
brminnick Nov 6, 2024
8d54b5e
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Nov 6, 2024
8e00d1c
Update Options.cs
brminnick Nov 6, 2024
800dd72
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Nov 7, 2024
e066f17
Renaming and changing ValidationFlags.ValidateOnFocus and ValidateOnU…
CliffAgius Nov 7, 2024
7713aab
Fix compiled bindings For MediaElement
ne0rrmatrix Nov 8, 2024
01575bb
Fix Windows crash on exiting Page or Application when using Media Ele…
ne0rrmatrix Nov 8, 2024
fdd8168
Remove trace log added by accident
ne0rrmatrix Nov 8, 2024
5924b2a
Fix `MultiValidationBehavior` compiled bindings
ne0rrmatrix Nov 8, 2024
9d63b86
Fix `MultiConverterPage` Compiled Bindings
ne0rrmatrix Nov 8, 2024
36b6b72
Remove `x:DataType` from several lines
ne0rrmatrix Nov 8, 2024
95b2ff1
Add using to enable support for logging
ne0rrmatrix Nov 8, 2024
23fe7c9
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Nov 8, 2024
2248d70
Fix `ColorsConverterPage` compiled bindings. This casts the `x:DataTy…
ne0rrmatrix Nov 8, 2024
da066cd
Set `x:DataType` in `AppShell.xaml` to support compiled bindings
ne0rrmatrix Nov 9, 2024
752e8a1
Update `LazyViewPage` to add support for compiled bindings
ne0rrmatrix Nov 9, 2024
0fdb280
Update `EmailValidationBehaviorPage` to support Compiled bindings
ne0rrmatrix Nov 9, 2024
e538eed
Update params collections
brminnick Nov 10, 2024
0eb39a8
Update Xcode logic
brminnick Nov 10, 2024
7d609a1
Update azure-pipelines.yml
brminnick Nov 10, 2024
8cb078c
Update azure-pipelines.yml
brminnick Nov 10, 2024
6e5c417
Update azure-pipelines.yml
brminnick Nov 10, 2024
2238534
Increase to macOS-15
brminnick Nov 11, 2024
67a7caf
Add SourceLink
brminnick Nov 11, 2024
a3a83aa
Update CommunityToolkit.Maui.Sample.csproj
brminnick Nov 11, 2024
0260cef
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Nov 11, 2024
7065b2d
Update PopupServiceTests.cs
brminnick Nov 11, 2024
5bda93d
Resolve Failing DrawingView Unit Tests
brminnick Nov 11, 2024
b0c9ee0
Use Partial Properties
brminnick Nov 12, 2024
f4fb321
Support `CarouselViewHandler2` + `CollectionViewHandler2` for MediaEl…
brminnick Nov 12, 2024
700a82b
Update comment text
brminnick Nov 12, 2024
503cf4e
Update for .NET 9 GA
brminnick Nov 12, 2024
8bd0184
Update samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sam…
brminnick Nov 12, 2024
cc5a669
Add `x:DataType` for Compiled Bindings
brminnick Nov 12, 2024
acf646c
Update NuGet Packages
brminnick Nov 12, 2024
90b6baa
Remove reference
brminnick Nov 12, 2024
5762236
Update CommunityToolkit.Maui.Sample.csproj
brminnick Nov 12, 2024
1d524c3
Sort alphabetically
brminnick Nov 12, 2024
f30f541
Set Behavior BindingContext
brminnick Nov 12, 2024
660c27d
Merge branch 'feature/sl-dotnet-nine' of https://github.com/Community…
brminnick Nov 12, 2024
bd8d383
Enable IServiceProvider
brminnick Nov 12, 2024
89eb97b
Fix compareconverter demo
brminnick Nov 12, 2024
6c5816e
Fix Crash
brminnick Nov 12, 2024
bdc00fc
Fix Behavior Binding
brminnick Nov 12, 2024
28a9e54
Add Behavior BindingContext
brminnick Nov 12, 2024
e1fdb07
Add behavior BindingContext
brminnick Nov 12, 2024
6363975
Fix DrawingView sample
brminnick Nov 13, 2024
ded531f
Use Enum.IsDefined<T>
brminnick Nov 13, 2024
e2fc7e7
Fix Expander Binding
brminnick Nov 13, 2024
67fb9a4
Update Maps for async/await + Trimming
brminnick Nov 13, 2024
9fce650
Catch Element Not Found Exception
brminnick Nov 13, 2024
d53c847
Modify CompareConverter signature to match IsInRangeConverter
bijington Nov 13, 2024
f043544
Update Directory.Build.props
brminnick Nov 14, 2024
0e991c2
run `dotnet workload update` following `dotnet workload install maui`
brminnick Nov 14, 2024
c240aea
Update azure-pipelines.yml
brminnick Nov 15, 2024
7d2f431
Revert "Update azure-pipelines.yml"
brminnick Nov 15, 2024
c84e785
Use Primary Constructor, Update Formatting
brminnick Nov 15, 2024
bfb9629
Disable warnings on compiler-generated code
brminnick Nov 15, 2024
b96594e
Prevent Usage with Microsoft.Maui.Controls v10.0.0+
brminnick Nov 17, 2024
e8a1d5f
Organize Build props
brminnick Nov 17, 2024
0029b45
Add `[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]`
brminnick Nov 17, 2024
cb41208
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Nov 17, 2024
3f31948
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Nov 20, 2024
f802f5f
Update NuGet Packages
brminnick Nov 22, 2024
9841ee0
Add `//lang=csharp` to raw string literals
brminnick Nov 26, 2024
69eee10
Implement `TheoryData`
brminnick Nov 26, 2024
d723a14
Use `field` keyword
brminnick Nov 26, 2024
074baa2
Add Xunit Usage Analyzers
brminnick Nov 26, 2024
662c5ed
Add Xunit Assertion Analyzers
brminnick Nov 26, 2024
71f0a02
Add Xunit Extensibility Analyzers
brminnick Nov 26, 2024
a79e8cf
Resolve Trimming Errors
brminnick Nov 26, 2024
ccc8392
Bump Xcode to 16.1
brminnick Nov 27, 2024
8171c1e
Update NuGet Packages
brminnick Dec 4, 2024
ab225ae
Add removed rules
brminnick Dec 4, 2024
7b3181b
Bump Windows-specific NuGet Packages
brminnick Dec 4, 2024
8134fa7
Add `FluentAssertions.Analyzers`
brminnick Dec 4, 2024
5780553
Bump TOOLKIT_NET_VERSION to `9.0.101`
brminnick Dec 7, 2024
315b32c
Merge branch 'main' into feature/sl-dotnet-nine
brminnick Dec 8, 2024
c4e129b
Update NuGet Packages
brminnick Dec 12, 2024
8355bae
Fix typo
brminnick Dec 12, 2024
1401cc9
Update Directory.Build.props
brminnick Dec 12, 2024
62be665
Opt-out of using managed-static for MacCatalyst
bijington Dec 17, 2024
087cbec
Update `xunit.runner.visualstudio`
brminnick Dec 17, 2024
ff923c1
Remove duplicate paranthesis
brminnick Dec 17, 2024
05846be
Remove AutoFixture
brminnick Dec 17, 2024
906d00b
Update to `xunit.v3`
brminnick Dec 17, 2024
a88d5b0
Increase minimum required .NET SDK Version
brminnick Dec 17, 2024
5acc97e
Fix Snackbar in Modal Page on Android
brminnick Dec 17, 2024
8208f17
Fix Snackbar alignment on iOS
brminnick Dec 17, 2024
a6a783e
Fix bindings
brminnick Dec 17, 2024
b8d29a9
Improve Android Build Times
brminnick Dec 17, 2024
c3b79e1
Fix typo
brminnick Dec 17, 2024
b444803
Fix crash on iOS due to `null`
brminnick Dec 17, 2024
7a71dae
Use Partial Properties
brminnick Dec 18, 2024
2a66903
Fix Android NavigationBar
brminnick Dec 18, 2024
6d726d0
`dotnet format`
brminnick Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,10 @@ dotnet_diagnostic.CA2208.severity = error
dotnet_diagnostic.CA1834.severity = error

# IDE0220: Add explicit cast
dotnet_diagnostic.IDE0220.severity = error
dotnet_diagnostic.IDE0220.severity = error

# Warning CA2264 : Calling 'ArgumentNullException.ThrowIfNull' and passing a non-nullable value is a no-op
dotnet_diagnostic.CA2264.severity = error

# IDE0220: The field [ObservableProperty] can be converted to a partial property
dotnet_diagnostic.MVMTK0042.severity = error
194 changes: 158 additions & 36 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project>
<PropertyGroup>
<NetVersion>net8.0</NetVersion>
<MauiPackageVersion>8.0.71</MauiPackageVersion>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<NoWarn>NETSDK1023</NoWarn>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<NetVersion>net9.0</NetVersion>
<LangVersion>preview</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>

<!-- Prevent NuGet Package Vulnerabilities -->
<NuGetAudit>enable</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>

<!-- MAUI Specific -->
<MauiPackageVersion>9.0.21</MauiPackageVersion>
<NextMauiPackageVersion>10.0.0</NextMauiPackageVersion>
<MauiStrictXamlCompilation>true</MauiStrictXamlCompilation>
<SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>

<!-- https://learn.microsoft.com/dotnet/core/deploying/native-aot/?tabs=net8plus%2Cwindows -->
<StripSymbols>false</StripSymbols>
Expand Down Expand Up @@ -39,40 +48,153 @@
CS1712: Type parameter has no matching typeparam tag in the XML comment
CS1723: XML comment has cref attribute that refers to a type parameter
CS1734: XML comment has a paramref tag, but there is no parameter by that name

xUnit1012: Null should not be used for type parameter
xUnit2021: Assert.ThrowsAsync is async. The resulting task should be awaited

IL2***: Trim Warnings

IL3***: AOT Warnings

MVMTK0042: The field [ObservableProperty] can be converted to a partial property
CsWinRT1028: Class implements WinRT interfaces but isn't marked partial
CsWinRT1030: Class implements WinRT interfaces that require unsafe code
NU1900 Error communicating with package source, while getting vulnerability information.
NU1901 Package with low severity detected
NU1902 Package with moderate severity detected
NU1903 Package with high severity detected
NU1904 Package with critical severity detected
NU1905 An audit source does not provide a vulnerability database
xUnit1000: Test classes must be public
xUnit1001: Fact methods cannot have parameters
xUnit1002: Test methods cannot have multiple Fact or Theory attributes
xUnit1003: Theory methods must have test data
xUnit1004: Test methods should not be skipped
xUnit1005: Fact methods should not have test data
xUnit1006: Theory methods should have parameters
xUnit1007: ClassData must point at a valid class
xUnit1008: Test data attribute should only be used on a Theory
xUnit1009: InlineData values must match the number of method parameters
xUnit1010: The value is not convertible to the method parameter type
xUnit1011: There is no matching method parameter
xUnit1012: Null should not be used for value type parameters
xUnit1013: Public method should be marked as test
xUnit1014: MemberData should use nameof operator for member name
xUnit1015: MemberData must reference an existing member
xUnit1016: MemberData must reference a public member
xUnit1017: MemberData must reference a static member
xUnit1018: MemberData must reference a valid member kind
xUnit1019: MemberData must reference a member providing a valid data type
xUnit1020: MemberData must reference a property with a getter
xUnit1021: MemberData should not have parameters if the referenced member is not a method
xUnit1022: Theory methods cannot have a parameter array
xUnit1023: Theory methods cannot have default parameter values
xUnit1024: Test methods cannot have overloads
xUnit1025: InlineData should be unique within the Theory it belongs to
xUnit1026: Theory methods should use all of their parameters
xUnit1027: Collection definition classes must be public
xUnit1028: Test method must have valid return type
xUnit1029: Local functions cannot be test functions
xUnit1030: Do not call ConfigureAwait in test method
xUnit1031: Do not use blocking task operations in test method
xUnit1032: Test classes cannot be nested within a generic class
xUnit1033: Test classes decorated with 'Xunit.IClassFixture' or 'Xunit.ICollectionFixture' should add a constructor argument of type TFixture
xUnit1034: Null should only be used for nullable parameters
xUnit1035: The value is not convertible to the method parameter type
xUnit1036: There is no matching method parameter
xUnit1037: There are fewer theory data type arguments than required by the parameters of the test method
xUnit1038: There are more theory data type arguments than allowed by the parameters of the test method
xUnit1039: The type argument to theory data is not compatible with the type of the corresponding test method parameter
xUnit1040: The type argument to theory data is nullable, while the type of the corresponding test method parameter is not
xUnit1041: Fixture arguments to test classes must have fixture sources
xUnit1042: The member referenced by the MemberData attribute returns untyped data rows
xUnit1043: Constructors on classes derived from FactAttribute must be public when used on test methods
xUnit1048: Avoid using 'async void' for test methods as it is deprecated in xUnit.net v3
xUnit1049: Do not use 'async void' for test methods as it is no longer supported
xUnit1050: The class referenced by the ClassData attribute returns untyped data rows
xUnit1051: Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken
xUnit2000: Constants and literals should be the expected argument
xUnit2001: Do not use invalid equality check
xUnit2002: Do not use null check on value type
xUnit2003: Do not use equality check to test for null value
xUnit2004: Do not use equality check to test for boolean conditions
xUnit2005: Do not use identity check on value type
xUnit2006: Do not use invalid string equality check
xUnit2007: Do not use typeof expression to check the type
xUnit2008: Do not use boolean check to match on regular expressions
xUnit2009: Do not use boolean check to check for substrings
xUnit2010: Do not use boolean check to check for string equality
xUnit2011: Do not use empty collection check
xUnit2012: Do not use Enumerable.Any() to check if a value exists in a collection
xUnit2013: Do not use equality check to check for collection size.
xUnit2014: Do not use throws check to check for asynchronously thrown exception
xUnit2015: Do not use typeof expression to check the exception type
xUnit2016: Keep precision in the allowed range when asserting equality of doubles or decimals.
xUnit2017: Do not use Contains() to check if a value exists in a collection
xUnit2018: Do not compare an object's exact type to an abstract class or interface
xUnit2019: Do not use obsolete throws check to check for asynchronously thrown exception
xUnit2020: Do not use always-failing boolean assertion to fail a test
xUnit2021: Async assertions should be awaited
xUnit2022: Boolean assertions should not be negated
xUnit2023: Do not use collection methods for single-item collections
xUnit2024: Do not use boolean asserts for simple equality tests
xUnit2025: The boolean assertion statement can be simplified
xUnit2026: Comparison of sets must be done with IEqualityComparer
xUnit2027: Comparison of sets to linear containers have undefined results
xUnit2028: Do not use Assert.Empty or Assert.NotEmpty with problematic types
xUnit2029: Do not use Assert.Empty to check if a value does not exist in a collection
xUnit2030: Do not use Assert.NotEmpty to check if a value exists in a collection
xUnit2031: Do not use Where clause with Assert.Single
xUnit2032: Type assertions based on 'assignable from' are confusingly named
xUnit3000: Classes which cross AppDomain boundaries must derive directly or indirectly from LongLivedMarshalByRefObject
xUnit3001: Classes that are marked as serializable (or created by the test framework at runtime) must have a public parameterless constructor
xUnit3002: Classes which are JSON serializable should not be tested for their concrete type
XC0045: Binding: Property not found
XC0103: Consider attributing the markup extension with [RequireService] or [AcceptEmptyServiceProvider] if it doesn't require any
IL2***: Trim Warnings
IL3***: AOT Warnings
RS2007: Analyzer release file 'AnalyzerReleases.Shipped.md' has a missing or invalid release header-->
<WarningsAsErrors>nullable,
CS0419,CS1570,CS1571,CS1572,CS1573,CS1574,CS1580,CS1581,CS1584,CS1587,CS1589,CS1590,CS1591,CS1592,CS1598,CS1658,CS1710,CS1711,CS1712,CS1723,CS1734,
xUnit1012,xUnit2021,
IL2001,IL2002,IL2003,IL2004,IL2005,IL2006,IL2007,IL2008,IL2009,
IL2010,IL2011,IL2012,IL2013,IL2014,IL2015,IL2016,IL2017,IL2018,IL2019,
IL2020,IL2021,IL2022,IL2023,IL2024,IL2025,IL2026,IL2027,IL2028,IL2029,
IL2030,IL2031,IL2032,IL2033,IL2034,IL2035,IL2036,IL2037,IL2038,IL2039,
IL2040,IL2041,IL2042,IL2043,IL2044,IL2045,IL2046,IL2047,IL2048,IL2049,
IL2050,IL2051,IL2052,IL2053,IL2054,IL2055,IL2056,IL2057,IL2058,IL2059,
IL2060,IL2061,IL2062,IL2063,IL2064,IL2065,IL2066,IL2067,IL2068,IL2069,
IL2070,IL2071,IL2072,IL2073,IL2074,IL2075,IL2076,IL2077,IL2078,IL2079,
IL2080,IL2081,IL2082,IL2083,IL2084,IL2085,IL2086,IL2087,IL2088,IL2089,
IL2090,IL2091,IL2092,IL2093,IL2094,IL2095,IL2096,IL2097,IL2098,IL2099,
IL2100,IL2101,IL2102,IL2103,IL2104,IL2105,IL2106,IL2107,IL2108,IL2109,
IL2110,IL2111,IL2112,IL2113,IL2114,IL2115,IL2116,IL2117,IL2118,IL2119,
IL2120,IL2121,IL2122,
IL3050,IL3051,IL3052,IL3053,IL3054,IL3055,IL3056,
RS2007
</WarningsAsErrors>
<WarningsAsErrors>
nullable,
CS0419,CS1570,CS1571,CS1572,CS1573,CS1574,CS1580,CS1581,CS1584,CS1587,CS1589,CS1590,CS1591,CS1592,CS1598,CS1658,CS1710,CS1711,CS1712,CS1723,CS1734,
CsWinRT1028,CsWinRT1030,
MVMTK0042,
NU1900,NU1901,NU1902,NU1903,NU1904,NU1905,
xUnit1000,xUnit1001,xUnit1002,xUnit1003,xUnit1004,xUnit1005,xUnit1006,xUnit1007,xUnit1008,xUnit1009,xUnit1010,xUnit1011,xUnit1012,xUnit1013,xUnit1014,xUnit1015,xUnit1016,xUnit1017,xUnit1018,xUnit1019,xUnit1020,xUnit1021,xUnit1022,xUnit1023,xUnit1024,xUnit1025,xUnit1026,xUnit1027,xUnit1028,xUnit1029,xUnit1030,xUnit1031,xUnit1032,xUnit1033,xUnit1034,xUnit1035,xUnit1036,xUnit1037,xUnit1038,xUnit1039,xUnit1040,xUnit1041,xUnit1042,xUnit1043,xUnit1048,xUnit1049,xUnit1050,xUnit1051,
xUnit2000,xUnit2001,xUnit2002,xUnit2003,xUnit2004,xUnit2005,xUnit2006,xUnit2007,xUnit2008,xUnit2009,xUnit2010,xUnit2011,xUnit2012,xUnit2013,xUnit2014,xUnit2015,xUnit2016,xUnit2017,xUnit2018,xUnit2019,xUnit2020,xUnit2021,xUnit2022,xUnit2023,xUnit2024,xUnit2025,xUnit2026,xUnit2027,xUnit2028,xUnit2029,xUnit2030,xUnit2031,xUnit2032,
xUnit3000,xUnit3001,xUnit3002,
XC0045,XC0103,
IL2001,IL2002,IL2003,IL2004,IL2005,IL2006,IL2007,IL2008,IL2009,
IL2010,IL2011,IL2012,IL2013,IL2014,IL2015,IL2016,IL2017,IL2018,IL2019,
IL2020,IL2021,IL2022,IL2023,IL2024,IL2025,IL2026,IL2027,IL2028,IL2029,
IL2030,IL2031,IL2032,IL2033,IL2034,IL2035,IL2036,IL2037,IL2038,IL2039,
IL2040,IL2041,IL2042,IL2043,IL2044,IL2045,IL2046,IL2047,IL2048,IL2049,
IL2050,IL2051,IL2052,IL2053,IL2054,IL2055,IL2056,IL2057,IL2058,IL2059,
IL2060,IL2061,IL2062,IL2063,IL2064,IL2065,IL2066,IL2067,IL2068,IL2069,
IL2070,IL2071,IL2072,IL2073,IL2074,IL2075,IL2076,IL2077,IL2078,IL2079,
IL2080,IL2081,IL2082,IL2083,IL2084,IL2085,IL2086,IL2087,IL2088,IL2089,
IL2090,IL2091,IL2092,IL2093,IL2094,IL2095,IL2096,IL2097,IL2098,IL2099,
IL2100,IL2101,IL2102,IL2103,IL2104,IL2105,IL2106,IL2107,IL2108,IL2109,
IL2110,IL2111,IL2112,IL2113,IL2114,IL2115,IL2116,IL2117,IL2118,IL2119,
IL2120,IL2121,IL2122,
IL3050,IL3051,IL3052,IL3053,IL3054,IL3055,IL3056,
RS2007
</WarningsAsErrors>
</PropertyGroup>

<!-- Required for NuGet Source Link -->
<PropertyGroup Condition="'$(TF_BUILD)' == 'true' OR '$(GITHUB_ACTIONS)' == 'true'">
<!-- Ensure deterministic build when using Azure Pipelines or GitHub Actions-->
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>

<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Embed symbols containing Source Link in the main file (exe/dll) -->
<DebugType>embedded</DebugType>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="CommunityToolkit.Maui.UnitTests" />
<InternalsVisibleTo Include="CommunityToolkit.Maui.UnitTests"/>
<InternalsVisibleTo Include="CommunityToolkit.Maui.Analyzers.UnitTests"/>
</ItemGroup>
<PropertyGroup Condition="'$(TF_BUILD)' == 'true' and $([MSBuild]::IsOSPlatform('windows')) == 'true'">

<PropertyGroup Condition="('$(TF_BUILD)' == 'true' OR '$(GITHUB_ACTIONS)' == 'true') and $([MSBuild]::IsOSPlatform('windows')) == 'true'">
<IncludeTizenTargetFrameworks>true</IncludeTizenTargetFrameworks>
</PropertyGroup>
</Project>
Loading