Questions tagged [packagereference]
100 questions
0
votes
1 answer
PackageReference Microsoft.AspNetCore.App change of manner from core 2.2 to core 3 & 3.1
In the past, in my project I create a blank solution and add
in class library, so I was able to refer this class library project to an others and use what I needed. For…

Hamed Naghdi
- 35
- 7
0
votes
4 answers
how to resolve "error MSB3188: Assembly ... must be strong signed in order to be marked as a prerequisite."
I've seen several questions on this board which are similar, but I think several problems can cause this message, and my particular problem may not have been among them, and certainly my solution appears much simpler and more effective than any of…

lewis
- 1,116
- 1
- 12
- 28
0
votes
1 answer
Adding static files to Nuget package that gets published to wwwroot on webproject publish event
I'm trying to build a NuGet package with static files (js, CSS and images) that can be referenced as a package in a web project. I want these files to get published to the publish directory when publish even is triggered.
My .nuspec config is…

Bevin
- 173
- 2
- 15
0
votes
0 answers
How to install a NuGet package based on major version
We use myget.org as NuGet server and here I upload a package named e.g. mypackage with two different major versions e.g. 6.0.1 and 7.0.1, and there can be several versions for each major version but I always want to have the latest version though…

JerryA
- 153
- 1
- 8
0
votes
0 answers
Migrate to PackageReference Missing Nuget Build Failure
I have a Xamarin Forms Project - the Android project targets API 28 (Pie) and uses packages.config for the nuget references. All of the packages have a targetFramework="monoandroid90". The project compiles and runs correctly.
I want to migrate to…

markpirvine
- 1,485
- 1
- 23
- 54
0
votes
1 answer
How can I programmatically find a DLL restored by Nuget?
After a user does a dotnet add package , the DLL will be installed to a path similar to:
C:\Users\USER\.nuget\packages\SomePackage\1.0.2\lib\netstandard2.0\SomePackage.dll
How can I find this path programmatically? I see there's some…

Will
- 2,086
- 23
- 30
0
votes
1 answer
Automatically pick the latest version of private assembly packagereference Nuget
I know this has been asked before but there isn't any answer or nuget isn't listening well to my packagereference.
I have a private nuget repo, with 2 assemblies:

Elger Mensonides
- 6,930
- 6
- 46
- 69
0
votes
1 answer
Unified primary reference
I am facing issue getting my project to build on server. The same project build fine locally on my machine (VS 2017 15.8). Teamcity sever also has the same msbuild tool version installed. It doesn't have VS 2017.
Project build on server results in…

Amiya Aloke
- 1
- 1
-1
votes
0 answers
How to define class libraries for an ASP.NET Core application?
I have an ASP.NET MVC application that I am converting to ASP.NET Core.
It is composed of many base libraries and one library that provides the top-level Program.cs entry point.
I cannot set Microsoft.NET.Sdk.Web as the project type for my base…

Hanno Bunjes
- 41
- 8
-1
votes
2 answers
Tooling or method to re-add 'content' to projects utilizing "Package References"
A project (original VS format) is converted to use Package References. Great.
Project References "don't support content". Questionable choice, although not debated here.
Some used packages contain "content" and cannot or will not be updated to…

user2864740
- 60,010
- 15
- 145
- 220