How to include config file in nuget package? [duplicate]
I have a class library package: ClassLib.Main which is a simple extension method for DI that will register something in the container.ClassLib.Main has a dependency on another class library ->...
View ArticleInstall a Nuget package in Visual Studio Code
How can I install a Nuget Package in Visual Studio Code? I know in Visual Studio, we can do this through the Nuget Package Manager console, but how do I do it in VS Code?
View ArticleCompile specific files only when NuGet package is referenced
In .csproj files one can specify that specific files should not be compiled when a defined condition is met. For example the following code would exclude (thus not compile) SomeFileA, B and C if the...
View Articlehow to include alpha or beta nuget package but keeps getting the latest nuget...
Internally we publish a nuget package and other teams consume it. We have a product that always uses the latest nuget version by doing this:<ItemGroup><PackageReference...
View ArticleNuget package version resolution with different versions
I'm using a Nuget package that itself references a previous version of System.Reactive (specifically 4.3.2). I am not the maintainer and cannot change that, but would still like to use the package....
View ArticlePrevent duplicating files in NuGet content and contentFiles folders
My NuGet package needs to deliver some rather large files to build output directory.In an old NuGet model, such files have to be stored in content folder of the .nupkg. While in a new model introduced...
View ArticlePackage 'dotnet-sonarscanner 5.0.4' has a package type 'DotnetTool' that is...
There is a total of 6 projects in a solution. dotnet-sonarscanner package is only working in 4 of them.I am getting the following error that this package is not supported by the project...
View ArticleHow to exclude all content files?
With NuGet 4.6.2, how to exclude all content files when creating the package from a project file using PackageReference?I run this command as postbuid event :$(SolutionDir)\.nuget\nuget pack...
View ArticleAdding a NuGet file AND its folder as Links
I have a NuGet package that should be able to be used in both the non-sdk and the new SDK projects (Pacakge.config and PackageReference)In the PacakgeReference projects, everything works perfectly and...
View ArticleAdding a .NET Core NuGet to a .NETFramework v4.7.2 Solution
Is this possible? I get the errorYou are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2' but the package does not contain any assembly references or content...
View ArticlePain-free local development while also referencing NuGet packages
I am attempting to publish and consume versioned NuGet packages of class libraries while avoiding headaches for local development. Here is a sample Visual Studio solution layout:| Libraries | LibraryA...
View ArticleNuget offline packages with dependencies ubuntu
I need to download nuget packages from ubuntu to Windows, for offline download, which means all dependencies for a package should be download as well.To use nuget:sudo apt-get install mono-completewget...
View ArticleUsing Microsoft.Windows.SDK.Contracts with .NETCore 3.1 [closed]
Having troubles using the Windows Runtime APIs in my desktop app. I have the package installed, but my project can't seem to find it. It seems like it is not being added to the projects references, but...
View ArticleHow to modify file under .zip file at git Repository
I have one git repository where I have to modify one file under that zip folder.I'm looking a way to modify file over repository only. I know below one options:download zip file and make changes and...
View ArticleHow to create a NuGet package of a folder in C#
In my current project we have a testdata.zip folder in git repository which will have dummy data to test our test cases in the form of folder see below image.I have modified one file under data1...
View ArticleNuget Error: Unexpected character encountered while parsing value:
Getting error while running command in VS 2019 Package manager consoleCommand Used: nuget install runtime.win-x64.microsoft.netcore.app -Source https://api.nuget.org/v3/index.jsonPM> nuget install...
View ArticleHow to create nuget package of .zip file
I have a .zip file which contains 3 directory(folder) inside this.Now I want to create a nuget package for this .zip file so that I can use this into my git repo.I know basic way to create nuget...
View ArticleHow to push 11mb .zip file into devops Repo
I'm working on a git repo where we have 11mb .zip file which has 4 folder and rar file packages under that. Now I have made some changes into xml file which is one of the folder in Repo.While pushing...
View ArticleWhy I Could not add Identity to project
I have problem when I am try to add Identity to my project. Somehow I get error messageSo far I when I go to NuGet Packages and check for updates there is no any updates for my projects. Since I use...
View ArticlePackage nuget not installed correctly
I installed a package with Nuget on VisualStudio, but in the Packages of my project, this message appears in the extension I installed. What should I do to make it work properly?The extension is:...
View Article