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

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

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