Skip first run experience locally and on azure pipelines.

- This would cause our functional tests to time out and occasionally crash due to dotnet first run experience sentinels being locked.

aspnet/AspNetCore-Internal#1859
This commit is contained in:
N. Taylor Mullen 2019-02-28 15:01:52 -08:00
Родитель eff7b22f1c
Коммит 2668a0e8a9
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -3,6 +3,8 @@ variables:
value: true
- name: _TeamName
value: AspNetCore
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: true
resources:
containers:

Просмотреть файл

@ -41,6 +41,10 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
{
processStartInfo.FileName = DotNetMuxer.MuxerPathOrDefault();
processStartInfo.Arguments = $"msbuild {arguments}";
// Suppresses the 'Welcome to .NET Core!' output that times out tests and causes locked file issues.
// When using dotnet we're not guarunteed to run in an environment where the dotnet.exe has had its first run experience already invoked.
processStartInfo.EnvironmentVariables["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "true";
}
var processResult = await RunProcessCoreAsync(processStartInfo, timeout);