FAQ Database Discussion Community


New Automatic NuGet package resotore and NuGet.Config

.net,visual-studio-2013,msbuild,nuget,nuget-package-restore
I'm migrating to new version of Automatic package restore as described in docs This documents says, that .nuget folder should be removed completely. Including NuGet.Config, that contained a property, we need: <config> <add key="repositoryPath" value="..\..\..\commonNugetPackages" /> </config> So how one should specify path where packages should be restored? Update: Updating...

Package Manager Console not working Visual Studio 2013

visual-studio-2013,nuget
This is what I get when I open it, anyone had this issue before? Never happened to me: Could not find file 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\typesv3.ps1xml'. Could not find file 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml'. Could not find file 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml'. update: after adding those entries to devenv.config now I get: There were errors in loading the format...

NuGet fails to find existing package

c#,nuget,nuget-package,nuget-package-restore
How it's possible that NuGet's Install-Package fails with Unable to find version 'x' of package 'y' when that exact version is released as NuGet to official repository and it shown on the https://www.nuget.org/packages/y page. Here is specific sample with nuget.org content and NuGet Install-Package command output. UPDATE. Package sources are...

How to uninstall Umbraco 7

nuget,uninstall,umbraco7
I installed Umbraco 7.2.2. from the latest nuget package. However, annoyingly I just clicked install from the initial install wizard, as shown below. Unknowingly it wouldnt ask me for the DB connections. So my question is. Is there a clean way to revert the installation and start again. Or am...

How to create Nuget package with C# and C++ libraries built with different options?

c#,c++,visual-c++,nuget,nuget-package
There is a project that wraps V8 engine into C# library. Its nuget package is broken and i'd like to fix it. Creating a package seems easy and there is documented way to pack different C# dlls for different .NET versions. However, i have no idea how to package .dll...

NuGet on mono behind proxy not able to connect to the internet

c#,.net,linux,mono,nuget
I have a Linux machine behind a corporate proxy. For the proxy I have setup CNTLM to handle the authentication for me, so my proxy is located at http://localhost:3128. CNTLM connects to a corporate proxy that uses NTLMv2. Now when I try to run Nuget on Mono with the following...

Can't open namespaces in a Nuget package

visual-studio-2013,f#,nuget,nuget-package,type-providers
I did the following: Create a new F# project in VS2013 In Package Manager Console, execute while targetting the new project: Install-Package FSharp.Azure.StorageTypeProvider In the file, type: open FSharp.Azure.StorageTypeProvider ...as can be seen in the examples included in the Github project. But I get the error: "The namespace or module...

How to delete files a dependency installed after your package is installed

powershell,nuget,nuspec
I'm working on a nuget package that depends on the Unity and Unity.Mvc4 packages. My nuspec file has them listed as dependencies. Everything works, but when my package is installed the dependencies are installed first. The Unity dependencies deploy files to the root of the project that my package has...

I didn't get Nuget Package Manager option on my project

visual-studio-2013,nuget,nuget-package
i didn't get Nuget Package Manager(as well as NPM Console) option on my project? I check Nuget Package Manager tab in option but it was saying error occur. How can i get my NPM back? ...

Package Manager in VS2015 RC fails on installing/restoring some packages

nuget,asp.net-5,visual-studio-2015,dnx
I'm trying to install a nuget package - NGenerics.1.4.1 from nuget.org (https://www.nuget.org/packages/NGenerics/) into a ASP.NET 5 project (website). Package Manager fails with UriFormatException. After that a reference is added into Reference folder in the Solution Explorer but with yellow triangle ('warning'). The error added into the Error List: "Dependency NGenerics...

VisualStudioOnline NuGet Restore now built in?

msbuild,nuget,visual-studio-online,tfs2013,nuget-package-restore
Is the Host Controller on Visual Studio Online now automatically restoring NuGet package before calling MSBuild? Previously I had to manually execute the following: nuget.exe restore MySolution.sln Now, when creating a new build in a new project, I noticed that I didn't need to do this. When looking at the...

Continuous integration AND NuGet restore in VSO and Azure

azure,msbuild,nuget,azure-web-roles,build-definition
We are using VSO and Azure Cloud Services (web roles). Previously, we have used the following build.proj file for our VSO build definitions: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <OutDir>$(MSBuildThisFileDirectory)bin</OutDir> <Configuration>Release</Configuration>...

NuGet Entity Framework 6.1.3 as default not 7 Beta 4

entity-framework,visual-studio-2013,nuget
Today I updated Visual Studio 2013 from Update1 to Update4 and the last version of NuGet. Now all time when I create a new solution, as default installs the Entity Framework 7 Beta 4 and I'm forced to change it in every new solution from NuGet Package Manager. There is...

Visual Studio 2015, Nuget and “same key has already been added.”

c#,windows-phone-8.1,nuget,visual-studio-2015,windows-universal
I have Visual Studio 2015 RC. When I open a console app or a Windows Phone 8 Silverlight project, everything works fine, I can use Nuget without problems. When I open a Universal App project (Windows 8.1 + Windows Phone 8.1), Nuget breaks. When I open the Nuget console, I...

Could not resolve this reference: NuGet on CI server

.net,tfs,nuget,tfsbuild,nuget-package-restore
I'm running a CI build on a TFS build controller, connected to VS Online. I've got a 'Could not resolve this reference' problem for a NuGet package and I've observed behavior that I haven't seen before: Locally the pacakage is downloaded to packages\FluentValidation.5.5.0 whereas on the server, it's downloaded to...

Editing Nuget Package C# Helixtoolkit.WPF

c#,wpf,nuget,nuget-package,helix-3d-toolkit
I am using the Helixtoolkit.WPF in my C# program. I have imported the NuGet package and it is working perfectly. However, I am wanting to edit one of the files, specifically GridLinesVisual.cs. I want to change how one of the functions in that file operates, but can’t seem to get...

How to automate NuGet package creation using Jenkins?

jenkins,automation,package,nuget,nightly-build
For one of my projects I am using many dependencies in the form of NuGet packages. When I change any of them, I need to recreate the package and deploy it every time. We currently have Jenkins setup as our task runner. I was wondering is there a way to...

Install nuget package with a VSPackage

c#,nuget,vspackage,visual-studio-sdk
I'm trying to install a nuget package into a project that I am generating with a VSPackage. So far, I am able to create a solution from a project template: Solution4 soln = (Solution4)ApplicationObject.Solution; string prjPath = "C:\\MyProject"; string templatePath = soln.GetProjectTemplate(@"SomeProject\MyTemplate.vstemplate", "CSharp"); soln.AddFromTemplate(templatePath, prjPath, "New CSharp Project", false); But...

Yellow Caution Icon/Glyph on Assembly Reference in Solution Explorer

visual-studio-2013,nuget,assembly-references,packages.config
I am using NuGet to manage dependencies. I created a fresh Git clone of my solution, and noticed assembly reference problems. I have Enabled Package Restore and checked settings as suggested here, but I still have these yellow caution icons on various assembly references: For example, I had previously added...

Wrong System.Web.Mvc update

asp.net,nuget
I had System.Web.Mvc v4.0.0.0 added in the GAC, so I installed manually Mvc via nuget with "Install-Package Microsoft.AspNet.Mvc -Version 5.2.3". I have installed System.Web.Mvc v5.2.3.0 now, and System.Web.Mvc v4.0.0.0 in the GAC I have this in Web.config: <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> </dependentAssembly> I build and...

Can't build a project with Postsharp 4.1.14

c#,.net,msbuild,nuget,postsharp
I have a project which references a postsharp 4.1.14. When I build a project the error occurred. Postsharp is installed by nuget package. There is .net version 4.0 installed on computer, but Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKLocation method is from .net 4.5. Can I use different version of postsharp? Is there another way to...

How to change CopyToOutputDirectory on project reference via powershell

c#,powershell,nuget
I created a nuget package which contains 3rd party assemblies so that I don't have to put them in a lib folder in every repo where I want to reference them. The nature of the 3rd party libraries is that I cannot have their references set to copy to the...

How to upgrade nuget packages if the installed version is missing?

servicestack,nuget
Running into a situation where I deployed an application to production a few months ago and now I need to do some work on it, on an entirely new machine. The first I do is pull source and nuget restore won't restore because it can't find the particular version of...

Installing Asp.Net SignalR error while installing

asp.net,.net,.net-4.0,signalr,nuget
I am trying to install SignalR in Visual Studio 2010 professional project. But I am getting this error: Could not install package 'Microsoft.Owin.Security 2.1.0'. You are trying to install this package into a project that targets ' .NETFramework,Version=v4.0', but the package does not contain any assembly references or content files...

Ajax Control Toolkit, Visual Studio 2013, Nuget: AjaxControlToolkit.dll is missing

asp.net,vb.net,visual-studio-2013,nuget,ajaxcontroltoolkit
I tried to add the actual Ajax Control Toolkit to an .Net 4.5.1 WebSite. All the dependencies seem to be properly installed but the AjaxControlToolkit.dll file is not there. I tried to uninstall and reinstall the package with the NuGet Console in Visual Studio 2013 and it always looks to...

Is there a NuGet package for Microsoft.Xrm.Client?

nuget,dynamics-crm,nuget-package,dynamics-crm-online
Is there a NuGet package for Microsoft.Xrm.Client for Dynamics 2013 and 2015?

Alert Nuget server to update my package

visual-studio-2012,nuget,nuget-package,nuget-server
I'm hosting private repository for Nuget libraries. Always I update any library to a newer version and go to Manage Nuget Packages I can't see "update" button. There's only one option, to install. What am I doing wrong? ...

Visual Studio build error “This version of NuGet.exe is not compatible with the version of Windows you're running.”

c#,visual-studio,asp.net-web-api,visual-studio-2013,nuget
I'm trying to build a web API project in visual studio 2013 which I've downloaded from git. However, whenever I'm trying to build it is generating following error. Can anyone suggest any help to resolve this. I'm using windows 8.1 with visual studio 2013 version 4. Error Messages: Error 1...

How to install Visual Studio Gallery extensions from command line

visual-studio,command-line,nuget,visual-studio-gallery
TL;DR Is there a way to access Visual Studio Gallery from command line, similar to chocolatey? I am trying to configure a Visual Studio dev environment using Vagrant. Now, team members use various extensions available from Visual Studio Gallery and it would be great if they could script their installation...

Xamarin Forms SocketsForPCL

c#,sockets,xamarin,nuget,printer-control-language
I'm trying to get the SocketsForPCL working on my Xamarin Forms PCL project. I've included the nuget and TcpSocketClient ( var client = new TcpSocketClient(); ). The error I get - Error: The type or namespace name 'TcpSocketClient' could not be found. I'm guessing I'm doing something wrong with the...

How to compile and link google tests in C++ project in Visual Studio 2013 but with Gtest installed by NuGet Package Manager?

c++,visual-studio,linker,nuget,googletest
I have Microsoft Visual Studio 2013 Community Edition on Windows 7. I want to install gtest and gmock for C++ in newer way than downloading headers and binaries or compiling by myself. I found Tools > Nuget Package Manager > Manage Nugets Packages For Solution I chosen Online, then typed...

How to register a custom control in Web.config file using powershell script

asp.net,powershell,web-config,custom-controls,nuget
When Nuget package for a custom control is installed, I want to register the control automatically inside the <controls> section of Web.config file. I'm new to Powershell script. I want to add the following line inside the <controls> section of the Web.config file if it is not added already. <add...

Forked a project but what is .pp?

c#,git,nuget
Sorry if this is not the right place to post this type of question...if it's supposed to be on another site please let me know or feel free to close. I've got a simple question about github. I am very new to it and "forked" a project I wanted to...

How do i reset nuget and start afresh?

console,nuget,reset
here's what's happening. within the last few days something happened to my solution that apparently broke nuget. when i go into package manager/installed and do a find on SignalR, nothing comes back as if SignalR wasn't installed when i know it is. when i go into manager/online and do the...

An error occurred while configuring the solution to restore NuGet packages on build. The operation has timed out

visual-studio-2013,nuget,nuget-package-restore
When I right-click my solution and click "enable nuget package restore" I get the message: Configuring the solution to restore NuGet packages on build... And after that the error: An error occurred while configuring the solution to restore NuGet packages on build. The operation has timed out What can it...

Add reference to same Nuget package but for different targets

nuget,nuget-package
I have a solution in Visual Studio 2013 with more C# project files that have source code in common but are targeting for different platforms (.Net, WinRT, .Net Micro Framework and so on). All the csproj files are under the same directory. These projects use a Nuget package that is...

Nuget does not update to lastest version in project

visual-studio,nuget
I use the Nuget package manager in VS and for some reason, the Version in Nuget is not updating the dll in my project. In the below image, you can see I have the latest version from Nuget, but the version in my project is incorrect. How can I resolve...

Error When installing NuGet package 'Microsoft.AspNet.Http.Extensions 1.0.0-beta3'

c#,asp.net,visual-studio,nuget
When installing 'Microsoft.AspNet.Http.Extensions 1.0.0-beta3' I get this. I am trying to use it for iappbuilder reference so I can create an app with my app. Any ideas what could cause this? Install failed. Rolling back... Install-Package : Could not install package 'Microsoft.AspNet.Http.Extensions 1.0.0-beta3'. You are trying to install this package...

“ExcelReaderFactory.cs not found” Error

c#,nuget,exceldatareader
I've downloaded ExcelDataReader from the Visual Studio Package Manager Console and followed the C# instructions on its Code Plex page http://exceldatareader.codeplex.com/, but, during run-time, I get an "ExcelReaderFactory.cs not found" message when the code fails at the ExcelReaderFactory. The entirety of my code block is below. I've tried removing and...

NuGet restore unable to resolve host 'www.nuget'

.net,visual-studio-2012,nuget
I am trying to use the nuget restore command to restore NuGet packages on a CI server. I can run it locally without issue, but on the server I am getting a number of warnings (errors, really): WARNING: The remote name could not be resolved: 'www.nuget' WARNING: The remote name...

Visual Studio 2015 Nuget Error on non-MVC6 projects

visual-studio,nuget,visual-studio-2015
I launched VS 2015 today to get some work done, and it says there's a nuget update so I updated it. after that, I created a new project to test something out and no nuget was installed. opened previous projects and tryied to install update whatever from nuget and all...

Proper Handling of Version Numbers Between Git Branches

nuget,versioning,myget
We have an assembly that we push to myget as a nuget package. We then reference the assembly in another project. At this point, everything works great. Now, suppose we swap to our master branch in git and need to fix a bug. When we do a publish to myget,...

Github and Nuget packages

c#,git,github,reference,nuget
I am attempting to contribute to a project on Github (First time). I added a new Project to the solution and added NUnit and AutoFixture (via Nuget), now when I clone that repo it's missing all of the references to NUnit and AutoFixture. Now when I did a pull request...

How to disable automatic Nuget Package Update in Xamarin

xamarin,mono,nuget
How to disable automatic Nuget Package updates in Xamarin 5.9 (build 539) when opening a new Project?

how to create nuspec file in specific folder?

nuget,nuget-package,nuget-package-restore,nuspec
I tried to create .nuspec file in a different folder by giving path but it is giving me error Nuget.exe spec ..\MYDEMOFOLDER Nuget.exe pack ..\MYDEMOFOLDER\MYPROJECT.csproj pause want to create MYPROJECT.nuspec in ..\MYDEMOFOLDER folder location getting error to create nuspec file The package ID '..\MYDEMOFOLDER' contains invalid characters. Examples of valid...

Does nuget still require these entries in Visual Studio projects?

visual-studio-2013,nuget,xamarin-studio,csproj
I've noticed that new .csproj projects without these nuget directives appear to work fine. Are these a relic of the past that can be removed from projects? I scanned the nuget FAQ but did not find anything related to this. I'm running Visual Studio 2013 and also a recent build...

NuGet: Possibility of adding a line of code via Powershell?

powershell,nuget,nuget-package,webactivator
I have a few NuGet packages that I've put together, with one of them being a common project referenced by all the others. This common project inserts a configuration class into the App_Start folder, and a method on this class is then invoked by WebActivator. For one of the other...

Visual Studio 2015 RC1 - Manage Nuget packages for solution

visual-studio-2005,nuget,nuget-package-restore
When opening the Nuget Package Manager in VS2015RC1 on the solution level and filtering on installed/update available I get a list of all available packages within my solution. But when I try to upgrade a package it has ALL projected within the solution selected by default which is not what...

NuGet Package Manager Console Command Fails But Search -> Install Works

nuget
I was just installing a new package thats not in my local cache. I took the command directly from the NuGet site. Executing the command in the PMC failed with the following error: The source at All [(Aggregate source)] is unreachable. Falling back to NuGet Local Cache at C:\Users\Jammer\AppData\Local\NuGet\Cache Install-Package...

WPF 'Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.'

c#,wpf,nuget,mahapps.metro
My application runs fine in VS 2010 but when I copy the executable from the bin folder to another location I get this error: 'Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.' Line number '15' and line position '23'. Did a bit of testing and found out that if I include the...

Visual Studio 2013 - Setting up Nuget packages for every project

visual-studio,twitter-bootstrap,templates,nuget
I want all of our future projects to use Bootstrap LESS and other nuget packages. Rather than supply a document to all my team members and hope they remember to set it up, am I able to create a skeleton project then template it so it appears under File ->...

Tfs and nuget: project files are forever in check out after build with restore nuget packages

visual-studio-2012,tfs,nuget
MS VS 2012 I have solution in tfs with enabled nuget packages restore. Every time when I build solution all my project files are cheked out with this changes: <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 Manage Console not working

c#,asp.net,.net,entity-framework,nuget
I am trying to install Npgsql and Npgsql.EntityFramework and getting this error: Install-Package : The remote name could not be resolved: 'www.nuget.org' At line:1 char:16 + Install-Package <<<< Npgsql + CategoryInfo : NotSpecified: (:) [Install-Package], WebException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand What am I doing wrong? Please help...

c# development and project.json

c#,nuget,csproj
I have read all about Project.json file in ASP.NET 5(vNext). I have seen tons of people asking if the same changes can be applied to c# projects currently using .csproj/nuget. I have seen this site https://github.com/aspnet/Home/wiki/Project.json-file that lays out the structure of the project.json, but I cannot find any nuget/visual...

VS persists requiring restart since updating NuGet packages

asp.net-mvc,visual-studio-2013,nuget,nuget-package
I created a brand new C# Web Application from the templates and immediately updated all its NuGet packages. During the update process it required a restart, and afterwards, it keeps on showing this message: One or more packages could not be completely uninstalled: Newtonsoft.Json.6.0.4. Restart Visual Studio to finish uninstall....

VS2013 Boost using NuGet

c++,boost,visual-studio-2013,nuget
I have been trying for days to get boost to work with my Visual Studio 2013 Premium install. I tried it with a zip install, and now with NuGet. Both methods have gotten me to same point of a linker error. The error: 1>LINK : fatal error LNK1104: cannot open...

VS Online Build - Publish to local NuGet feed

nuget,build-process,visual-studio-online
I'm trying to migrate from running Team Foundation Server locally to VS Online. I need to set up a build that will publish a nuget package to our local feed. Is this possible? I assume I need to set up VPN or something. I'm not even sure where to start....

Proget Server Up but Feed Inaccessible in Visual Studio

visual-studio,visual-studio-2013,nuget,proget
We have reinstalled ProGet as we rebuilt our server after a security hole was discovered (unrelated to ProGet). The feed is visible in the browser, but inaccessible in Visual Studio. While rebuilding our server, we have ProGet running on a temporary Azure server, which is working and serving our NuGet...

Can I use my OctopusDeploy built-in Package Repository in Manage NuGet Packages?

nuget,octopus-deploy
I have a working Octopus Deploy server which has a library of packages I built. I have an assembly which depends on one of the assemblies which I have deployed in Octopus Deploy and which is currently in that repository. I tried adding it as a package source in NuGet...

C# sqlite Unable to load sqlite3.dll

c#,sqlite,sqlite3,nuget
I have used nuget to install sqlite-net and System.Data.SQLite (x86/x64). I have rebuilt and I have restarted and I still get the following error: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E). This is the line that triggers it: db = new...

Nuget package manager console Not found error

visual-studio-2013,nuget
I'm using Visual Studio 2013 Premium. Out of nowhere the NuGet package manager console stopped working. Now it only displays Not found after the powershell initialization fails. I tried reinstalling NuGet, restarting, removing the folder with NuGet extension. Anybody has some idea what could be causing this or at least...

Can not download nuget packages

nuget
I'm getting the following error: WARNING: The ServicePointManager does not support proxies with the https scheme. This started happening randomly. I'm not behind a proxy, and restarting did not fix anything....

Trying to add non-.NET libraries to NuGet package

c#,visual-studio,nuget
I have a .NET DLL that is using non-.NET DLLs. I'm trying to create a NuGet package out of this, but I don't seem to be penetrating the magic behind this. I read the NuGet reference about the <files> and <references> but that didn't really work out for me -...

How can I suppress the overwrite dialog for a content file in a nuget package I created?

nuget
In NuGet 2.5, a dialog was added to prompt the user if they want to overwrite content files that are included in a nuget package if they already exist. I would like to suppress this dialog and make it so that the file would never be overwritten. The reason is...

Given two C# projects on the same base directory, how to use different packages.config for each

nuget
I have two projects (*.csproj) on the same directory (I am porting and this seems like a good workflow) however the problem is that I can only have 1 packages.config on the folder. I have tested having the project on a different folder and linking the files I need, however,...

MAC OSX Mono Nuget how to set up a default %AppData%\NuGet\NuGet.config

osx,mono,nuget
I can exec something like - mono --runtime=v4.0.30319 /Library/TeamCity/buildAgent/work/b0d2d3fefe88d393/.nuget/NuGet.exe' install '/Library/TeamCity/buildAgent/work/b0d2d3fefe88d393/something/packages.config' -source 'http://www.someurl.com/feed/' -RequireConsent -solutionDir '/Library/TeamCity/buildAgent/work/b0d2d3fefe88d393/' to tell mono Nuget to look at a specific Nuget Source. But assuming for some reason I could not modify the nuget command line call to add a -source parameter, how could I do...

Nuget failing to install OwinHost 3.0.1

.net,nuget,owin,visual-studio-2015
I'm attempting to install the OwinHost 3.0.1 package via nuget on visual studio 2015 CTP 6 and am getting the following error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'System.Management.Automation, Version=3.0.0.0, Culture=neutral,...

Why can't I download TagHelpers (nuget & ASP.NET 5)?

nuget,asp.net-5,visual-studio-2015
I can't get the TagHelpers package via the project.json nor through nuget. I've tried >Install-Package Microsoft.AspNet.Mvc.TagHelpers -Pre in the package manager console. I can't even find it in the Nuget Package Manager search. I'm using the latest Visual Studio 2015 CTP 6 with everything up to date. I started using...

SendSmsMessageAsync Example?

c#,nuget,twilio
I'm confused. I downloaded the TwilioRestClient using NuGet and there is no SendMessage method as described here... https://www.twilio.com/docs/api/rest/sending-messages I do see a method called SendSmsMessageAsyc() - But I'm not sure if the documentation is outdated or if my NuGet package is outdated. If the documentation is outdated, can you please...

Using Nuget on VS2015 RC Tools for Apache Cordova

visual-studio,cordova,nuget,visual-studio-2015,visual-studio-cordova
Bit of a newbie to VS2015RC with Cordova but I have a query regarding how to use Nuget to add dependencies like say Jquery, Angular etc. If you add the dependencies or packages using Nuget then they are added to the root of the Project (Not in the www folder)....

Nuget-deployed C# files excluded from Resharper analysis

c#,nuget,resharper
I'm having trouble understanding a behaviour of Nuget. I've created a basic package that deploys a single Test.cs file into an "HtmlHelpers" folder in a project. I'm following the "convention based working directory" method described on the Nuget site. The issue I'm having is Resharper file analysis isn't enabled for...

How to pass credentials when accessing a Nuget feed

api,authentication,nuget,nuget-server
I am trying to download packages from a Nuget repository which requires credentials for it to be accessed using NuGet.Core. I know that Nuget repositories with no authentication can be accessed as follows: //ID of the package to be looked up string packageID = "EntityFramework"; //Connect to the official package...

How to find nuget package sort by most downloaded using the console?

powershell,visual-studio-2013,nuget
I'm using visual studio 2013. I want to find nuget package using the powershell script but when I search for a package if I don't type the exact name, I get all the packages with the key words mentionned. For instance, if I write this line : Get-Package -Filter moq...

NuGet restore progressive failures

nuget,nuget-package,nuget-package-restore
Why would I be getting different NuGet restore build failures on the exact same changeset over 3 manually-triggered, consecutive builds? The fourth build was successful. I double checked on NuGet's twitter feed and there was no report of any issues or downtime. This is occurring on the following command: nuget.exe...

nuget security - malware installed by nuget packages?

visual-studio,nuget
Is it possible that you can be infected with malware by installing nuget packages? This is especially interesting when you think of Microsoft Visual Studio 2016 which will be fully dependent on Nuget....

Unable to add any nuget dependency with ASP.NET 5

nuget,asp.net-5,visual-studio-2015
I've just downloaded Visual Studio Enterprise 2015 RC and I'm trying to create a simple ASP.NET 5 application. But each time i'm modifying the project.json to add a dependency, I always have an error. For example, when adding a dependency to Newtonsoft.Json I have : "Dependency Newtonsoft.Json >= 6.0.8 could...

Find cause of multiple System.Web.Mvc references

c#,asp.net-mvc,asp.net-mvc-5,nuget,projects-and-solutions
Using dotPeek to examine the references of the main assembly of a web project, I see: System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 The project references in Visual Studio only shows version 5.2.3.0. I've also searched the .csproj files of referenced projects. Manage NuGet Packages only shows v5.2.3 of...

xamarin studio, add nuget plugin

xamarin,nuget,xamarin-studio
I've found a NuGet plugin I would like to install, but using Xamarin Studio on Mac I don't have Package Manager Console so i can't type the Install-Package My.Wanted.Plugin -Version 1.0.0.0 According to is there a package manager console in xamarin studio there is a workaround, but it didn't work...

Tab completion for array not shows after first selection

visual-studio,powershell,nuget,tabexpansion
This is a script for VS PowerShell. function global:Add-Shape { param([string]$Shape, [string[]]$Colors) Write-Host "Shape Name:$Shape" foreach ($i in $Colors) { Write-Host "Color Name:$i" } } Register-TabExpansion 'Add-Shape' @{ 'Shape' = { "Circle", "Square", "Triangle" } 'Colors' = { "Brown", "Red", "Blue" } } In Package Manager Console When I try...

Nuget: script for removing a DLL reference in 'uninstall.ps1'

c#,dll,nuget
Somewhere in the mists of time I found an example of a Nuget uninstall.ps1 script to remove a DLL reference that I've been blindly copying ever since. This is it: param($installPath, $toolsPath, $package, $project) $project.Object.References.Remove("Dll.Name"); But now when invoking a package uninstall I'm getting an error saying that Remove is...

Nuget PCL library conflict

c#,.net,msbuild,nuget,portable-class-library
I'm using Nito.Async both in a PCL framework library and in client app which uses the library. The PCL lib targets .Net4.5 & SL5, and the client is .Net4.5. If I don't reference Nito.Async in client app, everything is fine. But if I reference it, when i run the app,...

Copy files from a subfolder to root in nuspec

nuget,nuget-package,nuget-spec
I'm trying to copy a bunch of files from a specific folder into the root of a nuget package. Here's how it looks in my nuspec file: <files> <file src="dist/product1/**/*.*" /> </files> I want the files under dist/product1 be copied to root of nuget package but instead all files go...

LocalPackageRepository returns IsLatestVersion=true for all packages

nuget,nuget-server
I've created a folder on my C:\packages. Inside I've created two packages with identical Ids but have different versions. I the use Nuget.Core to create a LocalPackageRepository pointing to this directory. When I query for the packages using respository.FindPackages("myId")both packages are correctly returned by the service. However, the IsLatestVersion is...

Nuget causing building problems

nuget,visual-studio-2015
I have fork a project (NRefactory - https://github.com/icsharpcode/NRefactory) but I'm not able to build the solution. Here's what the errors I'm getting from VS Severity Code Description Project File Line Error The command "C:\Users\Kavignon_Developer\Documents\GitHub Projects\GitHub - Open Source Projects\SummerOfCode_2015\\.nuget\NuGet.exe restore -SolutionDirectory .." exited with code 9009. ICSharpCode.NRefactory6.CSharp C:\Users\Kavignon_Developer\Documents\GitHub Projects\GitHub -...

NuGet - Dependee project referencing different DLL according to selected build configuration

c#,.net,visual-studio,nuget
I'm completely new to NuGet and just researching/proof-of-concept'ing it at the moment: Is it possible to package a NuGet package in such a way that the dependee project (the one that has the dependency) references a different DLL according to the project configuration build? Example: Dependee-Debug.DLL -> References Dependency-Debug.DLL Dependee-Release.DLL...

How do I get enumerate the PropertyGroup elements in a csproj file from powershell

powershell,nuget,envdte
I'm writing a nuget install script in powershell and I want to access to all the PropertyGroup elements of the project file (*.csproj)? I have access to a variable called $project which represents an object, I believe it to implement the Project interface from EnvDTE - an abstraction of the...

cURL with Visual Studio 2013

c++,curl,visual-studio-2013,nuget,libcurl
So i have came along with cURL as a very nice library and working very fine in OSX. But on windows now i have got big troubles with getting ready with this library. I googled now for about 2 days and tried over a dozen (in detail) different ways to...

VS 2015 CTP 6 Nuget Package Source

nuget,asp.net-5,asp.net-mvc-6
After installing VS 2015 CTP 6 it added the following url to Available Package Sources: https://api.nuget.org/v3/index.json and turned off the following: https://www.nuget.org/api/v2/ When it did this it stopped downloading all nuget packages. I switched it back to the old one and everything is working again. One thing I noticed is...

How can I stop my ClickOnce install from requiring Newtonsoft.Json v4.5 in the GAC?

wpf,json.net,nuget,clickonce
We have a ClickOnce deployment of a WPF desktop application, and recently installed the Newtonsoft.Json version 6.0.8 nuget package. After making this change and publishing the ClickOnce deployment, users can't run the update, because of this error message: The first thing that strikes me as odd is the dependency on...

Semantic versioning and continuous deployment, conflicting idea in practice?

continuous-integration,nuget,.net-assembly,continuous-deployment,semantic-versioning
Some times the version information has to be embedded in the metadata of the output artifact. So, the version has to be decided at the build/compile time. However, you can't call a version until you actually make a release in semantic versioning because the last digit has to be incremental....

Ignoring Dependencies in Nuget Package

c#,.net,visual-studio-2012,nuget,nuget-package
I have a package which has 5 dependencies -- one of which is MVC3. While installing this package, I want to ignore the dependency on MVC3 alone. Is there a way I can do that? In the Nuget Package Manager Console, there's an option to ignore dependencies when installing packages...

Teamcity nuget server with external nugets

nuget,teamcity,teamcity-8.0
Can I add an arbitrary nuget (not built on teamcity) to be served from teamcity nuget server? (I'm using teamcity 8.1.5)

Can't reinstall package

visual-studio-2013,nuget
On a new Win8.1 reinstall, with all of my code restored from backup, I'm suddenly now getting a yellow NuGet warning when I issue the command update-package -reinstall -project ui: Skipped reinstalling package 'AeroWizard 2.0.9' in project 'Ui' because the package does not exist in the package source. I'm using...

Deploying Bitbucket to Azure Web Site: add private nuget package server

asp.net-mvc,azure,nuget,bitbucket
I have set up a website on Azure to deploy through a Bitbucket repository. The process fails when it tries to install nuget packages which are stored on a private nuget server, not nuget.org. Is there a way to specify where to restore the nuget packages from so that Azure...

Create nuget package for static assets

asp.net-mvc-5,nuget,nuget-package
I'm exploring creating a Nuget package since I just started dabbling in .Net MVC and I have a custom theme that will be applied to any/all future applications will be built. Does it make sense to create a Nuget package with all the static assets that will be needed? I'd...

Xamarin 9-Patch in Library Solution & Referenced via TeamCity NuGet

android,xamarin,nuget,teamcity,nine-patch
The Configuration In a library solution is an Android library project (let's call it Core.Droid) that has a 9-patch image as shown in this screen shot of the project This solution is built using TeamCity such that the project is a NuGet package. Another Solution contains an Android project (let's...

Link error: Installing boost zlib filters using NuGet in Visual Studio (2012)

c++,visual-studio-2012,boost,nuget,zlib
I've installed these packages: boost boost-vc110 boost_iostreams_zlib zlib But the linker is unable to find the required lib: 2>LINK : fatal error LNK1104: cannot open file 'libboost_zlib-vc110-mt-1_58.lib' Is there a way to fix this problem manually by changing the file name or am I still missing a package?...

How can I get with PowerShell the project version in Visual Studio?

visual-studio,nuget,powershell-v2.0,post-build-event
I'm writing a simple PowerShell script for creating NuGet packages on Post-build event. For this I'd like to set the package version automatically to the project version. Currently it's hardcoded in my command: nuget pack .\MyProject.csproj -properties configuration=release -version 1.0.0 -outputdirectory .\NuGet\Packages Is there a way to change the above...

NuGet package not in Package Manager search results

nuget,nuget-package,nuget-spec
We have a package that refuses to appear in the NuGet Package Manager search results within Visual Studio. Searching for Bridge.NET should return results. Initially we thought this might just caching issue, so we waited a few releases, but the problem continues. Here's a copy of the .nuspec file for...

Nuget package dependency being treated as sub depedency looses version constraint

nuget
Let's say I create a new class library project. I add the Entity Framework 6.1 NuGet package to it, then create a new NuGet package from the class library project with nuget pack MyProject.csproj. I get a nice npkg with a depedency to Entity Framework 6.1. Then, I decide to...