nuget-package

Visual Studio taking long time to build and load solution because of Nugget

余生长醉 提交于 2019-12-13 05:14:39
问题 Visual studio is taking a longer time to open the solution ,to build and I just have 6 projects.When I examined the fiddler I see below requests to nugget and notice that once this request is complete the visual studio becomes responsive. Can any body suggest the below: what are these requests for nugget? Is VS becoming slow because of this as I am suspecting? How to stop these requests? 回答1: These requests can be a result of your solution enabling automatically restoring NuGet packages, You

Google calendar api download Nuget Error

穿精又带淫゛_ 提交于 2019-12-13 04:41:40
问题 Hi I'm trying to download the Google Calendar v3 API from nuget. When I type "Install-Package Google.Apis.Calendar.v3 -Pre" into the Package Manager console in Visual Studio 2010, I get this error: PM> Install-Package Google.Apis.Calendar.v3 -Pre Install-Package : A parameter cannot be found that matches parameter name 'Pre'. At line:1 char:45 + Install-Package Google.Apis.Calendar.v3 -Pre <<<< + CategoryInfo : InvalidArgument: (:) [Install-Package], ParameterBindingException +

Error caused when trying to Installing package in .Net

百般思念 提交于 2019-12-13 03:54:11
问题 When I tried to install the Package in Visual Studio 2017 using below command, PM> Install-Package Microsoft.IdentityModel -Version 7.0.0 I got the following error Attempting to gather dependency information for package 'Microsoft.IdentityModel.7.0.0' with respect to project 'Portal.System', targeting '.NETFramework,Version=v4.0' Install-Package : An error occurred while retrieving package metadata for 'Microsoft.IdentityModel.7.0.0' from source 'nuget.org'. error occurred while sending the

(System.IO.FileNotFoundException) .Net core Web API cannot find child dependency (Dependencies of dependency) when added DLL by “Add Reference”

蹲街弑〆低调 提交于 2019-12-13 03:45:11
问题 I am getting System.IO.FileNotFoundException in my .Net Core Web API. So I've set up the below project to demonstrate the problem. I created a.Net Standard library named DemoLibrary and added QRCoder dependency via NuGet. Disclaimer: Reason for choosing the QRCoder is that the Web API doesn't use it by default. I don't use it in my project. In fact, I'm getting this exception for EntityFrameworkCore. I created a new .Net Core Web API DemoWebAPI which has no other dependencies. Then added the

How to figure out the information of dependency packages for missing frameworks

时间秒杀一切 提交于 2019-12-13 02:47:23
问题 Today I was adding a NuGet package DocumentFormat.OpenXml into my C# project. My C# project is targeting.Net framework v4.5. In NuGet package manager it shows the information of dependencies of the NuGet package as shown below: There is no information corresponding to .Net Framework v4.5. So, how do I interpret this information if my project is targeting .Net Framework v4.5. Is this information missing or there is any default assumption in such cases may be no dependencies . Can someone share

Automapper missing type map configuration or unsupported mapping

时光总嘲笑我的痴心妄想 提交于 2019-12-12 21:25:04
问题 I have 2 class : Class 1 : (Domain) public class Book { public ObjectId Id { get; set; } public String ISBN { get; set; } public String Title { get; set; } public String Publisher { get; set; } public int? PageCount { get; set; } public Author Author { get; set; } } Class 2 : (Repository) public class Book { public ObjectId Id { get; set; } public String ISBN { get; set; } public String Title { get; set; } public String Publisher { get; set; } [BsonIgnoreIfNull] public int? PageCount { get;

install-package : Dependency loop detected for package 'Microsoft.Data.Sqlite'

与世无争的帅哥 提交于 2019-12-12 19:19:42
问题 I am trying to install Microsoft.Data.Sqlite with PowerShell's cmdLet install-package : $pkg = find-package -name Microsoft.Data.Sqlite install-package -force -scope currentUser -verbose $pkg The second command takes a long time and then responds with install-package : Dependency loop detected for package 'Microsoft.Data.Sqlite'. At line:1 char:1 + install-package -force -scope currentUser -verbose $pkg + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : Deadlock

Cannot open include file: 'cpprest/http_client.h'

你。 提交于 2019-12-12 15:43:07
问题 I'm trying to run c++ windows application using casablanca 'c++ rest sdk' for REST requests. I've created new 'CLR Empty Project' (visual studio 2012) and added new item - 'Windows Form'. added some code and was able to see a form when running the projects. now, I have installed the c++ rest sdk using NuGet, as the instructions tell. it all went successfully. the problem is that in order to use the 'c++ rest sdk' I've added these: #include <cpprest/http_client.h> #include <cpprest/filestream

NuGet References within same solution

戏子无情 提交于 2019-12-12 12:26:43
问题 This may have already been asked before (if so provide links please). I am working on a 'core' solution set for my company. We have several different projects in this solution set. Each project when built is turned into a NuGet Package to be used in our other solutions projects. What I am finding is I want to reference some of the projects in the 'core solution' with other projects in the 'core solution' via NuGet (verse using project references) so that when pushed to our NuGet, all packages

Showing NuGet package item added using .targets file in Solution Explorer

醉酒当歌 提交于 2019-12-12 10:44:33
问题 Based on this question: Prevent duplicating files in NuGet content and contentFiles folders, I'm using build/Project.targets file of my NuGet package to add some files to project build output. Like: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Content Include="$(MSBuildThisFileDirectory)..\tools\test.jpg"> <Link>test.jpg</Link> <Visible>false</Visible> <CopyToOutputDirectory