-
Notifications
You must be signed in to change notification settings - Fork 361
/
Copy pathInstallDotNetCore.targets
24 lines (20 loc) · 1.06 KB
/
InstallDotNetCore.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. -->
<Project>
<UsingTask TaskName="Microsoft.DotNet.Arcade.Sdk.InstallDotNetCore" AssemblyFile="$(ArcadeSdkBuildTasksAssembly)" />
<Target Name="InstallDotNetCore"
AfterTargets="Restore">
<PropertyGroup>
<_DotNetInstallScript>$(RepositoryEngineeringDir)common\dotnet-install.cmd</_DotNetInstallScript>
<_DotNetInstallScript Condition="'$(OS)' != 'Windows_NT'">$(RepositoryEngineeringDir)common\dotnet-install.sh</_DotNetInstallScript>
</PropertyGroup>
<Exec Condition="'$(OS)' != 'Windows_NT'"
Command="chmod +x "$(_DotNetInstallScript)"" />
<InstallDotNetCore
VersionsPropsPath="$(RepoRoot)eng\Versions.props"
GlobalJsonPath="$(RepoRoot)global.json"
DotNetInstallScript="$(_DotNetInstallScript)"
Platform="$(Platform)"
RuntimeSourceFeed="$(DotNetRuntimeSourceFeed)"
RuntimeSourceFeedKey="$(DotNetRuntimeSourceFeedKey)"/>
</Target>
</Project>