T4 TransformOnBuild, how to ensure dependent assemblies are copied into...
I am trying to create a NuGet package that deploys some T4 .ttinclude files which in turn rely on a number of referenced assemblies. But I'm having issues in consuming projects when I try to enableThe...
View ArticleNuGet packages cache (non global)
I'm new to using NuGet and I'm trying to understand a few things..I know that there is a global cache that stores the packages under userHome/.nuget/packages/In addition there are a few different ways...
View ArticleCan a list of needed nugets be sorted not to crash when Package Manager is...
I am getting the latest version of a project from TFS. The nuget packages do not come through.The rebuild fails because of missing nuget package. When I download, add the right nuget one by one from...
View ArticleAzure pipeline generated NuGet packages will not install "seem empty"
NuGet Packages "seem Empty"I have a solution that creates two .dll files.JReyLibrary - some common functions and controls.JRTestLib - Testing helps.I was able to build NuGet Packages for both and...
View ArticleHow to copy specific folder from a Razor Class Library to the destination via...
I made a Razor class library project as following in .NET 5.0I want to make a NuGet package with the Areas folder inside itSo that whenever this package is installed, the whole folder with all its...
View ArticleNuGet Client SDK - Connecting to a private NuGet feed through code
I'm using a private NuGet feed through Azure DevOps.To see information about a public NuGet package from code, one simply has to follow the documentation here.In particular: ILogger logger =...
View ArticleNuget Package Resulting in csproj Elements That Prevent Build
I'm running into a problem building a Nuget package with Nuget Package Explorer.I created the package and uploaded it to Nuget.orgWhen I installed it in an application, 2 elements which were unknown to...
View ArticleBin DLL's version different from dll in Nuget package
There is a library build with .net framework 4.5, it serves as a NuGet package for other projects to reference.In the testing phase, using the project reference method, it can work normally. However,...
View ArticleMicrosoft.ApplicationInsights.AspNetCore - losing Exception/Trace data when...
As the title says, when I upgrade my Microsoft.ApplicationInsights.AspNetCore Nuget package from 2.14.0 to either 2.15.0 or 2.16.0, I lose all telemetry on Exceptions and Traces. Has anyone else...
View ArticleI am updating my nuget packages and they are not updating and keep giving error
When I am updating my nuget packages, I get an error. Help me with this error.ErrorSystem.NullReferenceException: Object reference not set to an instance of anobject.at...
View ArticlePackage .NET framework DLL and use it in .NET standard project
I have a vendor provided DLL which is based on .NET Framework. I do not have access to code and I only have the DLL. I have packaged this DLL into a nuget package and now I am trying to refer this into...
View ArticleNuget package output
I have a .net framework project, I am packaging it using OctoPack, this works fine. Now we want to build it without OctopAck. The output of .nupkg file is different from Octopack one when we use simple...
View ArticlePackage Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 5.0.0 is not...
I'm trying to install Nuget package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation on a .Net core 3.1 project and getting following error."Package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation...
View ArticleWhat is the idiomatic/recommended approach to actively developing and testing...
We're actively developing a library (NuGet package) alongside a console app. I have a local feed (folder) on my machine set up where I push my packages to, and later use it as a source to add packages...
View ArticleAdd dependencies of reference projects to NuGet package
I'm using dotnet pack command for creating a NuGet package for the following scenario:The projects structure:Project B|----> Project AProject A|----> SomePackageI want to create a single NuGet...
View ArticleWhy can't I use any of the functionality of my installed NuGet packages, when...
I'm new to ASP.net programming (not programming in general) and are following a course online.I have a big problem, that seems to be in Visual Studio, probably with the NuGet package manager.The...
View ArticleHow to create a nuget package from DLLs after obfuscating them
Hi I have a class Library project I built it DLLs and I apply obfuscation on the DLLs using a software, after that I got new obfuscated DLLs.so now my question is how can I create nuget package just...
View ArticleHow to include XML Documentation from Nuget Package in csproj build output
I have a nuget package that includes an XML documentation file.packages/MyPackage.1.0.0/lib/net472/MyPackage.xmlHowever when I build my project, I want to include this xml file in the output.So when...
View Articledotnet add package with source giving an unauthorize error 401 and 404 Not found
we are updating the nuget packages in dotnet application with dotnet add package "package name" from a private feed in Azure Devops.Recently we updated to .net 5.0.1( I am not sure if its related to...
View ArticleMsBuild cannot load NHibernate on TFS
Hi I have a set of MsTest tests that runs with NHibernate, SQLLite.I can succesfully load the assemblies from any DEV machine and run the tests.On TFS we have a drop folder where we put all the...
View Article