31
votes
Accepted
What are PackageReferences and how will they help optimise the way I deal with NuGet packages?
PackageReference is a new way to allow NuGet to manage your projects references. Before this, adding a NuGet package would update both the packages.config file and the .csproj file for your solution. ...
20
votes
Accepted
Could not load file or assembly 'System.Buffers' or one of its dependencies
Certain functionality in Sitecore 9.2 requires an explicit dependency on System.Buffers 4.5.0. However some dependencies for Sitecore 9.2 have a transitive (indirect) dependency on System.Buffers 4.4....
16
votes
When should I use the "NoReferences" NuGet packages?
In 2019 the answer is little bit different.
Sitecore will not release new NoReference Nuget packages. But you can get similar behavior by usage of -IgnoreDependencies setting:
Or by command line:
...
16
votes
Accepted
When should I use the "NoReferences" NuGet packages?
The package without NoReferences suffix brings dependent Nugets containing additional DLLs. These DLLs are defined as dependencies in Nuget definition. If you check the dependencies list you will ...
14
votes
Accepted
Where can I find the NuGet packages for Sitecore 9.1?
Sitecore did have 9.1 in its own feed to more closely match the way Sitecore does builds internally. https://sitecore.myget.org/gallery/sc-platform-9-1
But Sitecore heard feedback from the community ...
11
votes
Accepted
Which Sitecore Nuget Package should I use?
At the very least, you'll want the Sitecore.Kernel assembly which contains the core API and most of the utilty classes you will use when working with Sitecore:
Sitecore.Kernel
For working with MVC, ...
10
votes
Update web.config configuration in a Sitecore module
If you are making Web.config changes (which would be required for adding an HTTP handler), I would say that this is not something that should be just "installed" on your servers. You want to maintain ...
10
votes
Cannot access sitecore.myget.org
Please see the following information from the KB article:
Sitecore is moving its public feed from sitecore.myget.org to a different feed provider on November 30, 2023.
The URL of the new public feed ...
Community wiki
9
votes
How can I get a specific dll file to be added to .update package on TDS project build?
On the TDS Project, you need to
Right click on the project and click on Properties.
In the General Tab, you will see Assemblies.
Select Include from the dropdown.
Add the name of the assembly you ...
9
votes
When should I use the "NoReferences" NuGet packages?
The no-references packages allow you to add only the packages you need to your project.
Consider a package that preferences Sitecore.Kernel. The package may need Sitecore.Kernel, but not any of the ...
6
votes
Accepted
Why are my Sitecore Nuget packages installed in the wrong folder?
After trying almost everything and searching half the internet, I found the solution here: https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders
And ...
6
votes
Accepted
Update web.config configuration in a Sitecore module
Ignoring my NuGet approach above; the only obvious option you have available is a lesser-known feature in Sitecore packages called "poststep". Essentially you can instruct Sitecore to execute some ...
6
votes
Accepted
NU1603 build error on Sitecore.Nexus when using Sitecore Nuget
This is a known/discussed nuget issue -- what seems like information is output by nuget as a build error. As of 9.1 the published nuget packages are those used internally by Sitecore ("release what ...
6
votes
NuGet Package reference issue: Sitecore.Serilog.Framework.Logging
This is a known issue with restoring NuGet packages:
https://github.com/dotnet/cli/issues/3199
Currently, there seem to be at least two ways to "fix" it (kind of) that work with varying success ...
6
votes
Accepted
Where can I find the NuGet package(s) for MongoDB required by Sitecore 8.1 (update 3)
The package was renamed on nuget, what you want is the mongocsharpdriver package. You can get 1.10.0.62 by using:
Install-Package mongocsharpdriver -Version 1.10.0
That package contains boths ...
6
votes
Accepted
NuGet Restore not Working When Building Sitecore Images
I've faced the same issue weeks ago and I fixed it by adding a google DNS (8.8.8.8) on my docker settings as on the print screen below, try to do the same.
5
votes
Accepted
Dependency issue in 8.1u3 NuGet package
Change your build target from 4.5 to 4.5.2 in your project properties.
The MS dependencies will not be compatible with 4.5 since that is now unsupported. So it can't find a dependency that matches ...
3
votes
NU1603 build error on Sitecore.Nexus when using Sitecore Nuget
This warning can be ignored. The official and released version of Sitecore.Nexus.Licensing for Sitecore 9.1.0 is version 2.0.5.
3
votes
Why are my Sitecore Nuget packages installed in the wrong folder?
It happened to me once and I fixed it by clearing nuget cache as Gatogordo
But for some reason it doesn't work anymore even when I clear cache manually.
I got tired of it and wrote a script. It ...
3
votes
Accepted
NuGet Package reference issue: Sitecore.Serilog.Framework.Logging
So the answer was to remove this NuGet packaged manually by editing the project.json file. Apparently this package is not needed by the solution so removing it was safe. There must be an issue with ...
3
votes
Accepted
how to upgrade the sitecore packages from 9.2 to 9.3 using nuget
Firstly you need to add NuGet feed for Sitecore 9.3
Install-Package Sitecore -Version 9.3.0 -Source https://sitecore.myget.org/F/sc-packages/api/v3/index.json
Then you need to go Manage Nuget ...
3
votes
Creating nuget package with sitecore items, dll and config
There are different approaches you can use but at a basic level you need somewhere for your site files to go (config/admin pages/css/js etc) and then also somewhere for your dlls to go and an nuspec ...
3
votes
Accepted
What is the purpose of Sitecore.Assemblies.Platform nuget package?
If you want to use Helix Publishing Pipeline which is allows Helix solutions to be published as a single unit, with content from modules (like views and config patches) being automatically included. ...
3
votes
Sitecore MyGet repository access issue
I have contacted to the Sitecore about the same. As per Sitecore response over support ticket:
We want to inform you that we are currently experiencing technical difficulties with our MyGet (https://...
2
votes
Which Sitecore Nuget Package should I use?
There are few different types of NuGet packages available with Sitecore public NuGet. One type is, with all the references, which is the one you have mention. Other type is Individual dll Nuget ...
2
votes
When should I use the "NoReferences" NuGet packages?
To ensure you have complete control of the references you use in your solution I would argue you should always use the .NoReferences packages.
There is a good overview of the package source feed and ...
2
votes
Determining NuGet packages to include to resolve Usings
Finding Matching DLLs
There is no documentation, and unfortunately it's sometimes an educated guess which DLL contains the code you need to reference.
Since you know the Class/Namespace you are ...
2
votes
Update web.config configuration in a Sitecore module
Instead of including it directly, you can include it as a Post Installation Step as well.
2
votes
Update web.config configuration in a Sitecore module
There is a way to do this. Has nothing to do with Sitecore though; but NuGet.
The snippet you posted; you can place this into a file called web.config.transform, to have it added to the existing web....
2
votes
Accepted
Sitecore Publishing Service nuget packages
Not all modules are available (yet) in the Sitecore Nuget feed. SXA for example is not there yet, and it seems like the Publishing service is also (still) missing.
For the moment, you'll need to ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
nuget × 52visual-studio × 5
sitecore-commerce × 4
helix × 4
packages × 3
docker × 3
sitecore-client × 2
tds × 2
dependency-management × 2
azure × 1
sitecore-api × 1
configuration × 1
publishing × 1
glass-mapper × 1
upgrade × 1
installation × 1
mongodb × 1
unicorn × 1
deployment × 1
commerce-engine × 1
publishing-service × 1
solution-architecture × 1
layout-service × 1
owin × 1
nvelocity × 1