I am running an azure pipeline my code is on C# .net and msbuild 15, I’m having some issues at moment to run the pipeline an error appear I think is related to the packages.
Here is the error.
Package 'Sitecore.Analytics.Model.NoReferences 9.0.180604' is not found in the following primary source(s): 'C:\Users\VssAdministrator.nuget\packages\nuget'. Please verify all your online package sources are available (OR) package id, version are specified correctly.
I checked and I can see the pack with the correct version of the package in the path.
Any idea how to solve ? do I need to setup something in the job to run this pipe line ?
Thanks in advance.
install Sitecore.Analytics.Model.NoReferences -Version 9.0.180604
checked my packages, disabled central package manager
By Default SiteCore will not include NoReference packages, As the default packages will come with the required dependency and DLL’s installed. So you can directly add the SiteCore Packages from this official link.
But as you are using external packages, You can refer this blog Create one
nuget.config
File in your Project or Solution with the Path to your packages.I have added this URL in my nuget package manager:-
Added
Sitecore.Analytics.Aggregation.NoReferences
I have sent this Project in my Azure DevOps repository and then built it by adding one nuget.config file in my Repo:-
My
nuget.config
file:-My Azure DevOps yaml code:-
Output:-
Make sure the package that you created is in correct path or else, And you can also run below pipeline with your feed:-