13 changed files with 60 additions and 50 deletions
@ -1,10 +0,0 @@ |
|||||
<Project> |
|
||||
<PropertyGroup> |
|
||||
<ShouldIncludeAvaloniaJavaScript Condition=" '$(ShouldIncludeAvaloniaJavaScript)' == '' ">True</ShouldIncludeAvaloniaJavaScript> |
|
||||
<ShouldIncludeNativeSkiaSharp Condition=" '$(ShouldIncludeNativeSkiaSharp)' == '' ">True</ShouldIncludeNativeSkiaSharp> |
|
||||
<ShouldIncludeNativeHarfBuzzSharp Condition=" '$(ShouldIncludeNativeHarfBuzzSharp)' == '' ">True</ShouldIncludeNativeHarfBuzzSharp> |
|
||||
<!-- .NET 8 changes default location for dotnet script to the "_framework" subfolder, --> |
|
||||
<!-- But this change would introduce a breaking change to Avalonia users, so we revert it back to the .NET 7 state. --> |
|
||||
<WasmRuntimeAssetsLocation Condition="'$(WasmRuntimeAssetsLocation)' == ''">./</WasmRuntimeAssetsLocation> |
|
||||
</PropertyGroup> |
|
||||
</Project> |
|
||||
@ -0,0 +1,15 @@ |
|||||
|
<Project> |
||||
|
<PropertyGroup> |
||||
|
<ShouldIncludeAvaloniaAssets Condition=" '$(ShouldIncludeAvaloniaAssets)' == '' ">True</ShouldIncludeAvaloniaAssets> |
||||
|
<ShouldIncludeAvaloniaLegacyAssets Condition=" '$(ShouldIncludeAvaloniaLegacyAssets)' == '' AND '$(ShouldIncludeAvaloniaAssets)' == 'True' AND '$(StaticWebAssetsEnabled)' != 'True'">True</ShouldIncludeAvaloniaLegacyAssets> |
||||
|
<ShouldIncludeAvaloniaStaticAsset Condition=" '$(ShouldIncludeAvaloniaStaticAsset)' == '' AND '$(ShouldIncludeAvaloniaAssets)' == 'True' AND '$(StaticWebAssetsEnabled)' == 'True'">True</ShouldIncludeAvaloniaStaticAsset> |
||||
|
|
||||
|
<ShouldIncludeNativeSkiaSharp Condition=" '$(ShouldIncludeNativeSkiaSharp)' == '' ">True</ShouldIncludeNativeSkiaSharp> |
||||
|
<ShouldIncludeNativeHarfBuzzSharp Condition=" '$(ShouldIncludeNativeHarfBuzzSharp)' == '' ">True</ShouldIncludeNativeHarfBuzzSharp> |
||||
|
<!-- .NET 8 changes default location for dotnet script to the "_framework" subfolder, --> |
||||
|
<!-- But this change would introduce a breaking change to Avalonia users, so we revert it back to the .NET 7 state. --> |
||||
|
<WasmRuntimeAssetsLocation Condition="'$(WasmRuntimeAssetsLocation)' == ''">./</WasmRuntimeAssetsLocation> |
||||
|
</PropertyGroup> |
||||
|
|
||||
|
<Import Project="$(MSBuildThisFileDirectory)/../build/Microsoft.AspNetCore.StaticWebAssets.props" /> |
||||
|
</Project> |
||||
@ -0,0 +1,22 @@ |
|||||
|
<Project> |
||||
|
<PropertyGroup> |
||||
|
<_AvaloniaWebAssetsFolder>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)../staticwebassets/))</_AvaloniaWebAssetsFolder> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup Condition="'$(ShouldIncludeAvaloniaStaticAsset)' == 'True'"> |
||||
|
<!-- This file repricates how StaticWebAsset SDK generates static web assets for Blazor nuget packages, which we don't use here. --> |
||||
|
<_AvaloniaWebAssets Include="$(_AvaloniaWebAssetsFolder)**/*.*" /> |
||||
|
<StaticWebAsset Include="@(_AvaloniaWebAssets)"> |
||||
|
<SourceType>Package</SourceType> |
||||
|
<SourceId>Avalonia.Browser</SourceId> |
||||
|
<ContentRoot>$(_AvaloniaWebAssetsFolder)</ContentRoot> |
||||
|
<BasePath>/</BasePath> |
||||
|
<RelativePath>$(WasmRuntimeAssetsLocation)/%(FileName)%(Extension)</RelativePath> |
||||
|
<AssetKind>All</AssetKind> |
||||
|
<AssetMode>All</AssetMode> |
||||
|
<AssetRole>Primary</AssetRole> |
||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
||||
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> |
||||
|
<OriginalItemSpec>$(_AvaloniaWebAssetsFolder)%(FileName)%(Extension)</OriginalItemSpec> |
||||
|
</StaticWebAsset> |
||||
|
</ItemGroup> |
||||
|
</Project> |
||||
Loading…
Reference in new issue