I just upgraded a Blazor Web Assembly solution to .Net 5 and I'm getting the following error in an Azure Pipeline in the NuGet Command step:
error MSB4236: The SDK 'Microsoft.NET.Sdk.BlazorWebAssembly' specified could not be found
The azure-pipelines.yml file is the following:
trigger:
- develop
pool:
vmImage: 'windows-latest'
variables:
solution: 'SomeProjectNew.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: 'SomeProjectNew.sln'
msbuildArgs: '/p:DeployOnBuild=true /p:PublishProfile=SomeProject-demo /p:Password=$(SomeProjectDemoWebDeployPassword)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
Am I missing some step in the pipeline configuration to make this work with .Net 5 and the new blazor sdk?