Skip to content

Commit 7eda1e9

Browse files
authored
Don't flow OutputPath global property in dotnet-sdk.proj (#48808)
1 parent cb35849 commit 7eda1e9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Layout/pkg/dotnet-sdk.proj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@
2626
-->
2727
<InstallerRuntimeIdentifiers>linux-$(TargetArchitecture)</InstallerRuntimeIdentifiers>
2828
<IsShippingPackage>true</IsShippingPackage>
29-
</PropertyGroup>
30-
31-
<ItemGroup>
3229
<!-- The PublishToDisk target which depends on ResolveProjectReferences is invoked with OutputPath as an global property
33-
which would flow to redist.csproj. -->
34-
<ProjectReference Include="..\redist\redist.csproj" ReferenceOutputAssembly="false" GlobalPropertiesToRemove="OutputPath" />
35-
</ItemGroup>
30+
which would flow to redist.csproj or sdk-tasks.csproj. -->
31+
<_GlobalPropertiesToRemoveFromProjectReferences>$(_GlobalPropertiesToRemoveFromProjectReferences);OutputPath</_GlobalPropertiesToRemoveFromProjectReferences>
32+
</PropertyGroup>
3633

3734
<ItemGroup>
35+
<ProjectReference Include="..\redist\redist.csproj" ReferenceOutputAssembly="false" />
3836
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Installers" />
3937
</ItemGroup>
4038

0 commit comments

Comments
 (0)