aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Added copy parameters to enable parallel build

Open dashkodo opened this issue 2 years ago • 1 comments
trafficstars

PR Title Added parameters to Copy task that is executed for setting up correct dependency environment in the tests.

PR Description When enabling multiple msbuild nodes it could fail due to locking "xxx.deps.json" files We have faced with this issue using latest version of microsoft.aspnetcore.mvc.testing nuget package C:\ZZZZ\nuget\microsoft.aspnetcore.mvc.testing\7.0.1\build\net7.0\Microsoft.AspNetCore.Mvc.Testing.targets(68, 5): error MSB3027: Unable to copy file "D:\XXXX\bin\Release\YYYY.deps.json" to "bin\Release\YYYY.deps.json". The process cannot access the file 'bin\Release\YYYY.deps.json' because it is being used by another process.

Addresses https://github.com/dotnet/aspnetcore/issues/33757

dashkodo avatar Dec 27 '22 18:12 dashkodo

Thanks for your PR, @dashkodo. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

ghost avatar Dec 27 '22 18:12 ghost

@captainsafia, @mitchdenny Could we do anything to speed up review by dotnet/aspnet-blazor-eng? This issue stops us from .NET 6.0 -> 7.0 migration.

vuvarov-cantaloupe avatar Jan 20 '23 01:01 vuvarov-cantaloupe

@vuvarov-cantaloupe actually I'm not sure why we are waiting for the Blazor team's input here since this is a change to the MVC code test projects.

mitchdenny avatar Jan 20 '23 06:01 mitchdenny

@vuvarov-cantaloupe actually I'm not sure why we are waiting for the Blazor team's input here since this is a change to the MVC code test projects.

Yep, we can go ahead and merge this. I lapsed and forgot to click the green button when I last reviewed.

Sidenote: the process for backporting this to 6.0 and 7.0 is a little more involved. Amongst other things, we'll want to make sure that it's worth backporting (number of upvotes on the issue, impact and existence of workarounds, etc).

captainsafia avatar Jan 20 '23 07:01 captainsafia

Thank you for the quick response!

vuvarov-cantaloupe avatar Jan 20 '23 13:01 vuvarov-cantaloupe

Hi @vuvarov-cantaloupe. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

ghost avatar Jan 20 '23 13:01 ghost