You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.PackTool.targets
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,15 @@ NOTE: This file is imported from the following contexts, so be aware when writin
42
42
<IncludeBuildOutput>false</IncludeBuildOutput>
43
43
44
44
<!-- the publish* properties _can_ be set, but only for the 'inner' RID-specific builds. We need to make sure that for the outer, agnostic build they are unset -->
<!-- RID information is also stripped during Restore, so we need to make sure user
46
+
decisions are preserved when Restoring, so that publishing-related packages are implicitly included. -->
47
+
<PublishSelfContainedCondition="'$(RuntimeIdentifier)' == '' and '$(MSBuildIsRestoring)' != 'true'">false</PublishSelfContained>
46
48
<!-- Have to set SelfContained similarly because PackTool targets are imported _after_ RuntimeIdentifierInference targets, where the Publish* properties are
0 commit comments