Questions tagged [packagereference]
100 questions
0
votes
0 answers
PackageReference not copying all files in lib folder to bin
I have csproj called MyBuilder.csproj using .net framework 4.8 referencing a package called "Me" like so:
When this package gets pulled in, it gets stored…

jsirr13
- 944
- 2
- 12
- 38
0
votes
0 answers
Publish CSPROJ without PackageReference dependencies
If you publish a CSPROJ that has a PackageReference to i.e. the Microsoft.Extensions.DependencyInjection NuGet package, then you will also get the DLLs for Microsoft.Extensions.DependencyInjection.Abstractions because the referenced package has a…

TheHvidsten
- 4,028
- 3
- 29
- 62
0
votes
0 answers
ProjectReference conflicts Transitive PackageReference
This question has been discussed on several topics here but I can't find a solution for my case.
I have a library project I'm working on. Let's call it LibraryProject.
To test and validate it during the development process, I have another project in…

M. Ozn
- 1,018
- 1
- 19
- 42
0
votes
0 answers
How to use custom nuget folder in .NET Framewrok with PackageReference?
there is a legacy .NET Framework solution with many projects.
CI pipeline (Gitlab) has several jobs:
Restores nugets to the specific folder and takes the folder as an artifact.
Uses the artifact nugets to build the solution
...
Uses the artifact…

Oblomingo
- 668
- 3
- 10
- 29
0
votes
1 answer
Exclude dependencies when installing a nuget package in Visual Studio using PackageReference
Is it possible to exclude a package's dependencies when it is included in a VS project via PackageReference? I would like to only include the contents of the compile/runtime assets.
In my project I need to add a package for it's functionality but…

Flack
- 5,727
- 14
- 69
- 104
0
votes
0 answers
content (e.g. images) in NuGet Package is ignored with PackageReference
I have added content (images and txt-files) to my NuGet-Packages. When I install the package to a Project which uses PackageReference (e.g. .NET7-ConsoleApp), the content is ignored. When I install the package to a project which uses packages.config…

BennoDual
- 5,865
- 15
- 67
- 153
0
votes
0 answers
What does the star mean in the `PackageReference` in C#?
What does the star mean in the PackageReference in C#?
E.g. here:
Does it mean that as soon as there is an upgrade in the least significant version of the MyApp.Misc.Utils, that update…

manymanymore
- 2,251
- 3
- 26
- 48
0
votes
0 answers
How to update package reference in project C# by Visual studio
I have a common source C# and this is inject in another project.
Now I have update this common source
But I don't know to update version in other source
How can I do this??
I want to update verion of common source that I have updated into another…

Frederic
- 1
0
votes
0 answers
NullArgumentException when eager-loading collection from web service after updating to use PackageReferences
The application I am working on has several projects, including an "Infrastructure" (.Net Standard) where the dbContext is defined, a WinForms project (.Net Framework), and a ASP.Net web project (.Net Framework). The web project is only used for Web…

NuclearProgrammer
- 806
- 1
- 9
- 19
0
votes
0 answers
Updating Nuget package does not respect the reference's path in project
I'm working with a C# .NET project that uses a Nuget package created by other project running in a CI circuit. The Nuget package, internally, has the "lib\net35" folder where the required assembly is located. So, in my project, I have something like…

Sebastian Garcia
- 333
- 1
- 3
- 6
0
votes
1 answer
Nuget package reference (WMPLib) not recognized in code
I try to add the WMPLib nuget package as a package reference to my project, but in the code the classes could not be found.
This is in my csproj file:
1.0.0
runtime; build;…

ffonz
- 1,304
- 1
- 11
- 29
0
votes
0 answers
Nuget Restore NU1701
A csproj is referencing fo-dicom nuget package, where fo-dicom depends on fo-dicom.Desktop package (targeting netFrameowork45).
Preforming nuget restore for the project generates a warning
NU1701: Package 'fo-dicom.Desktop 4.0.8.1' was restored…

Niraj Doshi
- 9
- 2
0
votes
2 answers
VS2019 MSI Installer error 2727 after migration from packages.config to PackageReference
I have a console application running on .NET Framework 4.7.1 in Visual Studio 2019 with a Microsoft Visual Studio Installer Project (MSI Installer).
After migrating from packages.config to PackageReference, the .msi installer returns the following…

eglease
- 2,445
- 11
- 18
- 28
0
votes
1 answer
VSIX - Include PackageReference output groups
Currently we reference another project in the following way in order to include it completely in the VSIX package.
{8da36305-5468-465a-bf37-d87936b776d2}
…

TWT
- 2,511
- 1
- 23
- 37
0
votes
1 answer
How to get csproj to add the reference file for a dll for a nuget package?
I'm able to add a dll and make sure it's in lib and ref folders so I can avoid the MSB3246, NU5128, and NU5131 warnings in a .nuspec file.
NewDll
…

On The Net Again
- 265
- 4
- 16