Reputation: 1
I have a blazor web assembly app and it references a few nuget packages that exist as Artifacts in our Azure Devops source control. This web app gets published as an azure static web app. Everything works great if the blazor app only has package references to nuget.org but if I add a package from our devops artifacts, the app will not publish. Here is the error:
/working_dir/src/BlazorUI/BlazorUI.csproj : error NU1101: Unable to find package Ovcri.AspNetCore.Authentication. No packages exist with this id in source(s): nuget.org /working_dir/src/BlazorUI/BlazorUI.csproj : error NU1101: Unable to find package Ovcri.AspNetCore.Authentication.Extensions. No packages exist with this id in source(s): nuget.org Failed to restore /working_dir/src/BlazorUI/BlazorUI.csproj (in 2.66 sec). | 1 | Please build your app locally before publishing. | https://docs.microsoft.com/en-us/azure/app-service/configure-language-dotnetcore?pivots=platform-linux
I would think that something in the .yml file could instruct the build process to look in our devops as well as nuget.org but I have not been able to find anything.
I've read this but could not find a solution: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=example
Also Googled, of course.
Upvotes: 0
Views: 445
Reputation: 68
DeVops
follow the below steps.GitHub
and you can also use AzureDevops
as below.Blazer
as the Build Presets as below and click on Review+Create as below.@Swimburger
for the repository.review+Create
it will deploy a Static web app an after run a CI/CD pipeline as below.Upvotes: 0