зеркало из https://github.com/dotnet/sdk.git
Only error for duplicate output dirs on CI builds
This commit is contained in:
Родитель
696d32f3b0
Коммит
685fc8eaef
|
@ -17,6 +17,8 @@
|
|||
<DisableImplicitPackageTargetFallback>true</DisableImplicitPackageTargetFallback>
|
||||
|
||||
<!-- <ArtifactsShippingSymbolsDir>$(ArtifactsDir)symbols\$(Configuration)\Shipping</ArtifactsShippingSymbolsDir> -->
|
||||
|
||||
<DefineConstants Condition="'$(ContinuousIntegrationBuild)' == 'true'">$(DefineConstants);CI_BUILD</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
|
||||
|
|
|
@ -140,11 +140,12 @@ namespace Microsoft.NET.TestFramework
|
|||
}
|
||||
|
||||
var directoryPath = Path.Combine(baseDirectory, directoryName.ToString());
|
||||
|
||||
#if CI_BUILD
|
||||
if (Directory.Exists(directoryPath))
|
||||
{
|
||||
throw new Exception($"Test dir {directoryPath} already exists");
|
||||
}
|
||||
#endif
|
||||
|
||||
return directoryPath;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче