File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/Avalonia.WebView2.Sample Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1111 <TargetFrameworks >net9.0-windows;net9.0</TargetFrameworks >
1212 </PropertyGroup >
1313 </When >
14+ <!-- 👇 在 macOS 上开发 -->
15+ <When Condition =" $([System.OperatingSystem]::IsMacOS())" >
16+ <PropertyGroup >
17+ <TargetFrameworks >net9.0-macos</TargetFrameworks >
18+ </PropertyGroup >
19+ </When >
20+ <!-- 👇 在 Linux 上开发 -->
1421 <Otherwise >
1522 <PropertyGroup >
1623 <TargetFrameworks >net9.0</TargetFrameworks >
3138 <ProjectReference Include =" ..\Avalonia.Ref\Avalonia.X11\Avalonia.X11.csproj" />
3239 </ItemGroup >
3340 </When >
41+ <When Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'macos'" >
42+ <ItemGroup >
43+ <PackageReference Include =" Avalonia.Desktop" />
44+ <PackageReference Include =" Avalonia.Native" />
45+ </ItemGroup >
46+ </When >
3447 <When Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == ''" >
3548 <ItemGroup >
3649 <PackageReference Include =" Avalonia.Desktop" />
You can’t perform that action at this time.
0 commit comments