Skip to content

Doesn't compile with the new version of Visual Studio #63071

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:Version 17.14.7]
Hola! Actualice mi visual studio y mi código fuente dejo de compilar, tuve que devolver la version del visual studio, a continuación dejo mi error:

The "DefineStaticWebAssetEndpoints" task failed unexpectedly.

System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Last write time for '\Projects\Carpeta_Raiz\Proyecto.Blazor.Server\wwwroot\css\site.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__DisplayClass17_0`1. <ForWorker>b__1()

at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)

at System.Threading.Tasks.Task.<>c__DisplayClass176_0. <ExecuteSelfReplicating>b__0(Object <p0>)

--- End of inner exception stack trace ---

at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action`1 localFinally)

at System.Threading.Tasks.Parallel.For[TLocal](Int32 fromInclusive, Int32 toExclusive, Func1 localInit, Func4 body, Action`1 localFinally)

at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssetEndpoints.Execute()

at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()

at Microsoft.Build.BackEnd.TaskBuilder. <ExecuteInstantiatedTask>d__26.MoveNext()

---> (Inner Exception #0) System.InvalidOperationException: Last write time for 'Projects\Proyecto_Raiz\Proyecto.Blazor.Server\wwwroot\css\site.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__DisplayClass17_0`1. <ForWorker>b__1()

at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)

at System.Threading.Tasks.Task.<>c__DisplayClass176_0. <ExecuteSelfReplicating>b__0(Object <p0>)<---

---> (Inner Exception #1) System.InvalidOperationException: Last write time for 'C:\Projects\Proyecto_Raiz\Proyecto.Blazor.Server\wwwroot\images\SplashScreen.svg' 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__DisplayClass17_0`1. <ForWorker>b__1()

at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)

at System.Threading.Tasks.Task.<>c__DisplayClass176_0. <ExecuteSelfReplicating>b__0(Object <p0>)<---

---> (Inner Exception #2) System.InvalidOperationException: Last write time for 'C:\Projects\Proyecto_Raiz\Proyecto.Blazor.Server\wwwroot\favicon.ico' 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__DisplayClass17_0`1. <ForWorker>b__1()

at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)

at System.Threading.Tasks.Task.<>c__DisplayClass176_0. <ExecuteSelfReplicating>b__0(Object <p0>)<---


Original Comments

Feedback Bot on 7/7/2025, 08:48 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

No one assigned

    Labels

    Author: Migration Bot 🤖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.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions