-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
The SDK 'Microsoft.NET.Sdk.BlazorWebAssembly' specified could not be found. #29700
Comments
@sroy2020 thanks for contacting us. That seems like an issue with the installation on your build machine. I would suggest you repair the installation or try downloading and using the 5.1.102 SDK binaries and use that directly. For that:
Where dotnet folder is the path to where you unzipped the dotnet binaries. Then create a new blazor webassembly application and build it. If it works, it means that there's some issue in your installation, so I would suggest reinstalling the SDK |
Hi, I downloaded and installed the binaries using the zip and then followed the procedure. Unfortunately, I get the same error. Do you have any other recommendations? Thanks in advance
|
There's a couple of SDK issues for this error code: dotnet/sdk#10229, dotnet/msbuild#2532. Can you look at the solutions posted in these issues to see if it helps? |
Hi, I can't believe it. Using the info from dotnet/sdk#10229. I found out that the env. var. MSBuildSDKsPath was set to a previous SDK. I updated it to "C:\Program Files\dotnet\sdk\5.0.102\Sdks" and now "dotnet build" is fine. Thanks to all |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
Although seemingly resolved on Windows, I am getting this same original bug on Mac. Checking the $PATH, I get:
The project builds properly if built in Visual Studio, however not using the command line. My specific error is:
and yet the path to the SDK is: |
Describe the bug
I can't build using a build pipeline on an on-premise DevOps Server. So I decided to create a small project and compile manually on the same server. Unfortunately, I have the same error the build pipeline is reporting. The build fails with the following error
"C:\Users\SRoy\z\qwerty\qwerty.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.BlazorWebAssembly' specified could not be found."
To Reproduce
I created a small Blazor WASM using the command "dotnet new blazorwasm -o qwerty". Then run "dotnet build" inside the qwerty folder. The build fails with the error above.
Exceptions (if any)
The SDK 'Microsoft.NET.Sdk.BlazorWebAssembly' specified could not be found."
Further technical details
qwerty.csproj contains:
global.json in qwerty folder contains:
I really don't have any clue what could be wrong. Doing the very same on my workstation is fine.
Thanks in advance
Stéphane Roy
The text was updated successfully, but these errors were encountered: