Skip to content

Commit 36fa2ff

Browse files
authored
[SharedFramework SDK] Use the shared framework name instead of the package ID for the "main assembly" for composite mode. (#16276)
1 parent 00c1115 commit 36fa2ff

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Microsoft.DotNet.SharedFramework.Sdk/targets/sharedfx.targets

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@
6262
</ItemGroup>
6363
<!--
6464
The PrepareForReadyToRunCompilation task now requires the MainAssembly metadata to be set.
65-
It's only used in composite mode, which we do not use, so create a ficticous $(PackageId).dll
66-
to ensure we don't accidentally trigger any unexpected behavior.
65+
It's only used in composite mode, so it won't show up in the outputs of the shared framework.
6766
-->
6867
<ItemGroup Condition="'@(IntermediateAssembly)' == ''">
69-
<IntermediateAssembly Include="$(IntermediateOutputPath)/$(PackageId).dll" />
68+
<IntermediateAssembly Include="$(IntermediateOutputPath)/$(SharedFrameworkName).dll" />
7069
</ItemGroup>
7170
</Target>
7271

0 commit comments

Comments
 (0)