sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Massive workflow problems

Open kfrancis opened this issue 3 years ago • 7 comments
trafficstars

Description

I've been working on migrating a Xamarin app to Maui, but I've also been curious about net7.0 so I installed VS2022 Preview (v17.4.0 Preview 2.1) and everything is bonkers on my system now.

In VS2022 (17.3.5) I created a new maui app and immediately have issues: czrb9_2022-09-28

Ok, so I should be able to do a dotnet workload restore right? No. xpyen_2022-09-28

Tizen isn't even a default here, why is this coming up?

Why am I getting this back and forth? First I get that xcode 14 isn't supported, use Xcodes.app (thanks @jamesmontemagno) to switch and then I'm getting that it doesn't want that version now. wwioh_2022-09-28

I select net6.0 when creating the project, ran dotnet new globaljson and it populates with 7.0.100-rc.1.22431.12. Had to manually change it back.

dotnet --list-sdks 6.0.401 [C:\Program Files\dotnet\sdk] 7.0.100-rc.1.22431.12 [C:\Program Files\dotnet\sdk]

Steps to Reproduce

  1. Install VS 2022 17.3.5
  2. Open VS2022, Create Maui project1, build, run
  3. Install VS 2022 Preview 17.4.0 Preview 2.1
  4. Open VS 2022 Preview, Create Maui project2, build, run
  5. Open VS2022 project1, try and build? try and run?

Link to public reproduction project repository

https://

Version with bug

Unknown/Other (please specify)

Last version that worked well

6.0.408

Affected platforms

iOS, Windows, Other (Tizen, Linux, etc. not supported by Microsoft directly)

Affected platform versions

ios 15

Did you find any workaround?

No, I'm uninstalling VS2022 Preview in the hopes that this mess is reverted. Next would be formatting my machine.

Relevant log output

No response

kfrancis avatar Sep 28 '22 16:09 kfrancis

Thanks for the issue report @kfrancis! 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 avatar Sep 28 '22 18:09 ghost

@joeloff FYI

PureWeen avatar Sep 28 '22 18:09 PureWeen

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

Can you share the results from dotnet --info and can you share the contents of the program files\dotnet\sdk-manifests folder (zip up the folder so we can take a look at the contents)?

marcpopMSFT avatar Sep 28 '22 21:09 marcpopMSFT

@marcpopMSFT

dotnet --info

C:\Program Files\Microsoft Visual Studio\2022\Enterprise>dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.401
 Commit:    0906eae6f8

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22000
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.401\

global.json file:
  Not found

Host:
  Version:      6.0.9
  Architecture: x64
  Commit:       163a63591c

.NET SDKs installed:
  6.0.401 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

program files\dotnet\sdk-manifests

ey7vy_2022-09-29

kfrancis avatar Sep 29 '22 13:09 kfrancis

I have the same issue. See also here Issue#28217

AsPaper avatar Sep 30 '22 07:09 AsPaper

In the initial screenshot from VS in the original description, were you using the 7.0 SDK within 17.3 or had you already set up a global.json to point at 6.0.400?

marcpopMSFT avatar Sep 30 '22 18:09 marcpopMSFT

In the initial screenshot from VS in the original description, were you using the 7.0 SDK within 17.3 or had you already set up a global.json to point at 6.0.400?

Had setup globaljson to point at 6.0.400, correct.

kfrancis avatar Oct 07 '22 15:10 kfrancis

This will be fix in the GA release of .NET 7. For workarounds in the meantime, see https://github.com/dotnet/sdk/issues/28217

dsplaisted avatar Oct 24 '22 20:10 dsplaisted