Skip to content

Commit

Permalink
Remove CreateTestEnvScript in favor of -dogfood option
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Feb 9, 2018
1 parent 6229c70 commit 7cec5e7
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ function Build {
InstallDotNetCli
InstallNuget
CreateBuildEnvScript
CreateTestEnvScript
$RepoToolsetBuildProj = InstallRepoToolset

if ($prepareMachine) {
Expand Down Expand Up @@ -281,30 +280,6 @@ set NUGET_PACKAGES=$env:NUGET_PACKAGES
Out-File -FilePath $scriptPath -InputObject $scriptContents -Encoding ASCII
}

function CreateTestEnvScript()
{
Create-Directory $ArtifactsConfigurationDir
$scriptPath = Join-Path $ArtifactsConfigurationDir "sdk-test-env.bat"

$scriptContents = @"
@echo off
title SDK Test ($RepoRoot) ($configuration)
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
set DOTNET_MULTILEVEL_LOOKUP=0
set PATH=$env:DOTNET_INSTALL_DIR;%PATH%
set NUGET_PACKAGES=$env:NUGET_PACKAGES
set SDK_CLI_VERSION=$DotNetCliVersion
set MSBuildSDKsPath=$ArtifactsConfigurationDir\bin\Sdks
set DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR=%MSBuildSDKsPath%
set NETCoreSdkBundledVersionsProps=$env:DOTNET_INSTALL_DIR\sdk\$DotNetCliVersion\Microsoft.NETCoreSdk.BundledVersions.props
set MicrosoftNETBuildExtensionsTargets=%MSBuildSDKsPath%\Microsoft.NET.Build.Extensions\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets
"@

Out-File -FilePath $scriptPath -InputObject $scriptContents -Encoding ASCII
}

if ($help -or (($properties -ne $null) -and ($properties.Contains("/help") -or $properties.Contains("/?")))) {
Print-Usage
exit 0
Expand Down

0 comments on commit 7cec5e7

Please sign in to comment.