Some compilation errors since some updates from package: blazored.toast and blazorise.bootstrap5 #427
-
I am having some compilation errors on my local machine while using some specific NuGet packages This error shows up when I am using 2>Microsoft.NET.Sdk.StaticWebAssets.targets(727,5): Error MSB4018 : The "DefineStaticWebAssetEndpoints" task failed unexpectedly.
System.AggregateException: One or more errors occurred. (Last write time for 'C:\Users\User\.nuget\packages\blazored.toast\4.2.1\staticwebassets\Blazored.Toast.bundle.scp.css' is not defined.)
---> System.InvalidOperationException: Last write time for 'C:\Users\User\.nuget\packages\blazored.toast\4.2.1\staticwebassets\Blazored.Toast.bundle.scp.css' is not defined.
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.Validate()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.FromTaskItem(ITaskItem item)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssetEndpoints.ParallelWorker.Process(Int32 i, ParallelLoopState _)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssetEndpoints.<>c.<Execute>b__16_2(Int32 i, ParallelLoopState loop, ParallelWorker state)
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For[TLocal](Int32 fromInclusive, Int32 toExclusive, Func`1 localInit, Func`4 body, Action`1 localFinally)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssetEndpoints.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
2>------- Finished building project: LinkDotNet.Blog.Web. Succeeded: False. Errors: 1. Warnings: 0 This error shows up when I downgrade 1>Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(290,5): Error MSB4018 : The "DiscoverPrecompressedAssets" task failed unexpectedly.
System.InvalidOperationException: Last write time for 'C:\Users\User\.nuget\packages\blazorise\1.7.7\staticwebassets\io.js' is not defined.
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.Validate()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.FromTaskItem(ITaskItem item)
at System.Linq.Enumerable.ArraySelectIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
at System.Linq.Enumerable.ArraySelectIterator`2.ToArray()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.DiscoverPrecompressedAssets.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
1>------- Finished building project: LinkDotNet.Blog.Web. Succeeded: False. Errors: 1. Warnings: 0 I already tried some recommended steps of: Checking if the files exist in my folders of NuGet packages, they exist But running with codespaces of GitHub allows it to compile fine with the expected packages from |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That was an issue that happens if you use a Can you give me the output of PS: I will convert this into a discussion because I don't think it is a issue at the moment. |
Beta Was this translation helpful? Give feedback.
-
This is my
|
Beta Was this translation helpful? Give feedback.
That was an issue that happens if you use a
<=net10.0-preview.4
- using the latest preview should fix the issue.Given that our CI pipeline is green, that points towards a local issue.
Can you give me the output of
dotnet --info
?PS: I will convert this into a discussion because I don't think it is a issue at the moment.