File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/Components/Blazor/Build/src Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 20
20
<Reference Include =" Microsoft.AspNetCore.Blazor.Mono" />
21
21
</ItemGroup >
22
22
23
+ <Target Name =" _BuildBlazorBuildProject" BeforeTargets =" ResolveProjectReferences" >
24
+ <!--
25
+ The Blazor.Build project cross-compiles and we need the output of all TFMs to be available in the build output.
26
+ We can't represent this in any good way using ProjectReference elements, but we can try and build it instead.
27
+ -->
28
+ <MSBuild Projects =" $(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj" />
29
+ </Target >
30
+
23
31
<!-- This is used as a P2P when building the repo. Normal Blazor projects will get this as a reference through the Blazor.Build package -->
24
32
<ItemGroup >
25
33
<!-- Ensures these projects are built before the consuming project, but without
26
34
adding a runtime dependency on the .dll (to be equivalent to a <PackageDependency>
27
35
given that the packed version of this project wouldn't add a .dll reference) -->
28
36
<ProjectReference Include =" $(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj" >
29
37
<ReferenceOutputAssembly >false</ReferenceOutputAssembly >
30
- <!-- Optimization. Do not require framework compatibility between these projects. -->
31
38
<SkipGetTargetFrameworkProperties >true</SkipGetTargetFrameworkProperties >
32
- <UndefineProperties >TargetFramework</ UndefineProperties >
39
+ <Properties >TargetFramework=$(DefaultNetCoreTargetFramework)</ Properties >
33
40
</ProjectReference >
34
41
<ProjectReference Include =" $(MSBuildThisFileDirectory)..\..\DevServer\src\Microsoft.AspNetCore.Blazor.DevServer.csproj" >
35
42
<ReferenceOutputAssembly >false</ReferenceOutputAssembly >
You can’t perform that action at this time.
0 commit comments