51 lines
2.8 KiB
XML
51 lines
2.8 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/bcl/</MonoBaseClassLibraryPath>
|
|
<MonoBaseClassLibraryFacadesPath>$(BlazorMonoRuntimeBasePath)dist/bcl/Facades/</MonoBaseClassLibraryFacadesPath>
|
|
<MonoWasmRuntimePath>$(BlazorMonoRuntimeBasePath)dist/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" />
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="$(MicrosoftAspNetCoreRazorDesignPackageVersion)" />
|
|
</ItemGroup>
|
|
|
|
<!-- This is used as a P2P when building the repo. Normal Blazor projects will get this as a reference through the Blazor.Build package -->
|
|
<ItemGroup>
|
|
<ProjectReference Include="$(MSBuildThisFileDirectory)..\Microsoft.AspNetCore.Blazor.TagHelperWorkaround\Microsoft.AspNetCore.Blazor.TagHelperWorkaround.csproj" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<Target
|
|
Name="BuildBlazorBuildBinary"
|
|
BeforeTargets="BlazorGenerateDeclaration">
|
|
<!-- Ensures these projects are 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.BuildTools\Microsoft.AspNetCore.Blazor.BuildTools.csproj" Targets="Build" />
|
|
<MSBuild Projects="$(MSBuildThisFileDirectory)..\mono\mono.csproj" Targets="Build" />
|
|
<MSBuild Projects="$(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj" Targets="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>
|