Skip to content

Overbuilding in roslyn - Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.csproj packed twice with different global properties #4121

@ericstj

Description

@ericstj
/__w/1/s/.dotnet/sdk/11.0.100-alpha.1.25618.104/NuGet.Build.Tasks.Pack.targets(222,5): error : The process cannot access the file '/__w/1/s/src/roslyn/artifacts/packages/Release/Shipping/Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.5.3.0-ci.nupkg' because it is being used by another process. [/__w/1/s/src/roslyn/src/VisualStudio/IntegrationTest/Harness/SourceGenerator/Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.csproj]

https://dev.azure.com/dnceng-public/public/public%20Team/_build/results?buildId=1247590&view=logs&j=879e79ff-d5e4-564a-9322-bee9d0a651ca&s=3db6ced3-d863-5467-c33c-f0020ba6b4c0&t=ff1d5a7f-5035-532c-d1a9-0c1a0debbf81&l=1718

Binlog shows root cause:
Image

Here's the diff of global properties
Image

The path to the one specifying TargetFramework as global property is from Microsoft.VisualStudio.Extensibility.Testing.Xunit.IntegrationTests.csproj.

The one without the TargetFramework is from the SLNX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions