12,026 questions
0
votes
2
answers
64
views
C# project with a package reference to a nuget with an exe assembly
I know that in the early times of .NET Framework, you could build an assembly into EXE and then use that "EXE assembly" as a dependency of another .NET Framework assembly which, too, could ...
-3
votes
0
answers
45
views
Dotnet 10 - ZXing.Net.Maui 0.6.0 - Xamarin.AndroidX.Tracing dependency conflict breaks Android build
After upgrading to ZXing.Net.Maui version 0.6.0, my .NET MAUI Android application fails to build with a dependency conflict error.
Error Message
error NU1107: Version conflict detected for Xamarin....
0
votes
0
answers
76
views
DevOps build errors referencing old package version no longer used
My site has two website projects. One of them references Microsoft.CodeDom.Providers.DotNetCompilerPlatform.
We have recently upgraded this from 3.6.0 to 4.1.0 as part of a wider upgrade project.
The ...
0
votes
0
answers
62
views
Nuget package "GDAL" - Unable to load DLL 'gdal_wrap' when in an addin
I have a "console" application where I installed the Nuget package "GDAL" (and also GDAL.Native).
Besides the exe file, this application also generates a dll that can be loaded as ...
0
votes
0
answers
92
views
Native DLL not found in output directory when using NuGet package in Visual Studio / C# / .NET Core project
I have created a NuGet package containing a .NET Core library for Tesseract OCR, which I then added to my C# project via the NuGet Package Manager in Visual Studio.
After building the solution, a ...
1
vote
1
answer
115
views
Hierarchical Directory.Packages.props with GlobalPackageReference doesn't resolve for tests
I have the following project structure (the full repo can be found at https://github.com/asarkar/functional-csharp-buonanno)
root
├── Directory.Packages.props
├── src
│ └── Proj1
│ └── Proj1....
1
vote
1
answer
51
views
Unable to create MSBuild API's Project object when custom SDK needs to be downloaded from nuget.org
I have an SDK style project using MSBuild.SDK.SystemWeb/4.0.104 SDK. It builds fine, all works OK.
Now I have a tool which wants to analyze the project by first creating the Microsoft.Build.Evaluation....
1
vote
0
answers
50
views
Copying DLLs from transitive nuget dependency that uses non-standard folder layout
So I have a package that I'm generating in C#. This package depends on another nuget package (that I don't own), and is meant for C++, so the folder layout is alien.
I'm currently handling this by ...
0
votes
0
answers
46
views
Using Nuget SDK inside IIS Project - Access Denied Error
I'm working on an ASP.NET Core project, where I have to grab information and packages from a Nuget feed. Everything works like a charm locally, but when I deploy the site and try to access the nuget ...
1
vote
1
answer
1k
views
Cannot install NuGetProvider trough Install-PackageProvider [closed]
does anyone encounter a similar issue when getting the NuGetProvider trough Install-PackageProvider? I'm running this command on a azure pipeline:
Install-PackageProvider -Name NuGet -Force -Verbose
...
1
vote
1
answer
133
views
Nuget restores of Microsoft packages are taking extremely long to install [closed]
We've been having problems with nuget restores of Microsoft packages on our build server taking an extremely long time. As an example, Microsoft.Extensions.Configuration took 3 minutes to get "...
2
votes
0
answers
110
views
MSBuild on macOS can't find NuGet DLLs due to Windows-style paths created during restore
I'm working on a .NET 8.0 solution on macOS using the .NET 8.0 CLI and Rider. My project uses <PackageReference> for dependencies like LiteDB and TiktokenSharp.
After running dotnet restore, the ...
0
votes
0
answers
85
views
Install-Package: "Unable to resolve package reference ''." even though the .nupkg is found in a registered package source
After installing powershell on Linux using Microsoft's provided .rpm files, I am able to register a local package source for offline installation (called "local_pkgs"), and I can run Find-...
0
votes
1
answer
113
views
Central Package Management not working as expected for transitive packages
I have projects in my solution that have the following package reference:
<PackageReference Include="System.Text.Json" />
My Directory.Packages.props contains:
<PackageVersion ...
0
votes
0
answers
105
views
Command "nuget push" to private BaGetter server uploads a 0-byte package instead of actual content
I'm experiencing a weird issue with both of these commands:
nuget.exe push -Source <url> -ApiKey <key> <package-file>
dotnet nuget push -s <url> -k <key> <package-file&...
1
vote
0
answers
91
views
When adding nuget packages, why do dependencies also get referenced in the parent project?
I have a project that I'm sharing on nuget.
However, this project itself contains references to more nuget packages, which I've added as dependencies in the nuspec.
<metadata>
<version&...
1
vote
1
answer
130
views
Visual Studio insists downloading source files from GIT Repo for local Dev-builds in local NuGet-feed
Setup
We have internal NuGet packages consumed in other solutions, that we would like to package and debug locally in those other solutions, before we push both the code changes to Git and NuGet ...
2
votes
0
answers
193
views
Cannot load SDKResolver when opening a solution in SQL Server Management Studio 21
I'm using the following products loaded onto Windows 11 Pro: Visual Studio 2022 Developer, SQL Server 2022, SQL Server Management Studio 21.
I have created a WPF application in VS using .NET 8. When I ...
0
votes
0
answers
102
views
Error on Build machine - error NU1301: Unable to load the service index for source 401 (Unauthorized)
Our build machine has just started to get the following error when attempting a nuget restore on a c# solution that uses a specific nuget feed (the only project using this feed):
error NU1301: Unable ...
2
votes
1
answer
264
views
How to get NuGet package references from a csproj file that has multiple target frameworks
I am trying to build a tool to help me parse through a large number of .NET project files.
The one that I currently have is a C# project that attempts to model the .csproj file.
I am using System.Xml....
0
votes
0
answers
142
views
I tried to install the windows WDK in Visual Studio 2022, having problems
I tried to install the windows WDK in Visual Studio 2022, following instructions for the NuGet, but Visual Studio doesn't show up with NuGet Packages at all in the NuGet package manager. Could someone ...
0
votes
0
answers
19
views
How can I create an empty/dummy/reference AnyCPU DLL (re: lib folder) from x86 and x64 specific DLLs for a NuGet package?
I'm trying to create a NuGet package from precompiled .NET Framework DLLs. However, the DLLs are provided for x86 and x64 but not AnyCPU.
If I understand correctly, I need an AnyCPU DLL for compile-...
0
votes
1
answer
76
views
How to find the version of a NuGet package that supports a specified .NET Framework version
Lets assume my project based on .NET Framework 4.0 and requires the NuGet package GuardClauses.
Currently GuardClauses' latest version is 5.0.0, which supports .NET Framework 4.6.1 and higher. So ...
1
vote
0
answers
141
views
NU1301 error: Unable to load the service index for source — Connection reset by peer
I'm trying to build an ASP.NET Core MVC application cloned from GitHub on my Windows 11 machine using WSL and PowerShell. But whenever I run dotnet restore or try to build, I get this error:
Error ...
0
votes
2
answers
117
views
Solution for System.ValueTuple FileLoadException
I have an .NET 4.8 console app A, which references System.ValueTuple 4.5.0 via Nuget.
From what I have seen, this should resolve to assembly version 4.0.3.0.
Next I have my own lib L1, which throws ...