dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.2k stars 1.75k forks source link

Multi-Project App Template is not generating a solution file when used from CLI #21188

Open egvijayanand opened 7 months ago

egvijayanand commented 7 months ago

Description

.NET MAUI Multi-Project App Template is not generating a solution file when used from CLI

Since it's a multi-project, a solution file is necessary to link the projects.

This is occurring in .NET MAUI on .NET 9 Preview 2 (9.0.0-preview.2.10293). That particular version is not available in the Version with bug field. Have selected Unknown/Other.

Steps to Reproduce

dotnet new maui-multiproject -o MyApp

Link to public reproduction project repository

Default template itself is suffice, no authored code

Version with bug

Unknown/Other

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

All platforms

Did you find any workaround?

Manually add a solution file and link the platform projects and the shared class library. An unnecessary work.

Relevant log output

NA
mattleibow commented 5 months ago

This was fixed in https://github.com/dotnet/maui/pull/21282

Version 8.0.14

egvijayanand commented 5 months ago

This was fixed in #21282

It seems that this hasn't been addressed properly. The solution file has only one project though the solution is created with 5 projects (1 shared and 4 platform projects).

image

egvijayanand commented 5 months ago
dotnet new maui-multiproject -o MauiApp4