microsoft / microsoft/aspire

[AspireE2E] Fail to create .NET MAUI for Aspire Service Defaults project with "error NU1015: The following PackageReference item(s) do not have a version specified: Microsoft.Maui.Core".

Open
#14,443 2 comments 0 reactions 0 assignees View on GitHub
area-templates
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

**REGRESSION INFO:** Also repro on Aspire.ProjectTemplates 13.2

**INSTALL STEPS**
1. Clean machine: Windows11 23h2 x64
1. Install SDK 10.0.103
1. Install Aspire.ProjectTemplate:
`dotnet new install Aspire.ProjectTemplates@13.1.0 --force`
1. install the MAUI workload:
`dotnet workload install maui`

**REPRO STEPS**
1. Open CMD, create an .NET MAUI for Aspire Service Defaults project using following commands:
```
dotnet new maui-aspire-servicedefaults -o aspire1
```

**ACTUAL**
Fail to create project with "error NU1015: The following PackageReference item(s) do not have a version specified: Microsoft.Maui.Core".

Image

**Expect**
The project can created successfully without any errors.

**Note**:
1. If I open the .csproj file and add `true` to the tag, the project can restore successfully.
Image

2. Other Maui template projects (such as .NET MAUI App or .NET MAUI Class Library) include `true` by default.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.