Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Creating a new solution from VS with "place solution and project in the same directory" makes an empty .sln #2390

Closed
lambdageek opened this issue Sep 3, 2021 · 1 comment
Labels
area-templates Project templates, Item Templates for Blazor and MAUI

Comments

@lambdageek
Copy link
Member

Description

Creating a new MAUI or MAUI Blazor app using "File | New Project..." in Visual Studio 2022 Preview 4 and checking the "place solution and project in the same directory" checkbox results in a .sln that does not link to the .csproj

Steps to Reproduce

  1. "File | New Project... " and select ".NET MAUI Blazor App" or ".NET MAUI App"
  2. Check the "Place solution and project in the same directory" checkbox, click Create.

Screen Shot 2021-09-03 at 14 55 22

  1. Empty Solution

Screen Shot 2021-09-03 at 14 56 49

bloom4.sln:


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31702.391
MinimumVisualStudioVersion = 10.0.40219.1
Global
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {286EF9B7-4D20-495F-8961-57B80DCE1647}
	EndGlobalSection
EndGlobal

Expected Behavior

A solution with a single project in it.

Actual Behavior

A solution with zero projects in it.

Basic Information

  • Version with issue: .NET 6 RC1 6.0.100-rc.1.21453.13 / Maui templates are microsoft.maui.templates.6.0.100-rc.1.1599.nupkg as far as I can tell

  • Last known good version: unknown

  • IDE: Version 17.0.0 Preview 4.0 [31702.391.main]

  • Platform Target Frameworks:

    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:

  • Nuget Packages:

  • Affected Devices:

Screenshots

Reproduction Link

Workaround

Right click on the solution, "Add | Existing Project..." and add the .csproj to it. All the files are there, the .csproj just isn't linked to the solution
Screen Shot 2021-09-03 at 14 59 51

@lambdageek lambdageek changed the title [Bug] Creating new solution from VS with "place solution and project in the same directory" make empty .sln [Bug] Creating new solution from VS with "place solution and project in the same directory" makes an empty .sln Sep 3, 2021
@lambdageek lambdageek changed the title [Bug] Creating new solution from VS with "place solution and project in the same directory" makes an empty .sln [Bug] Creating a new solution from VS with "place solution and project in the same directory" makes an empty .sln Sep 3, 2021
@PureWeen PureWeen added this to the 6.0.100-rc.2 milestone Sep 3, 2021
@Eilon Eilon added the area-templates Project templates, Item Templates for Blazor and MAUI label Sep 16, 2021
@Redth
Copy link
Member

Redth commented Sep 27, 2021

Fixed

@Redth Redth closed this as completed Sep 27, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-templates Project templates, Item Templates for Blazor and MAUI
Projects
None yet
Development

No branches or pull requests

4 participants