I am working through IS quickstart and having trouble adding IdentityModel to the Client project. I installed the NuGet package through VS.Net and it seemed to be successful but after that, the assembly does not show from the reference list. What am I missing here? Do I need to browse the file system to find the dll? If so, where?
When you add the IdentityServer4 NuGet package, it has a dependency on IdentityModel. So it is already added and that's you don't see it.
You can see its dependencies here
And in Visual Studio if you drill down the Dependencies -> Packages -> IdentityServer4 node
Related
I have a click once application that we have been working on. The hosting server recently changed and a dependency on the Microsoft.ReportViewer.DataVisualization.dll version 11 is now missing from the GAC.
I didn't realize this was there in the first place. I would like to include this dependency in the application file and publishing, but I cannot seem to locate this as a NuGet pacakge.
I am not even sure this assembly is required as I don't see it being referenced anywhere - so my only guess is it is a transitive dependency.
Where is this assembly so I can include it with the application build.
I'm losing my mind here trying to install the Microsoft.Toolkit.Uwp NuGet package into a WPF app (need the toast notifications and possibly some more stuff from UWP), but I always get the following error, no matter which version of the toolkit I'm trying to install and no matter which .NET version I target:
Could not install package 'Microsoft.Toolkit.Uwp XXX'. You are trying to install this package into a project that targets '.NETFramework,Version=ZZZ', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
The weird thing is that Microsoft actually sends you to the Toolkit to do the exact thing I'm trying: get toast notifications from a WPF app, as can be seen here:
https://learn.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/send-local-toast-desktop
Excerpt from Microsoft's website
Tried downloading the NuGet package and install it from the local source, tried downloading the whole GitHub project, but to no avail. What am I doing wrong here, guys? I can't seem to figure it out.
P.S: I can't use UWP directly, because this will be an internal company app which needs to do lots of stuff not supported by UWP.
The documentation tells you to download the Notifications library. The Microsoft.Toolkit.Uwp package is not compatible with WPF but the Microsoft.Toolkit.Uwp.Notifications package is.
I am trying to develop an azure function that triggers off an insert/update in the collection. From the azure webjobs sdk documentation, my best bet is a CosmosDBTrigger function. However, I am getting a compilation error when I create a CosmosDBTrigger function using the Visual Studio "azure functions" extension. It looks like the vsix for CosmosDBTrigger does not automatically include the nuget package references for the CosmosDBTrigger class.
Has anyone used Visual Studio 2017 to create an azure function triggered from a ChangeFeed item?
Update: When I tried to inlude Microsoft.Azure.Webjobs.Extensions, I get the following error.
NU1608: Detected package version outside of dependency constraint: Microsoft.NET.Sdk.Functions 1.0.11 requires Microsoft.Azure.WebJobs.Extensions (= 2.1.0) but version Microsoft.Azure.WebJobs.Extensions 3.0.0-beta5 was resolved.
NU1107: Version conflict detected for Microsoft.Azure.WebJobs. Reference the package directly from the project to resolve this issue.
Accelerator.Feed Microsoft.Azure.WebJobs.Extensions 3.0.0-beta5 -> Microsoft.Azure.WebJobs (>= 3.0.0-beta5)
Accelerator.Feed -> Microsoft.NET.Sdk.Functions 1.0.11 -> Microsoft.Azure.WebJobs (= 2.1.0).
Package restore failed.
According to Azure Cosmos DB bindings for Azure Functions, you'll need NuGet package Microsoft.Azure.WebJobs.Extensions.CosmosDB
The Cosmos DB bindings for Functions version 1.x are provided in the Microsoft.Azure.WebJobs.Extensions.DocumentDB NuGet package. For Functions 2.x, the package is Microsoft.Azure.WebJobs.Extensions.CosmosDB.
I am working with asp.net core- Visual studio 2015.While accessing my sql database the following error occurs. "Please add the Entity.framework.SqlServerCompact NuGet package to the project". Please let me know how to resolve this issue. Thanks in advance.
Well with ASP.net Core everything is optional and as Nuget packages which means you have to bring them in your project if you want to use them.
If you want to add any Nuget package to your project you just need to open your project json file and add this line into dependencies:
Microsoft.EntityFrameworkCore.SqlServer
Or run npm install in your project directory:
Install-Package Microsoft.EntityFrameworkCore.SqlServer
Then locate your tools section in your project json and add this into it:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview3-final"
If you had any problem with the version see if using this version is helping:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview2-final"
Reason is this is a known issue you can find here:
https://github.com/dotnet/cli/issues/3742
Check the version in case has changed. For a more detailed instructions look here:
https://learn.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db
I am new to Nugets. By using any existed NuGet packages i want to know how to use it. to understand the advantage of Nuget.
Easiest thing you can do to get a NuGet package, is go to http://nuget.org/packages, click on any package and then click on the download link to download to the package to your machine. You can install NuGet Package Explorer to drill into the package or change the extension to zip and open it yourself