nuget-package

nuget.config is ignored, specifically the repositoryPath

喜欢而已 提交于 2019-12-12 10:36:58
问题 Visual Studio 2015 ignores my nuget.config that lies in the solution directory. This file has the following content: <?xml version="1.0" encoding="utf-8"?> <settings> <repositoryPath>../packages/nuget</repositoryPath> </settings> Visual Studio however simply puts all packages into the packages folder in the solution directory. This file has worked fine for years when using Visual Studio 2013. Am I missing something? I am using the latest version of the NuGet extension (3.2) 回答1: Looks like

How to exclude a folder from a nuget package

て烟熏妆下的殇ゞ 提交于 2019-12-12 07:44:32
问题 I'm using Octopack / Nuspec file to build my nuget package. I would like to exclude certain folders which exist in the project. e.g. the "obj" file. I've been trying to get the exclude tag to work, but haven't had any luck. The nuget file builds, but the folder is still there. Sadly, all the examples on the net specific file types and not folder. <?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>Foo</id> <title>Foo</title>

What do the $package and $project params contain in a NuGet install.ps1 script?

北城余情 提交于 2019-12-12 07:32:50
问题 I'm writing my first install PowerShell script for a NuGet package. I'm trying to copy a file from the lib folder into the tools folder of another NuGet package. The default install.ps1 script has four parameters, two of which are: $package $project They appear to be "objects" of some sort, but I'm not sure what properties and methods they contain. I've done some searching online, but have yet to find a reference or any documentation for these arguments. Looking at this StackOverflow post,

The EntityFramework package is not installed on project

廉价感情. 提交于 2019-12-12 07:07:13
问题 I am having trouble getting the EF to install on my very simple project called 'Match' (just now learning MVC, better late than never). The general context here is that I created the Model class with only 2 fields and now I want to change the Model class to have a few more fields/properties. I have made the change in the Model class and am now trying to update the DB to match. I am trying to use Update-Database from EF to do that. PM> install-package EntityFramework You are downloading

Can't install Windows Azure Service Bus nuget package

杀马特。学长 韩版系。学妹 提交于 2019-12-12 02:53:34
问题 I'm trying to add a nuget package to my project using the nuget package manager (right click and choosing "Manage Nugets"). I found the Windows Azure Service Bus and i'm clicking install. Then I get the following error: Attempting to resolve dependency 'Microsoft.WindowsAzure.ConfigurationManager (≥ 2.0.2)'. Successfully installed 'WindowsAzure.ServiceBus 2.2.1.1'. Unexpected end of file while parsing Comment has occurred. Line 46, position 17. Successfully uninstalled 'WindowsAzure

MEF With Portable Class library using Microsoft Composition MEF2 throws file not found exception

浪子不回头ぞ 提交于 2019-12-12 02:53:16
问题 I am working on Portable Class Library(PCL) and trying to achieve MEF in that. I used System.Composition from Nuget. When i build and package for vsix (Extension for Visual Studio) it doesn't package and place those dll's to extension folder (C:\Users\UserName\AppData\Local\Microsoft\VisualStudio\14.0Exp\Extensions\ExtensionName\AppName\versionofYourApp). When i manually place those library in this folder it works fine. Can some one suggest a good solution to this problem. I am writing it for

NetCoreApp System.codedom

谁都会走 提交于 2019-12-12 02:43:01
问题 I'm creating a new .NET Core application and would like to use System.CodeDom (and .Compiler) as reference. I require the classes: CSharpCodeProvider , CodeMemberProperty , ... However i'm not finding a package via nuget where these types are available. Anybody who knows in which package I can find this for .NET core? 回答1: I found this one CoreCompat.System.CodeDOM which is resolving some of my issues. This is still in beta, so if there is an RTM available this can be added here. 回答2: CodeDOM

NuGet Fails to Install FluentValidation

有些话、适合烂在心里 提交于 2019-12-11 19:27:08
问题 I am attempting to install the NuGet package Nancy.Validation.FluentValidation but the installation fails due to, I think, unsupported frameworks? The full NuGet error is below. I am using .NET 4.5. I cant see why it would fail? Any ideas what is going wrong? Output when installing Nancy.Validation.FluentValidation : Attempting to resolve dependency 'Nancy (≥ 1.2.0)'. Attempting to resolve dependency 'FluentValidation'. Installing 'FluentValidation 5.6.2.0'. Successfully installed

Could not load file or assembly 'NuGet.Server, Version=2.11.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies

∥☆過路亽.° 提交于 2019-12-11 16:58:08
问题 So I have created a NuGet Server via an ASP.Net Web Application following this tutorial: http://nugetserver.net/ which is hosted in IIS. I have placed the files on my D: drive on my server along with my packages. IIS Sites Virtual Path: I get the following error when I navigate to the url: In case the picture is not clear enough, please see below: Could not load file or assembly 'NuGet.Server, Version=2.11.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located

Xamarin.Android: Package XX is not compatible with monoandroid81 (MonoAndroid,Version=v8.1)

送分小仙女□ 提交于 2019-12-11 16:05:01
问题 I encounter a stranger behavior with a Xamarin.Android project in Visual Studio on Windows . I've created a new Android blank project , and I try ton install the NuGet package "AForge" (a mathematics library), but I get the following error message: Package AForge 2.2.5 is not compatible with monoandroid81 (MonoAndroid,Version=v8.1). I've already tried to re create several projects, after having relaunched Visual Studio and the computer, but the problem is still the same. However, if I do the