Beforehand: This is not a 'cut and clear' programming problem. It is a toolchain problem and I do not know other places to ask it. If this is not an apropriate place to ask, excusses and I will redraw my question.
I want to use NuGet on my VS2010-pro installation.
When I go to Tools -> Extention manager... tab [online galery] I get the option to download and install NuGet, but only for version 2.8.2 (2.8.60318.667) while the latest NuGet package is 3.5.0
I want to be 'up to date' so why settle for 2.8.3?
First I looked around for any reason why for VS2010 only 2.8.3 is available but could find no answers.
Then I installed 2.8.3 with the idea to look for updates/upgrades through NuGet and get to 3.5.0 but had no success. Can't find a way to upgrade!
I cannot find a good reason why I should settle for 2.8.3 and I cannot find a way to upgrade for the VS2010 tool version of NuGet.
But I can install the CLI version of 3.5.0 without any problems.
What is the reason that for VS2010 NuGet is limited to 2.8.0, is that the case anyway or do I mis something here?
If I install NuGet CLI 3.5.0 what problems will I get with VS2010 and the 2.8.3 version?
I looked around, read a lot about NuGet but can't find an answer to these questions.
Does anybody have an idea or who can point me to a location where I can find an answer?
Kind regards.
NuGet 2.8.3 is the latest version that supports VS2010. So you won't be able to use 3.5.0 from VS2010. Looks like 3.5.0 CLI is your best bet.
Related
so, I wanted to freshly reinstall some Microsoft Servicefabric packages and for that I uninstalled all related packages from my given projects.
When trying to reinstall them, I run into the following issue:
When trying to install said package, this happens:
It seems like I have run into some kind of circular dependency here.
My project is currently clean of any any Service Fabric packages, so I am very unclear why Nuget is trying to RESTORE instead of REINSTALLING the packages.
Also, I am quite unsure how I could resolve this right now.
Can someone guide me?
The error message complains about the incompatibility between Autofac.ServiceFabric 2.2.0 version and Microsoft.ServiceFabric.Services.Remoting 3.4.641 version package.
Assuming your asp.net core project targets .net core 2.2.0, you can try to add reference to corresponding Microsoft.ServiceFabric.Services.Remoting 3.3.644 version instead of the incompatible 3.4.641 version. Then the Nu1608 and Nu1107 error would go away.
(The Autofac.ServiceFabric 2.2.0 and Microsoft.ServiceFabric.Services.Remoting 3.3.644 were both released in 4 months ago)
This must be a bug of the NuGet Package Manager I'm using (version 4.6.0). I used the option DependencyVersion highest but it always picks the lowest version for dependencies.
Like this (I'm trying to install Serilog.AspNetCore with dependencies of 2.2.0 - the latest but 2.0.0 is always picked).
install-package Serilog.AspNetCore -DependencyVersion highest
One dependency it picks is Microsoft.AspNetCore.Http.Abstractions 2.0.0 but I expected it to pick Microsoft.AspNetCore.Http.Abstractions 2.2.0.
It's important because in my project the version 2.2.0 is required, Serilog should adapt that requirement by installing with that correct version of dependencies. But here I could not do anything to help it understand what I want.
Also the Install and Update options are not shown in the UI of NuGet Package Manager (the DependencyVersion could be selected there as well when using UI to install packages). So this appears to be some bug at least in the specific version of Nuget package manager I'm using.
What could I do to solve this issue? Can I try fixing the installed nuget manager (there is not any update in the Updates window). Thanks!
UPDATE
I've just tried a traditional .NET project, it works. But the problem raised when my projects target .NET Core (ASP.NET Core)? Looks like it does not support that feature for .NET Core projects?
The DependencyVersion switch is something used to control the behavior when NuGet looks for patch versions. It seems to be introduced after NuGet 2.8, but one point we should know is this option only supports packages.config format.
There are two package management formats:Projects.config and PackageReference.
1.For traditional .net project:It can use Packages.config or PackageReference to manage its nuget packages.But by default it uses packages.config.
2.For .net core projects(which uses new SDK-format project file):It uses new PackageReference format as its Package Management format.
More details about it see: Project Type Support
And someone had post this feature request in github, see the issue here.Hope it helps.
Update:
I expected it to pick Microsoft.AspNetCore.Http.Abstractions 2.2.0
Trying deleting the bin and obj folder first,
Then go Tools menu=>Nuget Package Manager=>Package Manager Settings=>Clear All Nuget Caches.(Sometimes it will delete the packages folder in C:\Users\lancel\.nuget\packages, we need to manually create a new packages folder)
Then install the Microsoft.AspNetCore.Http.Abstractions 2.2.0 package separately before installing the Serilog.AspNetCore package. Builds the application and you can check the output .dll by setting the CopyLocalLockFileAssemblies. In my machine it references 2.2.0 version of Microsoft.AspNetCore.Http.Abstractions.dll successfully. Hope it helps:)
There are a few preliminary sources that mention that there is a new ValueTask in C# 7.0:
https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/
http://intellitect.com/generalized-async-return-types/
But I am not able to find this type?
According to the documentation, System.Threading.Tasks.ValueTask<TResult> is in the System.Threading.Tasks.Extensions package.
For those still struggling to use ValueTask, the System.Threading.Tasks.Extensions Nuget package must still be installed. My system includes VS 2017 version 15.2 along with version 4.7 of the .NET Framework - and I still had to install the Nuget package.
To install the package, from VS 2017 click on the Project menu and select Manage Nuget Packages. In the search box, enter System.Threading.Tasks.Extensions and then install it. You should be good to go after this.
I've flashbuilder 4.6 and I need to uninstall it. It appears to be missing the installation package, and as such it doesn't appear in the control panel->uninstall list for windows 7.
I have filed a case with adobe for help (as its a paid product), but after month & 1/2 no answer.
So any suggestions on how to get rid of it including any links it will have to the registry or similar. It must be a clean uninstall as to install the newer version the current one must be removed and the newer version installation knows that I have it (previous version) installed already.
I have tried the uninstall tool called Revo as well without success.
Cheers.
What I needed to do was to find the exact version of the software I used to install it originally. Then once I ran the installer, (for the already installed software) windows picked up the installation packager and I could uninstall it.
Once removed I could then install the newer version of the same software.
I've downloaded the latest release of IronRuby from codeplex and ran the install with no issues.
However when I come to create a project i receive the message:
IronRuby installation not found. Although basic scripts should work standard libraries and gems won't be available....."
This seems to be an issue with vs2010 sp1 from the project issue tracker on codeplex, but theres no fix mentioned there. I only really wanted this release for the tools support so using 1.0 is something I want to avoid.
Has anyone got any workrounds/fixes/advice?
I used NuGet to install IronRuby. When I did so, it automatically added the references for me.
Go to Tools -> Library Package Manager -> Package Manager Console.
Type Install-Package ironruby
Viola!
EDIT: If you look here, they have a link where the bug is discussed.