DevTeam / Pure.DI

Pure DI for .NET
MIT License
506 stars 22 forks source link

DIE999: An unhandled error has occurred. Collection was modified. (Visual Studio) #31

Closed Yves-Be closed 1 year ago

Yves-Be commented 1 year ago

Hi, I'm trying to build the Pure.DI.Example project in Visual Studio 2022, but I'm getting the following error when the code generation runs:

Generator....................... DIE999: An unhandled error has occurred. Collection was modified; enumeration operation may not execute.

I've tested several versions (2.0.7, 2.0.10, and 2.0.11-beta2), but they all seem to have the same issue. A dotnet build does seem to work, so it might be related to Visual Studio.

NikolayPianikov commented 1 year ago

@Yves-Be thanks for the information

NikolayPianikov commented 1 year ago

Could you reproduce this from the command line?

dotnet build-server shutdown
dotnet restore
dotnet build
NikolayPianikov commented 1 year ago

After that, please try again from Visual Studio

Yves-Be commented 1 year ago

The dotnet build works, but building it again in Visual Studio still has the issue

NikolayPianikov commented 1 year ago

Fixed in 2.0.12

NikolayPianikov commented 1 year ago

@Yves-Be thx

Yves-Be commented 1 year ago

Thank you for the speedy fix