nuget-package

CMake and MsVS-NuGet

不打扰是莪最后的温柔 提交于 2019-12-17 18:26:08
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . I'm currently developing a desktop application, using the C++ REST SDK (codename Casablanca), Qt5 and some other libraries. For the project setup, I use CMake. How to get CMake to install NuGet Packages? I now have to install it each time manually, if I rerun CMake, which isn't really an option. 回答1: EDIT : As of CMake 3.15, CMake supports referencing Nuget

Remove NuGet Package manager from VS2013

狂风中的少年 提交于 2019-12-14 03:53:58
问题 I had an install issue with the NuGet package manager extension. I am now trying to remove it, but each time I do the remove, I come back to VS2013 PRO and it is still there (win7 sp1 box). Is there a different way to remove it (I am getting errors whenever I try to open a project). 回答1: I ended up calling Microsoft support, and we spent about 45 minutes searching the registry for the particular version of NuGet (there was an old version installed that was not properly removed, keeping the

Update all packages except one

烈酒焚心 提交于 2019-12-14 03:48:44
问题 is there any way to update all packages except one? For instance when I created new project I need to update all packages except jQuery. It should stay at same version. 回答1: You could write a custom script for updating the packages like the following and execute it in the package manager console $list = Get-package -project {Add project name here} for($i=0; $i -lt $list.Length;$i ++ ) { if($list[$i].Id -ne "jquery") { Update-Package -project {Add project name here} $list[$i].Id } } 回答2: no

NuGet does not honour packages.config

…衆ロ難τιáo~ 提交于 2019-12-13 15:09:00
问题 I am trying to generate NuGet packages for a pair of internal C# projects (eventually more, but starting with these two) that are used in other solutions/projects/etc. Both of these internal C# projects have references to other NuGet packages (Enterprise Library Logging in particular). I am using the feature of Nuget that allows it to build the packages from the CSPROJ file to simplify my life a little bit. The problem is that the Nuget.Exe tool does not identify the packages that the project

MSBuild and package restore with packages.config

牧云@^-^@ 提交于 2019-12-13 12:14:09
问题 Sorry if this question has been answered before, but I just cannot seem to find an answer: Is it possible to restore packages during the build using MSBuild only if projects are still using packages.config? 回答1: As far as I can read on https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore it is possible: MSBuild: use the msbuild /t:restore command, which restores packages packages listed in the project file (PackageReference only). Available only in NuGet 4.x+ and MSBuild 15

Create NuGet Package using MSBuild and VS Team Services

走远了吗. 提交于 2019-12-13 09:33:45
问题 I am using visual studio 2015, from past few days I was trying to create nuget package that are hosted on Visual Studio Team Services (previously Visual Studio Online) and created every time a project is build, but with no success. Can someone please provide step by step intro to how to achieve this task. I am very thankful to you. 回答1: Following is a simple build definition to create nuget package and publish the package to VSTS hosted package service: Create a build definition in VSTS to

Unhandeld exception in production System.Net.Http 4.1.1.1 FileNotFoundException

删除回忆录丶 提交于 2019-12-13 08:59:04
问题 This error only pops up when I publish my .Net 4.6.2 console application and install it on a remote Win 2012r2. Onverwerkte uitzondering: System.IO.FileNotFoundException: Kan bestand of assembly Sy stem.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a of e en van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden. ---> System.IO.FileNotFoundException: Kan bestand of assembly System.Net .Http, Version=4.0.0.0, Culture=neutral,

TFS2015 NuGet Packager: [error] 'System.Collections' already has a dependency defined for 'Microsoft.NETCore.Platforms'

拈花ヽ惹草 提交于 2019-12-13 08:51:49
问题 This question NuGet: 'X' already has a dependency defined for 'Y' has the answer for when NuGet has this issue in Visual Studio, but how do I update NuGet in TFS 2015? I am using the NuGet Packager build task and it is giving me the error [error] 'System.Collections' already has a dependency defined for 'Microsoft.NETCore.Platforms'. If this is not a bug then what am I doing wrong. The project is .Net 4.5.2 so I can't see why it would even have 'Microsoft.NETCore.Platforms'. It should be

How to automatically create and push Nuget Package after building

橙三吉。 提交于 2019-12-13 06:48:57
问题 We want to create nuget packages for our all products (dll) but there are several developers and want to find out the easiest way to do that. It is possible to use console manager to do that but I am looking for a general solution. Because the projects can have dependencies or files and also the important thing is versioning. So I am looking for a tool which can create a package and push for us considering dependencies, versioning etc. 回答1: I solved the problem using TFS Build that has Nuget

Unresolved External Symbol: LNK 2001

老子叫甜甜 提交于 2019-12-13 05:35:32
问题 I just installed SFML packages using NuGET Package Manager. After installing it. I ran a basic program from its official page. Just copy and paste. #include <SFML/Graphics.hpp> int main() { sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!"); sf::CircleShape shape(100.f); shape.setFillColor(sf::Color::Green); while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); } window.clear(); window.draw(shape); window