Skip to content

Commit 8824cbc

Browse files
committed
Move PublishToSharedLayoutRoot out of Build to make the target tree have less hooks into Build
1 parent 555c39e commit 8824cbc

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

src/Components/WebAssembly/DevServer/src/Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
<ProjectReference Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.sfxproj"
3333
Private="false"
3434
ReferenceOutputAssembly="false"
35-
SkipGetTargetFrameworkProperties="true" />
35+
SkipGetTargetFrameworkProperties="true"
36+
Targets="PublishToSharedLayoutRoot" />
3637
</ItemGroup>
3738

3839
<Target Name="_CreateRuntimeConfig" BeforeTargets="CoreBuild">

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.sfxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<Warning Text="This project has native dependencies which were not built. Without this, tests may not function correctly. Run `build.cmd -BuildNative -BuildManaged` to build both C# and C++." />
9090
</Target>
9191

92-
<Target Name="PublishToSharedLayoutRoot" BeforeTargets="Build">
92+
<Target Name="PublishToSharedLayoutRoot">
9393
<MSBuild Projects="$(MSBuildProjectFullPath)"
9494
Targets="PublishToDisk"
9595
Properties="OutputPath=$(SharedFrameworkLayoutRoot)" />

src/ProjectTemplates/test/Templates.Blazor.Tests/Templates.Blazor.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
<ProjectReference Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.sfxproj"
5858
Private="false"
5959
ReferenceOutputAssembly="false"
60-
SkipGetTargetFrameworkProperties="true" />
60+
SkipGetTargetFrameworkProperties="true"
61+
Targets="PublishToSharedLayoutRoot" />
6162
<ProjectReference Include="$(RepoRoot)src\Hosting\Server.IntegrationTesting\src\Microsoft.AspNetCore.Server.IntegrationTesting.csproj" />
6263
<ProjectReference Include="$(RepoRoot)src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj" />
6364
<ProjectReference Include="..\..\Web.ProjectTemplates\Microsoft.DotNet.Web.ProjectTemplates.csproj" Private="false" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" />

src/ProjectTemplates/test/Templates.Blazor.WebAssembly.Auth.Tests/Templates.Blazor.WebAssembly.Auth.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
<ProjectReference Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.sfxproj"
4848
Private="false"
4949
ReferenceOutputAssembly="false"
50-
SkipGetTargetFrameworkProperties="true" />
50+
SkipGetTargetFrameworkProperties="true"
51+
Targets="PublishToSharedLayoutRoot" />
5152

5253
<ProjectReference Include="$(RepoRoot)src\Hosting\Server.IntegrationTesting\src\Microsoft.AspNetCore.Server.IntegrationTesting.csproj" />
5354
<ProjectReference Include="$(RepoRoot)src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj" />

src/ProjectTemplates/test/Templates.Blazor.WebAssembly.Tests/Templates.Blazor.WebAssembly.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
<ProjectReference Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.sfxproj"
4747
Private="false"
4848
ReferenceOutputAssembly="false"
49-
SkipGetTargetFrameworkProperties="true" />
49+
SkipGetTargetFrameworkProperties="true"
50+
Targets="PublishToSharedLayoutRoot" />
5051

5152
<ProjectReference Include="$(RepoRoot)src\Hosting\Server.IntegrationTesting\src\Microsoft.AspNetCore.Server.IntegrationTesting.csproj" />
5253
<ProjectReference Include="$(RepoRoot)src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj" />

src/ProjectTemplates/test/Templates.Mvc.Tests/Templates.Mvc.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
<ProjectReference Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.sfxproj"
5757
Private="false"
5858
ReferenceOutputAssembly="false"
59-
SkipGetTargetFrameworkProperties="true" />
59+
SkipGetTargetFrameworkProperties="true"
60+
Targets="PublishToSharedLayoutRoot" />
6061

6162
<ProjectReference Include="$(RepoRoot)src\Hosting\Server.IntegrationTesting\src\Microsoft.AspNetCore.Server.IntegrationTesting.csproj" />
6263
<ProjectReference Include="$(RepoRoot)src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj" />

src/ProjectTemplates/test/Templates.Tests/Templates.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
<ProjectReference Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.sfxproj"
5151
Private="false"
5252
ReferenceOutputAssembly="false"
53-
SkipGetTargetFrameworkProperties="true" />
53+
SkipGetTargetFrameworkProperties="true"
54+
Targets="PublishToSharedLayoutRoot" />
5455

5556
<ProjectReference Include="$(RepoRoot)src\Hosting\Server.IntegrationTesting\src\Microsoft.AspNetCore.Server.IntegrationTesting.csproj" />
5657
<ProjectReference Include="$(RepoRoot)src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj" />

0 commit comments

Comments
 (0)