Skip to content

[WebToolsE2E][Aspire] Update existing aspire 8.0 P1 project to 8.0 P3, F5 will encounter an error: "Inner Exception 1: DirectoryNotFoundException". #2012

@v-reinawang

Description

@v-reinawang

REGRESSION INFO: Repro on Aspire 8.0.0-preview.2.23619.3

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.10.0 Preview 1.0 [34530.244.main]
  3. Install 8.0.200 RTM SDK
  4. Install Aspire Preview 3 latest build 8.0.0-preview.3.24080.1
  5. Apply NuGet Feeds

REPRO STEPS

  1. On Aspire template version 8.0.0-preview.1.23557.2, Open VS, create a new project > ASP.NET Core Web App (Razor Pages) > .NET 8.0 > check 'Enlist in .NET Aspire orchestration' > Create. Or you can open existing aspire 8.0 P1 project.
  2. Update Aspire template version to latest 8.0.0-preview.3.24078.5
  3. Open the project you just created, build solution and will encounter this bug [WebToolsE2E][Aspire] Open an existing aspire 8.0 P1 project and build the solution, there is an error: The type or namespace name 'Projects' could not be found (are you missing a using directive or an assembly reference?). #1944
  4. Update 'Aspire.Hosting' version to 8.0.0-preview.3.24080.1
  5. Build solution and F5

ACTUAL
F5 will encounter an error.
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred. (C:\Users\v-reinawang.nuget\packages\microsoft.fluentui.aspnetcore.components\4.0.0-preview.2\staticwebassets)
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Aspire.Hosting.DistributedApplication.Run()
at Program.

$(String[] args) in D:\Users\v-reinawang\Desktop\WebApplication1\WebApplication1.AppHost\Program.cs:line 5

This exception was originally thrown at this call stack:
[External Code]

Inner Exception 1:
DirectoryNotFoundException: C:\Users\v-reinawang.nuget\packages\microsoft.fluentui.aspnetcore.components\4.0.0-preview.2\staticwebassets\

image

EXPECTED
The project can run successfully.

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions