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
NOTE: This file is imported from the following contexts, so be aware when writing Conditions and thinking about evaluation order:
16
+
* cross-targeting (multi-TFM) builds.
17
+
* these may not have a RID or RIDs set, but still need to be able to pack tools
18
+
* IsCrossTargetingBuild is set to true in this case
19
+
* 'outer' builds for a single TFM
20
+
* these builds are RID-agnostic, but still need to be able to pack 'inner', RID-specific tools.
21
+
* IsCrossTargetingBuild is unset in this case, RuntimeIdentifier is unset, and RuntimeIdentifiers or ToolPackageRuntimeIdentifiers is set to a list of RIDs
22
+
* if these builds are RID-specific but not AOT, then we pack the outer tool without implementation dlls and the N inner-RID-specific tools
23
+
* if these builds are RID-specific and AOT, then we pack the outer tool only without implementation dlls
24
+
* if these builds are RID-agnostic, then we pack the outer tool only with implementation dlls
25
+
* 'inner' builds for a single TFM
26
+
* these builds are RID-specific, and have RuntimeIdentifier set to a single RID, and RuntimeIdentifiers or ToolPackageRuntimeIdentifiers set to a list of RIDs
27
+
* these builds pack only the inner, RID-specific tool implementation dlls and have a unique PackageType of DotnetToolRidPackage
@@ -23,13 +40,16 @@ Copyright (c) .NET Foundation. All rights reserved.
23
40
<PropertyGroup>
24
41
<!-- tools are specially-formatted packages, so we tell nuget Pack to not even try to include build output -->
25
42
<IncludeBuildOutput>false</IncludeBuildOutput>
43
+
26
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 -->
<!-- Have to set SelfContained similarly because PackTool targets are imported _after_ RuntimeIdentifierInference targets, where the Publish* properties are
@@ -353,7 +381,8 @@ Copyright (c) .NET Foundation. All rights reserved.
353
381
354
382
</Target>
355
383
356
-
<!-- orchestrator for making the N RID-specific tool packages -->
384
+
<!-- Orchestrator for making the N RID-specific tool packages if this Tool supports that mode.
385
+
We can't call this for AOT'd tools because we can't AOT cross-architecture and cross-platform in .NET today. -->
357
386
<TargetName="_CreateRIDSpecificToolPackages"Condition="'$(RuntimeIdentifier)' == '' and $(_HasRIDSpecificTools) and !$(_InnerToolsPublishAot) and !$(_ToolPackageShouldIncludeImplementation)">
0 commit comments