↧
Collection of Nuget Packages - Install In A Group
Is there a way to create a list of nuget packages that you commonly use, in my case Serilog and then the additional extensions for that.Is there a way to be able to install all the packages in one go...
View ArticleSystem.Diagnostics.TraceSource not sending data to Application Insights
I have application insights set up in my project, which works fine, it sends data to Azure without having any issue, now I am trying to get some trace logs into telemetry sent to azure using...
View ArticleHow to use 2 different package versions in a .net web site project
I have a web application project like this:<Project Sdk="Microsoft.NET.Sdk.Web"><PropertyGroup><TargetFramework>net472</TargetFramework>It is currently deployed on a Windows...
View ArticleHow to use hangfire in .net core with mongodb?
I want to use Hangfire for background jobs in registration form process,But I am unable to find Startup.cs file code for Hangfire.mongo.
View ArticleHow to fix monogame nuget packages not loading?
So I tried making a new MonoGame project and the nuget packages don't appear to be loading.[![Dependencies][1]][1]Whenever I try to use the MonoGame namespaces (eg: Microsoft.Xna.Framework) it gives me...
View ArticlePackage is not found in the following primary source
I have a build pipeline set up to create Nuget packages and publish them to a feed in artifacts.I was able to use the feed successfully.However when I ran the pipeline again, causing the packages to...
View ArticleDownloading reference-only NuGet packages using the dotnet CLI on macOS, in a...
I'm a beginner to C#, working on macOS at the CLI. (I do not have access to IDEs for everyday development; I can use one occasionally for a one-off command, but that's it.)I'm attempting to add the...
View ArticleIs there a way to check if a nuget package is already on a ProGet Repo?
So, I've been working on an azure pipeline that is supposed to download a NuGet package and then upload it to a ProGet feet. But it should only upload the package if it doesn't yet exist on the feed to...
View ArticleCreate NuGet package that when installed copies content to $(OutputPath)...
I am trying to get a content file that is included with my NuGet package to be copied to the $(OutputPath) (in my case bin\Debug\netcoreapp3.1 where all the DLLs end up) of a target C# project when the...
View Articleerror: NU1100: Unable to resolve 'MicrosoftOfficeCore (>= 15.0.0)' for 'net5.0'
In Terminal of Visual Studio Code, when I try to run:dotnet add package MicrosoftOfficeCore --version 15.0.0I get the following error on Visual Studio Code terminalerror: NU1100: Unable to resolve...
View ArticleNuGet: remote server returned an Error(403) Forbidden
Whenever i attempt to install a package i get this errorremote server returned an Error(403) ForbiddenI can use other commands, such as get-package -ListAvailable, and discover whether there are any...
View ArticleFix typo in Nuget Release Notes?
Is it possible to simply fix a typo in my Nuget Package release notes w/o uploading an entirely new version?I fixed the typo in VS, re-built the solution, and tried to re-upload it to NuGet, but I am...
View ArticleDependencies of nuget package are not copied to output folder
Visual Studio 2019 16.10.0.Net 5I've made a nuget package for company internal use.In this package, i references Microsoft.Extensions.Hosting.WindowsServices which references many other packages:When i...
View ArticleHow can I using one feed with different package in Nuget?
all I am new to Azure Artifacts.example I feed name is Project01 and I have two package live under feeds Project01. Is that possible ?
View ArticleTransitive runtime dependencies are discarded when packing project, causing...
Project A (.NET Standard 2.0) has a method that uses TestServer, so it has a reference to Microsoft.AspNetCore.TestHost. It is built into a NuGet package.Project B (.NET Standard 2.0) has a reference...
View ArticleLoading Assemblies from NuGet Packages
Sometimes in my PowerShell scripts, I need access to a specific DLL, using Add-Type -AssemblyName. However, the DLLs I need aren't always on the machine or in the GAC. For instance, I might want a...
View ArticleNuGet package targets - how to copy files to subfolder of target dir on build?
I'm trying to add two text files to my nuget package so that when the user of the package builds the project, one file is copied to the root of the build directory, but another file is copied to a...
View ArticlePackage uses root namespace that is one of my main class names
I'm using IronPython for my project. The setup is following:Project.Main - MyProject.Python - IronPython packageProject.Main has a class called Community that is one of the main classes. It is used...
View ArticleHow do i copy nuget files to bin/release?
I want to create a nuget pack just have some files included into the bin/release folder, it's not files that would be referenced to so it's a simple transport mechanism i need for these files. In which...
View Articledotnet CLI “error: There are no versions available for the package...
I've added my private source of packages that hosted on gitlab by this commanddotnet nuget add sourceits done successfully and added to my list of sources, then I've pushed my packages on it, the...
View Article