Try different MSBuild things to make build work (#17427)
Fixes https://github.com/aspnet/AspNetCore/issues/17418
This commit is contained in:
parent
6c961ae4e2
commit
3c6dc1c516
|
|
@ -20,6 +20,14 @@
|
||||||
<Reference Include="Microsoft.AspNetCore.Blazor.Mono" />
|
<Reference Include="Microsoft.AspNetCore.Blazor.Mono" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Target Name="_BuildBlazorBuildProject" BeforeTargets="ResolveProjectReferences">
|
||||||
|
<!--
|
||||||
|
The Blazor.Build project cross-compiles and we need the output of all TFMs to be available in the build output.
|
||||||
|
We can't represent this in any good way using ProjectReference elements, but we can try and build it instead.
|
||||||
|
-->
|
||||||
|
<MSBuild Projects="$(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
<!-- This is used as a P2P when building the repo. Normal Blazor projects will get this as a reference through the Blazor.Build package -->
|
<!-- 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>
|
<ItemGroup>
|
||||||
<!-- Ensures these projects are built before the consuming project, but without
|
<!-- Ensures these projects are built before the consuming project, but without
|
||||||
|
|
@ -27,9 +35,8 @@
|
||||||
given that the packed version of this project wouldn't add a .dll reference) -->
|
given that the packed version of this project wouldn't add a .dll reference) -->
|
||||||
<ProjectReference Include="$(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj">
|
<ProjectReference Include="$(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj">
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
<!-- Optimization. Do not require framework compatibility between these projects. -->
|
|
||||||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
|
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
|
||||||
<UndefineProperties>TargetFramework</UndefineProperties>
|
<Properties>TargetFramework=$(DefaultNetCoreTargetFramework)</Properties>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\DevServer\src\Microsoft.AspNetCore.Blazor.DevServer.csproj">
|
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\DevServer\src\Microsoft.AspNetCore.Blazor.DevServer.csproj">
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue