Skip to content

[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

@v-sherryfan

Description

@v-sherryfan

REGRESSION INFO: Not 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 [34528.15.main]
  3. Install .NET SDK 8.0.200
  4. Install Aspire Preview 3 latest build 8.0.0-preview.3.24078.5
  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) > give a name 'RazorWithAspire' > .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 existing Aspire 8.0 P1 project 'RazorWithAspire'
  4. Build solution

ACTUAL
Open existing Aspire 8.0 P1 project and build solution
image

The type or namespace name 'Projects' could not be found (are you missing a using directive or an assembly reference?)
image

EXPECTED
If you manually update 'Aspire.Hosting' to the latest 8.0.0-preview.3.24078.5, the error will disappear.
image

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions