-
Notifications
You must be signed in to change notification settings - Fork 361
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
Add support for additional DotNetRuntime #7158
Changes from 5 commits
29b508e
0bbfad8
92e20a5
0be539a
444eedc
41530d1
70698e6
6e5ffd6
6a3afaa
1e43db3
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 |
---|---|---|
|
@@ -18,4 +18,27 @@ | |
<HelixPreCommands Condition="!$(IsPosixShell)">$(HelixPreCommands);set DOTNET_ROOT=%HELIX_CORRELATION_PAYLOAD%\$(DotNetCliDestination);set DOTNET_CLI_TELEMETRY_OPTOUT=1</HelixPreCommands> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<Target Name="AddAdditionalRuntimes" | ||
Condition="@(AdditionalDotNetPackage->Count()) != 0" | ||
AfterTargets="Build" | ||
Outputs="%(AdditionalDotNetPackage.Identity)"> | ||
<PropertyGroup> | ||
<_channel>%(AdditionalDotNetPackage.Channel)</_channel> | ||
<_channel Condition=" '$(_channel)' == '' ">Current</_channel> | ||
<_package>%(AdditionalDotNetPackage.PackageType)</_package> | ||
<_package Condition=" '$(_package)' == '' ">runtime</_package> | ||
</PropertyGroup> | ||
|
||
<Message Text = "FindDotNetCliPackage '%(AdditionalDotNetPackage.Identity)' '$(DotNetCliRuntime)' '$(_package)' '$(_channel)' "/> | ||
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. I think this is cruft from my example? If not, you could improve the text like "Adding package ..." 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. Up to you, I found it nice for debugging, I can remove it or update the text, what do you prefer? 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. If it's up to me I definitely favor logging it with normal verbosity, something like
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. Sounds good, updated |
||
<FindDotNetCliPackage Version="%(AdditionalDotNetPackage.Identity)" Runtime="$(DotNetCliRuntime)" PackageType="$(_package)" Channel="$(_channel)"> | ||
<Output TaskParameter="PackageUri" PropertyName="DotNetCliPackageUri"/> | ||
</FindDotNetCliPackage> | ||
<ItemGroup> | ||
<HelixCorrelationPayload Include="dotnet-additional"> | ||
<Uri>$(DotNetCliPackageUri)</Uri> | ||
<Destination>$(DotNetCliDestination)</Destination> | ||
</HelixCorrelationPayload> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
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.
since you're reading PackageType, consider
_packageType