diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-04-26 09:56:18 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-04-26 09:56:18 +0300 |
commit | c305e540179a0829d79ecfde81364a9707d66411 (patch) | |
tree | 2457667dfa9379ed3d62fdccb8fcb6eaa8dfa366 /build.sh | |
parent | d928352b8e333267bf6be086e4a44e159e5686ae (diff) |
CLI update (#1193)
- Update CLI to more recent version
- Remove last dependency on mono
- Update Microsoft.DotNet.AppDep version to 00004 that has stubbed out System.Resources.ResourceManager
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 32 |
1 files changed, 10 insertions, 22 deletions
@@ -36,22 +36,6 @@ clean() # Check the system to ensure the right pre-reqs are in place -check_managed_prereqs() -{ - __monoversion=$(mono --version | grep "version 4.[1-9]") - - if [ $? -ne 0 ]; then - # if built from tarball, mono only identifies itself as 4.0.1 - __monoversion=$(mono --version | egrep "version 4.0.[1-9]+(.[0-9]+)?") - if [ $? -ne 0 ]; then - echo "Mono 4.0.1.44 or later is required to build corert." - exit 1 - else - echo "WARNING: Mono 4.0.1.44 or later is required to build corert. Unable to assess if current version is supported." - fi - fi -} - check_native_prereqs() { echo "Checking pre-requisites..." @@ -70,6 +54,10 @@ prepare_managed_build() # Run Init-Tools to restore BuildTools and ToolRuntime $__scriptpath/init-tools.sh + # Tell nuget to always use repo-local nuget package cache. The "dotnet restore" invocations use the --packages + # argument, but there are a few commands in publish and tests that do not. + export NUGET_PACKAGES=$__packageroot + echo "Using CLI tools version:" ls "$__dotnetclipath/sdk" } @@ -103,6 +91,12 @@ build_managed_corert() # Pull the build summary from the log file tail -n 4 "$__buildlog" echo Build Exit Code = $BUILDERRORLEVEL + + # Workaround for --appdepsdkpath command line switch being ignored. + # Copy the restored appdepsdk package to its default location. + source "${__ProjectRoot}/tests/testenv.sh" $__BuildType $__BuildArch + __DOTNET_TOOLS_VERSION=$(cat $__scriptpath/DotnetCLIVersion.txt) + cp -r "${CoreRT_AppDepSdkDir}" "${__dotnetclipath}/sdk/${__DOTNET_TOOLS_VERSION}/appdepsdk" } build_native_corert() @@ -151,8 +145,6 @@ __scriptpath=$(cd "$(dirname "$0")"; pwd -P) __ProjectRoot=$__scriptpath __packageroot=$__scriptpath/packages __sourceroot=$__scriptpath/src -__nugetpath=$__packageroot/NuGet.exe -__nugetconfig=$__sourceroot/NuGet.Config __rootbinpath="$__scriptpath/bin" __TestNugetRuntimeId=ubuntu.14.04-x64 __buildmanaged=false @@ -358,10 +350,6 @@ fi if $__buildmanaged; then - # Check prereqs. - - check_managed_prereqs - # Prepare the system prepare_managed_build |