48 lines
2.5 KiB
XML
48 lines
2.5 KiB
XML
<Project>
|
|
|
|
<!--
|
|
Importing this file is equivalent to having:
|
|
<PackageDependency Include="Microsoft.AspNetCore.Blazor.Build" />
|
|
... except it's much more convenient when working in this repo, because it consumes the
|
|
Blazor.Build targets/exe directly without needing this project to be packed into a .nupkg.
|
|
|
|
This is only intended for use by other projects in this repo.
|
|
-->
|
|
<PropertyGroup>
|
|
<BlazorBuildReferenceFromSource>true</BlazorBuildReferenceFromSource>
|
|
<BlazorMonoRuntimeBasePath>$(MSBuildThisFileDirectory)../mono/</BlazorMonoRuntimeBasePath>
|
|
<MonoLinkerPath>$(BlazorMonoRuntimeBasePath)tools/binaries/illink/illink.dll</MonoLinkerPath>
|
|
<MonoBaseClassLibraryPath>$(BlazorMonoRuntimeBasePath)dist/optimized/bcl/</MonoBaseClassLibraryPath>
|
|
<MonoBaseClassLibraryFacadesPath>$(BlazorMonoRuntimeBasePath)dist/optimized/bcl/Facades/</MonoBaseClassLibraryFacadesPath>
|
|
<MonoAsmjsRuntimePath>$(BlazorMonoRuntimeBasePath)dist/optimized/asmjs/</MonoAsmjsRuntimePath>
|
|
<MonoWasmRuntimePath>$(BlazorMonoRuntimeBasePath)dist/optimized/wasm/</MonoWasmRuntimePath>
|
|
<BlazorJsPath>$(MSBuildThisFileDirectory)../Microsoft.AspNetCore.Blazor.Browser.JS/dist/blazor.js</BlazorJsPath>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="$(MSBuildThisFileDirectory)targets/All.props" />
|
|
<Import Project="$(MSBuildThisFileDirectory)targets/All.targets" />
|
|
<Import Project="$(MSBuildThisFileDirectory)../mono/mono.targets" />
|
|
|
|
<Target Name="ProvisionMono" DependsOnTargets="OptimizeMono" BeforeTargets="BuildBlazorBuildBinary" />
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="$(RazorPackageVersion)"/>
|
|
</ItemGroup>
|
|
|
|
<Target
|
|
Name="BuildBlazorBuildBinary"
|
|
BeforeTargets="BlazorGenerateDeclaration">
|
|
<!-- Ensures this project is built before the consuming project, but without
|
|
adding a runtime dependency on the .dll (to be equivalent to a <PackageDependency>
|
|
given that the packed version of this project wouldn't add a .dll reference) -->
|
|
<MSBuild Projects="$(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj" Targets="Restore;Build" />
|
|
</Target>
|
|
|
|
<PropertyGroup>
|
|
<!-- When referencing from source, we need to disable VS's fast up-to-date check,
|
|
because otherwise changing the underlying Blazor library code isn't enough
|
|
to make it rebuild the affected library apps. -->
|
|
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
|
|
</PropertyGroup>
|
|
</Project>
|