Skip to content

Intermittent file access errors to "obj\Release\net45\xxx.AssemblyInfo.cs" file #3066

@hrumhurum

Description

@hrumhurum

From time to time we get the following error on build agents:

C:\Program Files\dotnet\sdk\2.1.505\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.GenerateAssemblyInfo.targets(134,5): error MSB3713: The file "obj\Release\net45\xxx.AssemblyInfo.cs" could not be created. The process cannot access the file '...\obj\Release\net45\xxx.AssemblyInfo.cs' because it is being used by another process.

Sometimes it occurs on developer machines as well.

The classic MSBuild targets solved problems like that by waiting for access during 10 seconds or so. It would be nice to see a fix for that in .NET SDK as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions