Skip to content

Commit 54449c0

Browse files
committed
slightly better build outputs
1 parent fe84588 commit 54449c0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/FsAutoComplete/FsAutoComplete.fsproj

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
2020
<IsPackable>true</IsPackable>
2121
<PackAsTool>true</PackAsTool>
22+
<PublishTrimmed>true</PublishTrimmed>
23+
<PublishSingleFile>true</PublishSingleFile>
24+
<PublishSelfContained>true</PublishSelfContained>
25+
<DebugType>embedded</DebugType>
2226
</PropertyGroup>
2327
<ItemGroup>
2428
<None
@@ -84,16 +88,19 @@
8488
<Target Name="BuildAllStandloneApplications">
8589
<ItemGroup>
8690
<_RIDS Include="$(RuntimeIdentifiers)" />
91+
<_TFMS
92+
Include="$(TargetFrameworks)"
93+
RID="%(_RIDS.Identity)" />
8794
<_RIDSpecificFSACBuild
8895
Include="$(MSBuildThisFile)"
89-
AdditionalProperties="RuntimeIdentifier=%(_RIDS.Identity)" />
96+
AdditionalProperties="RuntimeIdentifier=%(_TFMS.RID);TargetFramework=%(_TFMS.Identity)" />
9097
</ItemGroup>
9198

9299
<MSBuild
93100
Projects="@(_RIDSpecificFSACBuild)"
94101
Targets="Publish"
95-
Properties="Configuration=Release;PublishSingleFile=true;PublishTrimmed=true;"
96-
RemoveProperties="RuntimeIdentifiers"
102+
Properties="Configuration=Release;SelfContained=true"
103+
RemoveProperties="RuntimeIdentifiers;TargetFrameworks"
97104
BuildInParallel="true" />
98105
</Target>
99106

0 commit comments

Comments
 (0)