-
Notifications
You must be signed in to change notification settings - Fork 1
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
Blazor Web App Template not found #19
Comments
Can you confirm which version of Visual Studio 2022 do you have? It needs to be 17.8.0 or later. |
This issue is stale because there has been no response to a request for more information for 7 days. |
Same |
@masteroleary what version of VS you're using? |
17.9.2 |
Microsoft Visual Studio Community 2022 Installed Version: Community ASP.NET and Web Tools 17.9.197.37128 Azure App Service Tools v3.0.0 17.9.197.37128 Azure Functions and Web Jobs Tools 17.9.197.37128 C# Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3 Extensibility Message Bus 1.4.39 (main@e8108eb) GitHub Copilot 1.156.0.0 (v1.156.0.0@82fafb995) GitHub Copilot Agent 1.156.0 Microsoft JVM Debugger 1.0 NuGet Package Manager 6.9.1 Razor (ASP.NET Core) 17.9.2.2412004+684740676513b3b208d5bd5b7f8786dab8d287b7 SQL Server Data Tools 17.9.51.1 TypeScript Tools 17.0.30103.2001 Visual Basic Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3 Visual F# Tools 17.9.0-beta.23614.3+a521e1cd420beb56c15faf6836184fadd2b7937a Visual Studio IntelliCode 2.2 VisualStudio.DeviceLog 1.0 VisualStudio.Mac 1.0 VSPackage Extension 1.0 Xamarin 17.9.0.138 (d17-9@60c2b9b) Xamarin Designer 17.9.3.0 (remotes/origin/d17-9@f174974f91) Xamarin.Android SDK 13.2.2.0 (d17-5/45b0e14) |
@masteroleary Ok, so your VS version is fine. Can you open a command prompt window and tell us what /cc @danroth27 |
$ dotnet --info Runtime Environment: .NET workloads installed: [wasm-tools-net6] [maui-windows] [wasm-tools] [maccatalyst] [android] [ios] Host: .NET SDKs installed: .NET runtimes installed: Other architectures found: Environment variables: global.json file: Learn more: Download .NET: dev@PARALLELSM2 E: |
@masteroleary thanks for the information so far. it seems you're running this on Parallels on a mac, correct? I'd also try the CLI version to see if there's a mismatch between what you're running on the terminal and VS. |
Yes, Parallels on Mac where.exe dotnet $ dotnet new blazor -o BlazorApp Processing post-creation actions... |
@masteroleary I checked with the team and they recommended you turn tracing on Open a developer command prompt and set the following environment variables Tracing will log how the template engine is resolving .NET templates, including those coming from optional workloads. |
[03-08-2024 01:52:15.45614] [Trace] SHAREDTRACING: Settings Manager -- global -- BEGIN: Settings Manager Configuration File |
VS is picking up the templates from Program Files\dotnet\x64. That is used by the x64 copy of dotnet on arm64 machines, and it's picking up older 7.0.9 templates from there. Are you running an x64 copy of Visual Studio on arm64 Windows? |
Yes, you are right! I deleted the x64 versions and restarted. Now the template appears in visual studio. Thank you @joeloff and @mairaw so much! |
Awesome, happy to help. |
Thanks @joeloff for taking us to the finish line! @Pawan1718 the original issue is from you and your case is probably different than @masteroleary. So please let us know if you can confirm which version of VS you're running. |
Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/blazor-tutorial/create
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Blazor Web App Template not found in Visual Studio 2022
The text was updated successfully, but these errors were encountered: