avalonia docs

Changing the Target Framework

By default, our project templates target the following frameworks:

You can change the frameworks that your project targets by opening the .csproj file and editing the <TargetFramework> or <TargetFrameworks> element.

When a single target framework is required, use the TargetFramework element. If you want to target multiple target frameworks from the same project you should use TargetFrameworks and separate the frameworks with a ;.

Some examples:


For more information on target frameworks, see the .NET documentation.