forked from dotnet/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
209 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -Command "& """%~dp0build\build.ps1""" -build -restore -log %*" | ||
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -Command "& """%~dp0eng\common\build.ps1""" -build -restore -log %*" | ||
exit /b %ErrorLevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
function InitializeCustomSDKToolset { | ||
if [[ "$dogfood" == true ]]; then | ||
export SDK_REPO_ROOT="$RepoRoot" | ||
export SDK_CLI_VERSION="$DotNetCliVersion" | ||
export MSBuildSDKsPath="$ArtifactsConfigurationDir/bin/Sdks" | ||
export DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR="$MSBuildSDKsPath" | ||
export NETCoreSdkBundledVersionsProps="$DotNetRoot/sdk/$DotNetCliVersion/Microsoft.NETCoreSdk.BundledVersions.props" | ||
export CustomAfterMicrosoftCommonTargets="$MSBuildSDKsPath/Microsoft.NET.Build.Extensions/msbuildExtensions-ver/Microsoft.Common.Targets/ImportAfter/Microsoft.NET.Build.Extensions.targets" | ||
export MicrosoftNETBuildExtensionsTargets="$CustomAfterMicrosoftCommonTargets" | ||
fi | ||
|
||
if [[ "$restore" != true ]]; then | ||
return | ||
fi | ||
|
||
# The following frameworks and tools are used only for testing. | ||
# Do not attempt to install them in source build. | ||
if [[ "$DotNetBuildFromSource" == "true" ]]; then | ||
return | ||
fi | ||
|
||
InstallDotNetSharedFramework $DOTNET_INSTALL_DIR "1.0.5" | ||
InstallDotNetSharedFramework $DOTNET_INSTALL_DIR "1.1.2" | ||
InstallDotNetSharedFramework $DOTNET_INSTALL_DIR "2.1.0" | ||
} | ||
|
||
# Installs additional shared frameworks for testing purposes | ||
function InstallDotNetSharedFramework { | ||
local dotnet_root=$1 | ||
local version=$2 | ||
local fx_dir="$dotnet_root/shared/Microsoft.NETCore.App/$version" | ||
|
||
if [[ ! -d "$fx_dir" ]]; then | ||
local install_script=`GetDotNetInstallScript $dotnet_root` | ||
|
||
bash "$install_script" --version $version --install-dir $dotnet_root --shared-runtime | ||
local lastexitcode=$? | ||
|
||
if [[ $lastexitcode != 0 ]]; then | ||
echo "Failed to install Shared Framework $version to '$dotnet_root' (exit code '$lastexitcode')." | ||
ExitWithExitCode $lastexitcode | ||
fi | ||
fi | ||
} | ||
|
||
InitializeCustomSDKToolset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -Command "& """%~dp0Build.ps1""" -restore -publishBuildAssets %*" | ||
exit /b %ErrorLevel% |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.