csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.0 KiB
55 lines
2.0 KiB
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net6.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<PackageId>Avalonia.Web.Blazor</PackageId>
|
|
<LangVersion>preview</LangVersion>
|
|
<MSBuildEnableWorkloadResolver>false</MSBuildEnableWorkloadResolver>
|
|
<StaticWebAssetsDisableProjectBuildPropsFileGeneration>true</StaticWebAssetsDisableProjectBuildPropsFileGeneration>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<SupportedPlatform Include="browser" />
|
|
</ItemGroup>
|
|
|
|
<Import Project="..\..\..\build\BuildTargets.targets" />
|
|
<Import Project="..\..\..\build\SkiaSharp.props" />
|
|
<Import Project="..\..\..\build\HarfBuzzSharp.props" />
|
|
<Import Project="..\..\..\build\NullableEnable.props" />
|
|
|
|
<ItemGroup>
|
|
<Content Include="*.props">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build\</PackagePath>
|
|
</Content>
|
|
<Content Include="*.targets">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build\;buildTransitive\</PackagePath>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.8" />
|
|
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.7.4" PrivateAssets="all" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\Avalonia.Base\Avalonia.Base.csproj" />
|
|
<ProjectReference Include="..\..\Skia\Avalonia.Skia\Avalonia.Skia.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="wwwroot\" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="NpmInstall" Inputs="webapp/package.json" Outputs="webapp/node_modules/.install-stamp">
|
|
<Exec Command="npm install" WorkingDirectory="webapp" />
|
|
<!-- Write the stamp file, so incremental builds work -->
|
|
<Touch Files="webapp/node_modules/.install-stamp" AlwaysCreate="true" />
|
|
</Target>
|
|
<Target Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
|
|
<Exec Command="npm run build" WorkingDirectory="webapp" />
|
|
</Target>
|
|
</Project>
|
|
|