Skip to content

CI builds frequently fail with MSB3021: Access to the path xxx.dll is denied #9190

Discussion options

You must be logged in to vote

Setting the MSBUILDALWAYSRETRY environment variable (with any value) would make MSBuild retry the copy after the access-denied error, but I don't know whether those retries would succeed. See also #9169.

internal const string AlwaysRetryEnvVar = "MSBUILDALWAYSRETRY";
/// <summary>
/// Force the copy to retry even when it hits ERROR_ACCESS_DENIED -- normally we wouldn't retry in this case since
/// normally there's no point, but occasionally things get into a bad state temporarily, and retrying does actually
/// succeed. So keeping around a secret e…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
8 replies
@RobSwDev
Comment options

@RobSwDev
Comment options

@RobSwDev
Comment options

@RobSwDev
Comment options

@RobSwDev
Comment options

Answer selected by RobSwDev
Comment options

You must be logged in to vote
4 replies
@KalleOlaviNiemitalo
Comment options

@gowindu123
Comment options

@gowindu123
Comment options

@KalleOlaviNiemitalo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants