New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use PackageDownload #3111
Use PackageDownload #3111
Changes from 4 commits
f5de7e0
55f4ead
23cbbf4
42323e3
65582d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,7 @@ Copyright (c) .NET Foundation. All rights reserved. | |
TargetLatestRuntimePatch="$(TargetLatestRuntimePatch)" | ||
EnableTargetingPackDownload="$(EnableTargetingPackDownload)"> | ||
|
||
<Output TaskParameter="PackagesToDownload" ItemName="_PackageReferenceToAdd" /> | ||
<Output TaskParameter="PackagesToDownload" ItemName="_PackageToDownload" /> | ||
<Output TaskParameter="RuntimeFrameworks" ItemName="RuntimeFramework" /> | ||
<Output TaskParameter="TargetingPacks" ItemName="TargetingPack" /> | ||
<Output TaskParameter="RuntimePacks" ItemName="RuntimePack" /> | ||
|
@@ -107,22 +107,34 @@ Copyright (c) .NET Foundation. All rights reserved. | |
TargetFrameworkVersion="$(_TargetFrameworkVersionWithoutV)" | ||
TargetingPackRoot="$(NetCoreTargetingPackRoot)" | ||
AppHostRuntimeIdentifier="$(AppHostRuntimeIdentifier)" | ||
OtherRuntimeIdentifiers="$(RuntimeIdentifiers)" | ||
RuntimeFrameworkVersion="$(RuntimeFrameworkVersion)" | ||
PackAsToolShimRuntimeIdentifiers="@(_PackAsToolShimRuntimeIdentifiers)" | ||
DotNetAppHostExecutableNameWithoutExtension="$(_DotNetAppHostExecutableNameWithoutExtension)" | ||
DotNetComHostLibraryNameWithoutExtension="$(_DotNetComHostLibraryNameWithoutExtension)" | ||
RuntimeGraphPath="$(BundledRuntimeIdentifierGraphFile)" | ||
KnownAppHostPacks="@(KnownAppHostPack)"> | ||
|
||
<Output TaskParameter="PackagesToDownload" ItemName="_PackageReferenceToAdd" /> | ||
<Output TaskParameter="PackagesToDownload" ItemName="_PackageToDownload" /> | ||
<Output TaskParameter="AppHost" ItemName="AppHostPack" /> | ||
<Output TaskParameter="ComHost" ItemName="ComHostPack" /> | ||
<Output TaskParameter="PackAsToolShimAppHostPacks" ItemName="PackAsToolShimAppHostPack" /> | ||
|
||
</ResolveAppHosts> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="@(_PackageReferenceToAdd)" | ||
<PropertyGroup Condition="'$(UsePackageDownload)' == ''"> | ||
<UsePackageDownload Condition=" '$(MSBuildRuntimeType)' == 'Core'">true</UsePackageDownload> | ||
<UsePackageDownload Condition=" '$(MSBuildRuntimeType)' != 'Core'">false</UsePackageDownload> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(UsePackageDownload)' == 'true'"> | ||
<PackageDownload Include="@(_PackageToDownload)"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just help me understanding this nuget feature, we use PackageDownload to download, but i didn't find the code to dig (i think it is in)nuget cache. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's the |
||
<Version>[%(_PackageToDownload.Version)]</Version> | ||
</PackageDownload> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(UsePackageDownload)' != 'true'"> | ||
<PackageReference Include="@(_PackageToDownload)" | ||
IsImplicitlyDefined="true" | ||
PrivateAssets="all" | ||
ExcludeAssets="all" /> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, extra space between
string
and[]