nuget
nuget retrieving package metadata
It requires two steps (second is maybe optional, but I always like clean solution) In Explorer open folder where your project resides. Open packages.config using Notepad. Find and remove the line that mentions corrupted package name. Open folder where your solution resides. Open subfolder “packages”. Find folder with corrupted package and remove it. Note: If … Read more
What does the Microsoft.Bcl.Build NuGet package do?
From looking at Microsoft.Bcl.Build.targets, it has a bunch of project configuration targets, eg: EnsureBindingRedirects – Determine which references are opted in for binding redirects, and update the app.config with them BclBuildValidateNugetPackageReferences – This target validates that any Nuget packages installed in the current project also have their dependencies (transitive dependencies) installed in the current project. … Read more
What do Yellow Warning Triangles mean on Dependencies in Visual Studio 2017?
As trite as it sounds, try rebuilding then restarting VS – and get on with your day 🙂
Include ONLY .xml file of SPECIFIC nuget package in a different folder
You could use <package_name>.props file in nuget project ProjectXyz to copy such file into the project folder of ProjectAbc. You should use <package_id>.props. 1) First, in your ProjectXyz project, create a folder called build and then add a file called <package_id>.props, in your side, it is called ProjectXyz.props. 2) Add these in ProjectXyz.props file: <Project> … Read more
NuGet packages in Unity
Just thought I’d add this in case it helps anyone I used the Nuget for Unity asset (free) to import a package (websocketsharp) and it was really easy and painless. The references in VS worked immediately as well The package you’re trying to import naturally has to be compatible with Unity but that’s the same … Read more
Nuget package installed but references not resolved
Within the Package Manager Console run the following command: Update-Package -reinstall This will reinstall each nuget package within that project which should resolve any missing references. If you know you’re missing a specific reference: Update-Package -reinstall <Package-Name>
Visual Studio/C#: Nuget Unable to connect to remote server
Clearing HTTP_PROXY worked for me. Let me fix it myself Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you … Read more
This project references NuGet package(s) that are missing on this computer
In my case, I had to remove the following from the .csproj file: <Import Project=”$(SolutionDir)\.nuget\NuGet.targets” Condition=”Exists(‘$(SolutionDir)\.nuget\NuGet.targets’)” /> <Target Name=”EnsureNuGetPackageBuildImports” BeforeTargets=”PrepareForBuild”> <PropertyGroup> <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> </PropertyGroup> <Error Condition=”!Exists(‘$(SolutionDir)\.nuget\NuGet.targets’)” Text=”$([System.String]::Format(‘$(ErrorText)’, ‘$(SolutionDir)\.nuget\NuGet.targets’))” /> … Read more
Project reference VS NuGet
Project reference VS NuGet Project reference or NuGet is a very common problem in our development process, we need to choose which one to use based on our actual situation. For example, if the referenced project A is modified frequently during the development process, we recommend to use Project reference. Because if you use nuget, … Read more