295 questions
3
votes
1
answer
92
views
How to use a different nuget source for debug and release configurations?
How to use a different nuget sources/feeds for Debug configuration and Release configuration?
USE CASE / CONTEXT
A company publishes Debug and Release binaries for the same source code to ...
4
votes
1
answer
781
views
How to mark NuGet packages on Azure DevOps feed as deprecated to use nuget search or dotnet list package --deprecated?
In Azure DevOps Builds, checks for deprecated and vulnerable nuget packages work great using:
dotnet list "HappySolution.sln" package --deprecated --source https://api.nuget.org/v3/index....
0
votes
0
answers
68
views
How can I automatically increment the version of my local NuGet (Baget) package in my .csproj file
We use local NuGet (BaGet) to store our custom packages. We assign a new version number for each update we make. I am sharing code snipped from my .csproj file in the below:
<PropertyGroup>
...
0
votes
0
answers
225
views
How to correct GitHub token permissions in an action attempting to push to a GitHub NuGet store?
I have the following step in a shared workflow (lives in a repo within my org, not where it's called from):
- name: Publish and push image
run: |
dotnet pack ${{ inputs.csproj_path }}...
2
votes
2
answers
3k
views
Nuget restore from github package manager giving 403
We have a private set of nuget packages in GitHub. Until recently, I was able to restore packages from this repository and view them in the package manager. Now, I'm getting 403 errors:
Retrying '...
0
votes
1
answer
3k
views
Nuget packages & Dotnet publish taking forever
Anybody is familiar with Nuget Packages in IIS server?
I'm stuck with a serious issue from 3 days.
I tried installing and pushing .nupkg file I have to nuget.org by making source as my local server by ...
1
vote
1
answer
534
views
Finding missing nuget packages in local repository
I have a local nuget repository (Nuget Server). I need to upload packages from Nuget.Org to my local repository for offline building.
How can I list all packages missing for some solution? I need it ...
0
votes
1
answer
747
views
How to push nuget package to an online server location
I have just created a .Net class library which I need to be converted to a nuget package. I can create a local path for the nuget and push it there. However, I need other members of my team to be able ...
0
votes
0
answers
106
views
Unable to see newer Nuget packages. The old ones are still there
I have a Nuget package manager on our local server.
The restore process of the pipeline in Azure Dev Ops attempts to fetch the packages, however it is unable to see the latest ones.
We had a major DNS/...
0
votes
1
answer
471
views
Adding NuGet server from Azure App Service(NuGet.Server) with AD Authentication results 401 unauthorized in VS2019 proffesional
I have created a nuget server project.
nuget/hosting-packages/nuget-server
and published it as an Azure App Service. So far, everything has worked fine. I added the server to Visual Studio and pushed ...
2
votes
1
answer
2k
views
dotnet CLI “error: There are no versions available for the package 'myCustomPackage'.”
I've added my private source of packages that hosted on gitlab by this command
dotnet nuget add source
its done successfully and added to my list of sources, then I've pushed my packages on it, the ...
12
votes
1
answer
993
views
How to mark a NuGet package as deprecated in a local repository?
I´ve seen that there is a way to mark packages as deprecated on nuget.org.
Unfortunally I don't push my packages to nuget.org but to an internal file repository.
Is there a way to mark a local package ...
1
vote
2
answers
3k
views
"No packages found" when having Azure Artifact as package source
Due to the usage of Babel, that require us to host ourself the package manager on a private repository, we are using Azure Devop as a source of our packages.
But now when we look for any package that ...
0
votes
1
answer
92
views
Nuget Sitefinity Repository down?
Is http://nuget.sitefinity.com/nuget working for you guys as a Nuget package source? We are getting the following error:
This has been happening since January 19th 3 PM GMT.
2
votes
1
answer
4k
views
NuGet private server returns 502 (Bad Gateway) when pushing new package
I deployed new private NuGet server (NuGet.Server.3.4.1) and set up API key in web.config.
Then I created first nuget package from my .net core class library project.
But when I try to run following ...
3
votes
2
answers
4k
views
Nuget packages with both debug and release
In our work we have one team that develops libraries and other teams that develop projects using those libraries.
The libraries team has much more experience than the projects one.
We created this ...
2
votes
1
answer
1k
views
Nuget local feed slow search
I have setup a local Nuget folder \\servername\packages and configured Visual Studio to use it as source instead of https://api.nuget.org/v3/index.json. It works fine. However, search for a package (...
0
votes
0
answers
310
views
How to create a NuGet ApiKey with command
So I need a way to create a NuGet ApiKey from the console/command. Basically the idea is to automate a project's nuget package deploy.
Ideal steps:
User passes username/password to Jenkins(or ...
1
vote
0
answers
514
views
Specifying Nuget Package Platform Target
I want to create a Nuget Package for a C# library that targets .NET Framework 4.0 and higher.
If I put my library in a directory named Net40, will this cause issues for projects that target say 4.1 ...
0
votes
2
answers
453
views
Non-proprietary Nuget Packages Showing in Nuget Server/Artifacts Feed
We are using Azure Devops to publish a private nuget server. Currently we have only published 5 of our own nuget packages, however a subset of third-party nuget packages are also showing. I do not ...
0
votes
1
answer
1k
views
how to call Package Manager Console and execute Find-Package in visual studio extension
I'm developing a visual studio extension(vsix).
Now, I want to get a nuget package latest version. I only found one way by using Package Manager Console, dotnet CLI still not support search command.
...
2
votes
2
answers
9k
views
Own Nuget Server - The V2 feed at '' returned an unexpected status code '404 Not Found'
I created my own Nuget Server following the documentation and I got it, but I cannot access the packages from Visual Studio 2019 Community Nuget Package Manager.
So, when I do it through a browser I ...
1
vote
0
answers
143
views
How a .NET project add a C++/CLI library from NuGet?
My project structure is:
The main project is .NET framework 4.8, and the library develops by C++/CLI.
I can add the file reference directly, it can work now.
For some reason, we don't want to ...
0
votes
1
answer
3k
views
NuGet Packager with version using build number, adding -beta
My goal is to deploy NuGet packages (to in-house Nuget server) that auto-increment the version based on date and last Rev, and include a -beta tag.
I am using VSTS to build and package using cake, ...
1
vote
1
answer
2k
views
Keeping Nuget packages updated in many projects/solutions
If using the same nuget package(s) over multiple solutions, how do I keep them up to date without having to open up every solution and update packages when a new version is released?
Folder structure ...