diff --git a/.gitignore b/.gitignore index 23fe40877..2ce687bb1 100644 --- a/.gitignore +++ b/.gitignore @@ -95,8 +95,10 @@ dlldata.c # Build artifacts artifacts/ +artifacts-*/ bin/ .dotnet/ +.dotnet-*/ *_i.c *_p.c diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln index ed4f517c9..a5f56ff79 100644 --- a/Microsoft.DotNet.Cli.sln +++ b/Microsoft.DotNet.Cli.sln @@ -19,6 +19,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkResolver", "src\SdkResol EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Dotnet.Sdk.Internal", "src\Microsoft.Dotnet.Sdk.Internal\Microsoft.Dotnet.Sdk.Internal.csproj", "{73F07908-981B-41BB-B9BD-F3420274A6F7}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkTests", "test\SdkTests\SdkTests.csproj", "{CB1EE94E-CB83-4071-9DD0-9929AE2B7282}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -49,6 +51,10 @@ Global {73F07908-981B-41BB-B9BD-F3420274A6F7}.Debug|Any CPU.Build.0 = Debug|Any CPU {73F07908-981B-41BB-B9BD-F3420274A6F7}.Release|Any CPU.ActiveCfg = Release|Any CPU {73F07908-981B-41BB-B9BD-F3420274A6F7}.Release|Any CPU.Build.0 = Release|Any CPU + {CB1EE94E-CB83-4071-9DD0-9929AE2B7282}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CB1EE94E-CB83-4071-9DD0-9929AE2B7282}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CB1EE94E-CB83-4071-9DD0-9929AE2B7282}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CB1EE94E-CB83-4071-9DD0-9929AE2B7282}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -59,6 +65,7 @@ Global {53AF2D01-B69F-4CD0-86A7-8FD95967D23C} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F} {78E15EC1-7732-41E3-8591-934E9F583254} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7} {7EE15292-2CAD-44FA-8A1F-BAC4688A49E0} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F} + {CB1EE94E-CB83-4071-9DD0-9929AE2B7282} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {B526D2CE-EE2D-4AD4-93EF-1867D90FF1F5} diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index b3aa04426..4e67919b0 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -2,66 +2,66 @@ - + https://github.com/dotnet/core-setup - 2be172345a420387413bab7ce9053a52624c4461 + caa8d3b1edd7eec947f6283f8342a9249b5d7171 - + https://github.com/dotnet/core-setup - 2be172345a420387413bab7ce9053a52624c4461 + caa8d3b1edd7eec947f6283f8342a9249b5d7171 - + https://github.com/dotnet/core-setup - 2be172345a420387413bab7ce9053a52624c4461 + caa8d3b1edd7eec947f6283f8342a9249b5d7171 - + https://github.com/aspnet/AspNetCore - 66de493473521e173fa15ca557f5f97601cedb23 + 0abe61f391b30219ce5983b9a2964c1d85665449 - + https://github.com/aspnet/AspNetCore - 66de493473521e173fa15ca557f5f97601cedb23 + 0abe61f391b30219ce5983b9a2964c1d85665449 - + https://github.com/aspnet/AspNetCore - 66de493473521e173fa15ca557f5f97601cedb23 + 0abe61f391b30219ce5983b9a2964c1d85665449 - + https://github.com/aspnet/AspNetCore - 66de493473521e173fa15ca557f5f97601cedb23 + 0abe61f391b30219ce5983b9a2964c1d85665449 - + https://github.com/aspnet/AspNetCore - 66de493473521e173fa15ca557f5f97601cedb23 + 0abe61f391b30219ce5983b9a2964c1d85665449 - + https://github.com/aspnet/AspNetCore - 66de493473521e173fa15ca557f5f97601cedb23 + 0abe61f391b30219ce5983b9a2964c1d85665449 - + https://github.com/dotnet/templating e8d6da33000a416b2b36b4f04b1756dcc99f671d - + https://github.com/dotnet/toolset - 09b1fb2a89520ab36ad81eeaeedc3c1104df12fa + 0006e3e685090a98024a0060c05164e71fbbd148 - + https://github.com/dotnet/sdk - 1c91e0a4d59ba7d254637f3e3a430ad3aab6992f + 59e63b28d24a769652b754f341d38c9de7c3d0d1 - + https://github.com/dotnet/cli - 2859af6e958aa74edfa69ceffa33f1338996e011 + a408b580b491bb17f444034bdda51e0986873bd1 - + https://github.com/dotnet/winforms - 7f2c6adc229513b8a3690d0c59079073a783d33f + dd6650900f5af7283c6af6ec85de4d8d51f28961 - + https://github.com/dotnet/wpf - 4524e3a8b4d8ebc8643b6e2185a597700261e1fb + ffc3fbd836fb6ff3c28e50fec67be5b55c8b6542 diff --git a/eng/Versions.props b/eng/Versions.props index a76c0fedb..33594934f 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -12,39 +12,39 @@ preview - 3.0.100-preview9.19426.19 + 3.0.100-rc1.19455.2 - 4.8.0-preview9.19420.3 + 4.8.0-preview9.19417.1 - 3.0.0-preview9.19421.3 + 3.0.0-preview9.19417.4 - 3.0.0-preview9.19424.4 - 3.0.0-preview9.19424.4 - 3.0.0-preview9.19424.4 - 3.0.0-preview9.19424.4 - 3.0.0-preview9.19424.4 - 3.0.0-preview9.19424.4 + 3.0.0-rc1.19453.1 + 3.0.0-rc1.19453.1 + 3.0.0-rc1.19453.1 + 3.0.0-rc1.19453.1 + 3.0.0-rc1.19453.1 + 3.0.0-rc1.19453.1 - 3.0.100-preview9.19426.10 + 3.0.100-rc1.19454.5 0.2.0 - 3.0.100-preview9.19426.11 + 3.0.100-rc1.19453.1 $(MicrosoftNETSdkPackageVersion) - 3.0.0-preview9-19423-09 + 3.0.0-rc1-19455-02 $(MicrosoftNETCoreAppPackageVersion) $(MicrosoftNETCoreAppPackageVersion) $(MicrosoftNETCoreAppPackageVersion) @@ -52,11 +52,11 @@ $(MicrosoftNETCoreAppPackageVersion) $(MicrosoftNETCoreAppPackageVersion) $(MicrosoftNETCoreAppPackageVersion) - 2.1.0-preview9-19423-09 + 2.1.0-rc1-19455-02 $(MicrosoftNETCoreAppPackageVersion) $(MicrosoftAspNetCoreAppRuntimeWinX64PackageVersion) $(MicrosoftAspNetCoreAppRefPackageVersion) - 3.0.0-preview9-19423-09 + 3.0.0-rc1-19455-02 $(MicrosoftWindowsDesktopAppPackageVersion) diff --git a/eng/build.yml b/eng/build.yml index c47ccad98..5ceca2945 100644 --- a/eng/build.yml +++ b/eng/build.yml @@ -26,6 +26,8 @@ phases: pool: ${{ parameters.pool }} ${{ if ne(parameters.strategy, '') }}: strategy: ${{ parameters.strategy }} + workspace: + clean: all variables: - _AgentOSName: ${{ parameters.agentOs }} @@ -117,7 +119,7 @@ phases: testRunTitle: '$(_AgentOSName)_$(Agent.JobName)' platform: '$(BuildPlatform)' configuration: '$(_BuildConfig)' - condition: not(succeeded()) + condition: ne(variables['TestParameter'], '') - task: CopyFiles@2 displayName: Gather Logs @@ -128,7 +130,7 @@ phases: TestResults/$(_BuildConfig)/**/* TargetFolder: '$(Build.ArtifactStagingDirectory)' continueOnError: true - condition: not(succeeded()) + condition: always() - task: PublishBuildArtifacts@1 displayName: Publish Logs to VSTS @@ -137,4 +139,4 @@ phases: ArtifactName: '$(_AgentOSName)_$(Agent.JobName)_$(Build.BuildNumber)' publishLocation: Container continueOnError: true - condition: not(succeeded()) + condition: always() diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index 9c12b1b4f..5688d488b 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -132,7 +132,12 @@ function InitializeDotNetCli([bool]$install) { if ((-not $globalJsonHasRuntimes) -and ($env:DOTNET_INSTALL_DIR -ne $null) -and (Test-Path(Join-Path $env:DOTNET_INSTALL_DIR "sdk\$dotnetSdkVersion"))) { $dotnetRoot = $env:DOTNET_INSTALL_DIR } else { + $dotnetRoot = Join-Path $RepoRoot ".dotnet" + if ($env:ARCADE_PARTITION -ne $null) + { + $dotnetRoot = Join-Path $RepoRoot ".dotnet-$env:ARCADE_PARTITION" + } if (-not (Test-Path(Join-Path $dotnetRoot "sdk\$dotnetSdkVersion"))) { if ($install) { @@ -568,6 +573,10 @@ function GetMSBuildBinaryLogCommandLineArgument($arguments) { $RepoRoot = Resolve-Path (Join-Path $PSScriptRoot "..\..") $EngRoot = Resolve-Path (Join-Path $PSScriptRoot "..") $ArtifactsDir = Join-Path $RepoRoot "artifacts" +if ($env:ARCADE_PARTITION -ne $null) +{ + $ArtifactsDir = Join-Path $RepoRoot "artifacts-$env:ARCADE_PARTITION" +} $ToolsetDir = Join-Path $ArtifactsDir "toolset" $ToolsDir = Join-Path $RepoRoot ".tools" $LogDir = Join-Path (Join-Path $ArtifactsDir "log") $configuration diff --git a/eng/common/tools.sh b/eng/common/tools.sh index 3af9be615..c38532b32 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -135,7 +135,9 @@ function InitializeDotNetCli { dotnet_root="$DOTNET_INSTALL_DIR" else dotnet_root="$repo_root/.dotnet" - + if [[ -n "${ARCADE_PARTITION:-}" ]]; then + dotnet_root="$repo_root/.dotnet-$ARCADE_PARTITION" + fi export DOTNET_INSTALL_DIR="$dotnet_root" if [[ ! -d "$DOTNET_INSTALL_DIR/sdk/$dotnet_sdk_version" ]]; then @@ -364,6 +366,11 @@ _script_dir=`dirname "$_ResolvePath"` eng_root=`cd -P "$_script_dir/.." && pwd` repo_root=`cd -P "$_script_dir/../.." && pwd` artifacts_dir="$repo_root/artifacts" +if [[ -n "${ARCADE_PARTITION:-}" ]]; then + artifacts_dir="$repo_root/artifacts-$ARCADE_PARTITION" + export ArtifactsDir="$artifacts_dir/" +fi + toolset_dir="$artifacts_dir/toolset" tools_dir="$repo_root/.tools" log_dir="$artifacts_dir/log/$configuration" diff --git a/eng/core-sdk-build-env.sh b/eng/core-sdk-build-env.sh new file mode 100644 index 000000000..6b3974e46 --- /dev/null +++ b/eng/core-sdk-build-env.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash +# +# Copyright (c) .NET Foundation and contributors. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +# + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + SOURCE="$(readlink "$SOURCE")" + [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located +done + +REPO_ROOT="$( cd -P "$( dirname "$SOURCE" )/../" && pwd )" + +arcade_partition= + +while [[ $# > 0 ]]; do + opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')" + case "$opt" in + -partition) + arcade_partition=$2 + shift + ;; + esac + + shift +done + +export ARCADE_PARTITION=$arcade_partition + +if [[ ! -z "$arcade_partition" ]]; then + arcade_partition_suffix="-$arcade_partition" +fi + +export PATH=$REPO_ROOT/.dotnet$arcade_partition_suffix:$PATH +export DOTNET_INSTALL_DIR=$REPO_ROOT/.dotnet$arcade_partition_suffix +export ArtifactsDir=$REPO_ROOT/artifacts$arcade_partition_suffix/ + +export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +export DOTNET_MULTILEVEL_LOOKUP=0 \ No newline at end of file diff --git a/eng/dockerrun.ps1 b/eng/dockerrun.ps1 index 48a79ffd9..17eae39b4 100644 --- a/eng/dockerrun.ps1 +++ b/eng/dockerrun.ps1 @@ -55,7 +55,6 @@ docker run $interactiveFlag -t --rm --sig-proxy=true ` -e PB_PACKAGEVERSIONPROPSURL ` -e PB_PUBLISHBLOBFEEDURL ` -e EXTERNALRESTORESOURCES ` - -e ARCADE_DOTNET_DIR="/opt/code/artifacts/docker/${dockerImageName}/.dotnet" ` - -e ARCADE_ARTIFACTS_DIR="/opt/code/artifacts/docker/${dockerImageName}/" ` + -e ARCADE_PARTITION="${dockerImageName}" ` $dockerContainerTag ` /opt/code/run-build.sh @additionalArgs \ No newline at end of file diff --git a/src/redist/targets/Versions.targets b/src/redist/targets/Versions.targets index d1565ad71..862b56369 100644 --- a/src/redist/targets/Versions.targets +++ b/src/redist/targets/Versions.targets @@ -4,7 +4,7 @@ 0 1 00 - preview9 + rc1 diff --git a/src/redist/targets/packaging/windows/clisdk/LCID/1046/bundle.wxl b/src/redist/targets/packaging/windows/clisdk/LCID/1046/bundle.wxl index 5960557c9..d5778532a 100644 --- a/src/redist/targets/packaging/windows/clisdk/LCID/1046/bundle.wxl +++ b/src/redist/targets/packaging/windows/clisdk/LCID/1046/bundle.wxl @@ -1,80 +1,80 @@ - - - Instalador do [WixBundleName] - [BUNDLEMONIKER] - Tem certeza de que deseja cancelar? - Versão anterior - Ajuda de Instalação - /install | /repair | /uninstall | /layout [\[]"directory"[\]] – instala, repara, desinstala - ou cria uma cópia local completa do pacote no diretório. '/install' é o padrão - -/passive | /quiet – exibe a interface do usuário mínima sem nenhum prompt ou não exibe nenhuma interface do usuário e - nenhum prompt. Por padrão, a interface do usuário e todos os prompts são exibidos. - -/norestart – suprime qualquer tentativa de reiniciar. Por padrão, a interface do usuário perguntará antes de reiniciar. -/log [\[]"log.txt"[\]] – registra em um arquivo específico. Por padrão, um arquivo de log é criado em %TEMP%. - &Fechar - &Concordo com os termos e condições da licença - &Opções - &Instalar - &Fechar - Progresso da Instalação - Processando: - Inicializando... - &Cancelar - Modificar Instalação - &Reparar - &Desinstalar - &Fechar - Reparação Concluída com Êxito - Desinstalação Concluída com Êxito - Instalação com Êxito - &Iniciar - É necessário reiniciar o computador para concluir a instalação do software. - &Reiniciar - &Fechar - Falha na Instalação - Falha na Instalação - Falha na Desinstalação - Falha na Reparação - Um ou mais problemas causaram falha na instalação. Corrija-os e tente instalar novamente. Para obter mais informações, consulte o <a href="#">arquivo de log</a>. - Você deve reiniciar seu computador para concluir a reversão do software. - &Reiniciar - &Fechar - Arquivos em Uso - Os aplicativos a seguir estão usando arquivos que precisam ser atualizados: - Feche os &aplicativos e tente reiniciá-los. - &Não feche os aplicativos. Será necessária uma reinicialização. - &OK - &Cancelar - A instalação foi bem-sucedida. - -O seguinte foi instalado em: '[DOTNETHOME]' - • SDK do .NET Core [DOTNETSDKVERSION] - • Tempo de Execução do .NET Core [DOTNETRUNTIMEVERSION] - • Tempo de Execução do ASP.NET Core [ASPNETCOREVERSION] - • Tempo de Execução da Área de Trabalho do Windows do .NET Core [WINFORMSANDWPFVERSION] - -Este produto coleta dados de uso - • Para obter mais informações e recusar, acesse https://aka.ms/dotnet-cli-telemetry - -Recursos - • Documentação do .NET Core: https://aka.ms/dotnet-docs - • Documentação do SDK: https://aka.ms/dotnet-sdk-docs - • Notas sobre a Versão: https://aka.ms/netcore3releasenotes - • Tutoriais: https://aka.ms/dotnet-tutorials - SDK do .NET Core - - O .NET Core é um software livre, multiplataforma e com suporte da Microsoft. Você pode usá-lo para criar seu próximo aplicativo, com C#, F# ou VB. Esperamos que você goste! - Saiba mais sobre o .NET Core - Recursos - <A HREF="https://aka.ms/dotnet-docs">Documentação Principal</A> - <A HREF="https://aka.ms/dotnet-cli-docs">Documentação do SDK</A> - <A HREF="https://aka.ms/dev-privacy">Política de Privacidade</A> - <A HREF="https://go.microsoft.com/fwlink/?LinkId=329770">Termos de licença da Biblioteca do .NET</A> - Nota de instalação - Um comando será executado durante o processo de instalação que melhorará a velocidade de restauração do projeto e habilitará o acesso offline. Isso levará até um minuto para ser concluído. - - Se você planeja usar o .NET Core 3.0 com o Visual Studio, o Visual Studio 2019 ou mais recente será necessário. <A HREF="https://go.microsoft.com/fwlink/?linkid=866799">Saiba mais</A>. - - + + + Instalador do [WixBundleName] + [BUNDLEMONIKER] + Tem certeza de que deseja cancelar? + Versão anterior + Ajuda de Instalação + /install | /repair | /uninstall | /layout [\[]"directory"[\]] – instala, repara, desinstala + ou cria uma cópia local completa do pacote no diretório. '/install' é o padrão + +/passive | /quiet – exibe a interface do usuário mínima sem nenhum prompt ou não exibe nenhuma interface do usuário e + nenhum prompt. Por padrão, a interface do usuário e todos os prompts são exibidos. + +/norestart – suprime qualquer tentativa de reiniciar. Por padrão, a interface do usuário perguntará antes de reiniciar. +/log [\[]"log.txt"[\]] – registra em um arquivo específico. Por padrão, um arquivo de log é criado em %TEMP%. + &Fechar + &Concordo com os termos e condições da licença + &Opções + &Instalar + &Fechar + Progresso da Instalação + Processando: + Inicializando... + &Cancelar + Modificar Instalação + &Reparar + &Desinstalar + &Fechar + Reparação Concluída com Êxito + Desinstalação Concluída com Êxito + Instalação com Êxito + &Iniciar + É necessário reiniciar o computador para concluir a instalação do software. + &Reiniciar + &Fechar + Falha na Instalação + Falha na Instalação + Falha na Desinstalação + Falha na Reparação + Um ou mais problemas causaram falha na instalação. Corrija-os e tente instalar novamente. Para obter mais informações, consulte o <a href="#">arquivo de log</a>. + Você deve reiniciar seu computador para concluir a reversão do software. + &Reiniciar + &Fechar + Arquivos em Uso + Os aplicativos a seguir estão usando arquivos que precisam ser atualizados: + Feche os &aplicativos e tente reiniciá-los. + &Não feche os aplicativos. Será necessária uma reinicialização. + &OK + &Cancelar + A instalação foi bem-sucedida. + +O seguinte foi instalado em: '[DOTNETHOME]' + • SDK do .NET Core [DOTNETSDKVERSION] + • Runtime do .NET Core [DOTNETRUNTIMEVERSION] + • Runtime do ASP.NET Core [ASPNETCOREVERSION] + • Runtime da Área de Trabalho do Windows do .NET Core [WINFORMSANDWPFVERSION] + +Este produto coleta dados de uso + • Para obter mais informações e recusar, acesse https://aka.ms/dotnet-cli-telemetry + +Recursos + • Documentação do .NET Core: https://aka.ms/dotnet-docs + • Documentação do SDK: https://aka.ms/dotnet-sdk-docs + • Notas sobre a Versão: https://aka.ms/netcore3releasenotes + • Tutoriais: https://aka.ms/dotnet-tutorials + SDK do .NET Core + + O .NET Core é um software livre, multiplataforma e com suporte da Microsoft. Você pode usá-lo para criar seu próximo aplicativo, com C#, F# ou VB. Esperamos que você goste! + Saiba mais sobre o .NET Core + Recursos + <A HREF="https://aka.ms/dotnet-docs">Documentação Principal</A> + <A HREF="https://aka.ms/dotnet-cli-docs">Documentação do SDK</A> + <A HREF="https://aka.ms/dev-privacy">Política de Privacidade</A> + <A HREF="https://go.microsoft.com/fwlink/?LinkId=329770">Termos de licença da Biblioteca do .NET</A> + Nota de instalação + Um comando será executado durante o processo de instalação que melhorará a velocidade de restauração do projeto e habilitará o acesso offline. Isso levará até um minuto para ser concluído. + + Se você planeja usar o .NET Core 3.0 com o Visual Studio, o Visual Studio 2019 ou mais recente será necessário. <A HREF="https://go.microsoft.com/fwlink/?linkid=866799">Saiba mais</A>. + + diff --git a/src/redist/targets/packaging/windows/clisdk/bundle.thm b/src/redist/targets/packaging/windows/clisdk/bundle.thm index 4df41b683..a0271d416 100644 --- a/src/redist/targets/packaging/windows/clisdk/bundle.thm +++ b/src/redist/targets/packaging/windows/clisdk/bundle.thm @@ -92,7 +92,7 @@ #(loc.FailureRepairHeader) #(loc.FailureHyperlinkLogText) - #(loc.FailureRestartText) + #(loc.FailureRestartText) diff --git a/test/SdkTests/SdkTests.csproj b/test/SdkTests/SdkTests.csproj new file mode 100644 index 000000000..2a1696f8c --- /dev/null +++ b/test/SdkTests/SdkTests.csproj @@ -0,0 +1,283 @@ + + + + false + false + Library + false + false + false + true + true + true + + + + + + $(MSBuildToolsPath)\Microsoft.CSharp.targets + + false + + false + $(CoreSdkTargetFramework) + + + + $(ArtifactsBinDir)redist\$(Configuration)\dotnet\ + $(ArtifactsBinDir)redist\$(Configuration)\dotnet-with-previous-runtimes\ + $([MSBuild]::NormalizePath($(ArtifactsTmpDir), 'dotnetSdkTests')) + + + + + + + + + + + + + + + true + + + + + + + + + Windows + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + + + $(DotnetToTestPath)%(RecursiveDir)%(Filename)%(Extension) + + + + + + + + + + $(DotnetToTestPath)shared\Microsoft.NETCore.App\$(RuntimeVersionToInstall) + + + powershell -NoLogo -NoProfile -ExecutionPolicy ByPass + $(InstallRuntimeCommand) "$(_DotNetRoot)dotnet-install.ps1" + $(InstallRuntimeCommand) -Version $(RuntimeVersionToInstall) + $(InstallRuntimeCommand) -InstallDir $(DotnetToTestPath) + $(InstallRuntimeCommand) -Runtime "dotnet" + $(InstallRuntimeCommand) -Architecture "$(Architecture)" + + + /bin/bash + $(InstallRuntimeCommand) "$(_DotNetRoot)dotnet-install.sh" + $(InstallRuntimeCommand) --version $(RuntimeVersionToInstall) + $(InstallRuntimeCommand) --install-dir "$(DotnetToTestPath)" + $(InstallRuntimeCommand) --runtime "dotnet" + $(InstallRuntimeCommand) --architecture "$(Architecture)" + + + + + + + + + + + + + $(TestExecutionDirectory)\NuGet.config + + + + + + + + + + + + ]]> + + + + + + + + + + + + + + ToolTestName=%(SdkTest.Identity) + + + + + + + + + testSdk$(ToolTestName) + Microsoft.NET.$(ToolTestName).Tests + $(ArtifactsTmpDir)$(ToolCommandName)\ + + + + + + + + + + + $(MicrosoftNETSdkPackageVersion) + https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json + + dotnet tool install --local $(ToolCommandName) + + $(InstallToolCommand) --version $(SdkTestPackageVersion) + $(InstallToolCommand) --add-source $(SdkTestPackageFeed) + + + + + + + + + + $(ArtifactsTestResultsDir)$(TestProjectName).xml + $(ArtifactsTestResultsDir)$(TestProjectName).html + $(ArtifactsLogDir)$(TestProjectName).log + + -noautoreporters -noRepoInference + $(TestArgs) -dotnetPath $(DotnetToTestPath)\dotnet + $(TestArgs) -testExecutionDirectory $(TestExecutionDirectory) + $(TestArgs) -testConfigFile "$(MSBuildThisFileDirectory)TestConfig.xml" + $(TestArgs) -xml "$(ResultsXmlPath)" + $(TestArgs) -html "$(ResultsHtmlPath)" $(TestRunnerAdditionalArguments) + $(TestArgs) > $(ResultsStdOutPath) 2>&1 + $(TestArgs) -testList SdkIntegrationTests + + + + + + $(TestArgs) -testConfigFile "$(MSBuildThisFileDirectory)TestsToSkipx86.xml" + + + + $(ToolRunPrefix)set MSBuildSDKsPath= && + $(ToolRunPrefix)set DOTNET_HOST_PATH= && + $(ToolRunPrefix)set DOTNET_INSTALLDIR= && + + + $(ToolRunPrefix)unset MSBuildSDKsPath && + $(ToolRunPrefix)unset DOTNET_HOST_PATH && + $(ToolRunPrefix)unset DOTNET_INSTALLDIR && + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/SdkTests/TestConfig.xml b/test/SdkTests/TestConfig.xml new file mode 100644 index 000000000..a7e2063cd --- /dev/null +++ b/test/SdkTests/TestConfig.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/SdkTests/TestsToSkipx86.xml b/test/SdkTests/TestsToSkipx86.xml new file mode 100644 index 000000000..c4cde72c5 --- /dev/null +++ b/test/SdkTests/TestsToSkipx86.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + +