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

Visual Studio 2022 17.4 Preview 1, Maui projects with only 1 Target do not work #9303

Closed
pierrebrito opened this issue Aug 10, 2022 · 4 comments
Labels
partner/platform-tools Client Experiences Platform Tools s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working

Comments

@pierrebrito
Copy link

pierrebrito commented Aug 10, 2022

Description

After upgrading to Visual Studio 2022 17.4 Preview 1, Maui projects with only 1 Target do not work.

image

Steps to Reproduce

.csproj

<PropertyGroup>
	<TargetFrameworks>net6.0-android</TargetFrameworks>
	<OutputType>Exe</OutputType>
	<RootNamespace>MauiApp13</RootNamespace>
	<UseMaui>true</UseMaui>
	<SingleProject>true</SingleProject>
	<ImplicitUsings>enable</ImplicitUsings>

	<!-- Display name -->
	<ApplicationTitle>MauiApp13</ApplicationTitle>

	<!-- App Identifier -->
	<ApplicationId>com.companyname.mauiapp13</ApplicationId>
	<ApplicationIdGuid>3827a0ba-0bbe-4661-ab46-68547eee3c73</ApplicationIdGuid>

	<!-- Versions -->
	<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
	<ApplicationVersion>1</ApplicationVersion>

	<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">23.0</SupportedOSPlatformVersion>

</PropertyGroup>

Version with bug

6.0.486 (current)

@pierrebrito pierrebrito added the t/bug Something isn't working label Aug 10, 2022
@MagicAndre1981
Copy link
Contributor

remove the s, so only use TargetFramework. Does this work?

@pierrebrito
Copy link
Author

@MagicAndre1981 That was the first thing I tried.
Does not work ;(

@adegeo
Copy link

adegeo commented Aug 10, 2022

Have you tried setting the debug profile to the Android emulator instead of Windows? You can't target Android in the project file but then use Windows as the Visual Studio debug target.

@Redth Redth added partner/platform-tools Client Experiences Platform Tools s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue labels Aug 10, 2022
@ghost
Copy link

ghost commented Aug 10, 2022

Thanks for the issue report @pierrebrito! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the VS feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

This issue will be automatically closed in 3 days if there are no further comments.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
partner/platform-tools Client Experiences Platform Tools s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants