-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.The issue was created by a issue mover bot. The author may not be the actual author.Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Description
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work]
After some Balzor Web App restarts during debug, VS it isn't able start project anymore with a build error:
Severity Code Description Project File Line Suppression State
Error (active) MSB4018 The "ApplyCompressionNegotiation" task failed unexpectedly.
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() CertificatesCreator C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.Compression.targets 247
The only way to restore it is to close VS, delete .vs folder and restart.
Original Comments
Feedback Bot on 5/28/2025, 09:44 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Metadata
Metadata
Assignees
Labels
Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.The issue was created by a issue mover bot. The author may not be the actual author.Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components