17 Commits

Author SHA1 Message Date
Julien Lebosquain 0fb64d65cc Enable warnings as errors (#20504) 2026-01-21 08:16:46 +00:00
Julien Lebosquain 40a3af4aa5 Remove netstandard2.0 from almost all projects (#20111)
* Remove netstandard2.0 from almost all projects

* Fix duplicated target frameworks in unit tests

* Fix DesignerSupport tests

* Fix Designer.HostApp packaging

* Build ControlCatalog.Desktop on CI

* Fix another bad auto merge

* Fix LeakTests duplicated target frameworks

* Don't hardcode target framework in DesignerSupportTests
2025-11-21 09:59:39 +00:00
Julien Lebosquain fb0f3848f9 Update to .NET 10 (#19869)
* Update to .NET 10 and C# 14

* Remove reflection usage in AvaloniaAccessHelper

* Fix Android nullability errors

* Fix WindowMetrics.WindowInsets removed from AndroidX

* Update pipelines

* Fix ValidateApiDiff for missing frameworks

* Fix Windows integration tests

* Update Xamarin.AndroidX.Window to 1.5.0

* Fix MacCatalyst supported version

* Remove unused Xunit.Extensions.Ordering

* Try to fix macOS integration tests

* Update pipeline runner to macOS 15

* Disable LeakTests

* Fix .NET Framework unit tests

* Fix BuildTests

* Bump minimum Android API level to 24

* Update to .NET 10 RTM

* Update XamlX

* update android insets and activity code to handle deprecated behaviors in api 36

---------

Co-authored-by: Emmanuel Hansen <emmausssss@gmail.com>
2025-11-19 15:22:43 +01:00
Julien Lebosquain f31d7a567a Use hard links for build (#19209) 2025-07-07 23:29:42 +00:00
Max Katz 8a036140db Add AvsEnableDevWarningsNotAsErrors prop (#15106)
* Add AvsEnableDevWarningsNotAsErrors prop

* Begone StyleCop
2024-04-19 17:29:47 -07:00
Julien Lebosquain 563bb12ff1 Bump LangVersion to C# 12 (#15399) 2024-04-16 20:05:20 +00:00
Max Katz 326ef7c9fd Add .NET 8 target (Avalonia 11.1) (#14535)
* Add .NET 8 target to packable projects

* Update test projects

* Update sample projects to target .NET 8

* Update main Avalonia package to target .NET 8 as well

* Remove MSBuildEnableWorkloadResolver hack and some minor change

* Use net8.0 in nuke build as well

* Pin 8.0.0 SDK

* Adjust API validation

* Pin a valid version

* Remove net461 target from Avalonia package

* Remove unused net6.0 target from Avalonia.Designer.HostApp

* Adjust API diff

* Update ControlCatalog.Android.csproj

* Remove MSBuildEnableWorkloadResolver

* Fix Browser issues on .NET 8

* Fix .NET 8 error

* Fix merge conflicts

* Replace explicit TFMs in .csproj files with a centralized registry

* Fix merge conflict

* Fix AvsLegacyWindowsTargetFrameworks and add hacks for the tests

* Update XCode project CommandLineArgument

---------

Co-authored-by: Nikita Tsukanov <keks9n@gmail.com>
2024-03-05 13:37:26 -08:00
Max Katz c391117795 Remove "netcoreapp2.0" target from the Avalonia. Make previewer use netstandard2.0 (#14268)
* Remove "netcoreapp2.0" target from the Avalonia. Make previewer use netstandard2.0

* Update ApiDiff redirects
2024-01-19 07:07:57 +00:00
Simon 876fa08812 move to a consistent langversion of 11 2023-01-04 10:18:35 +11:00
Giuseppe Lippolis cc91c3002f fix: AvaloniaPublicKey.props file name typo 2022-05-27 09:12:56 +02:00
Giuseppe Lippolis a25ce2fb08 feat: move InternalsVisibleTo in csproj 2022-05-26 12:43:52 +02:00
Steven Kirk fb0da85ad3 Merge core libraries. (#5831)
* Merge core libraries.

Everything below `Avalonia.Controls` into `Avalonia.Base`.

* Move new files to correct place.

* Removed unused dirs/projects,

* Removed outdated references from theme assemblies.

* Merge unit tests to match new assembly layout.

* Fixup test namespaces.

* Make directory match namespace.

* Move files to match namespace.

* Move files to match namespace.

* Fix up incorrect namespace.

`Avalonia.Visuals.Media.Imaging` -> `Avalonia.Media.Imaging`.

* Fix resource URL.

* Removed outdated dependencies.

* Added missing project reference.

* Update test namespaces.

* Fix merge error.

* Fix merge errors.

* Fix bad merge in WindowsInteropTest.csproj.

* Fix up merge errors in csprojs.

* Remove merged tests from nuke.

* Fix up namespace.

* Fix compile error.

* Fix failing tests.

Now that more unit tests are present in Avalonia.Base.UnitTests, general `AvaloniaObject` properties are getting registered. Ignore those.

Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
2022-04-14 14:39:44 +02:00
Max Katz dcc7d02e18 Move MSBuildEnableWorkloadResolver to directory build props 2022-02-11 23:04:04 -05:00
Nikita Tsukanov eeba3f0e2e AddSyntheticProjectReferencesForSolutionDependencies = false 2020-11-02 20:41:59 +03:00
Nikita Tsukanov d355007c57 Extracted runtime XAML loader to a separate package 2020-07-17 16:33:31 +03:00
Nikita Tsukanov d532223a5a Switched to post-processing nuget packages from AggregatePackage SDK 2018-12-06 10:52:40 +03:00
Jeremy Koritzinsky acb3d46ca0 Enable generating NuGet packages via the MSBuild Pack target. 2018-10-27 17:48:46 -07:00