-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PackageReference enhancements #6763
Comments
When will PackageReference with ASP.NET/.NET Framework projects be supported? |
@jemiller0 PackageReference already works with ASP.NET/.NET Framework projects. We use it on daily basis and cannot be thankful enough to NuGet team for delivering such an excellent feature. Do you have any specific issues with PackageReference in ASP.NET/.NET Framework projects? |
According to https://docs.microsoft.com/en-us/nuget/reference/migrate-packages-config-to-package-reference, migration is not supported for ASP.NET projects. I guess this is a limitation of Visual Studio. Did you have to convert your projects manually? If so, are there instructions somewhere on how to do so? |
@jemiller0 The absence of PackageReference migration for ASP.NET projects looks like omission. Meanwhile you are welcome to use NuGet PackageReference Upgrader which delivers pretty solid results. |
There seem to be some problems to resolve before enabling PackageReference in ASP.NET projects. See also here. |
It would be nice if Microsoft would state what their plans are with regard to this. I see them adding all kinds of other enhancements to Visual Studio while not giving something like this priority. IMHO, this should be a top priority because it is a source of a lot of frustration and is more fundamental than a lot of the other stuff they are working on. |
In packages.config we used to be able to restrict updates of a specific package using allowedVersions, for example:
This is very useful when there are compatibility issues. Is this possible with PackageReference? |
this is indeed a great feature missing and tracked here |
I am still facing issues with package reference in .net framework the dependencies of the package are not loaded properly which is causing lot of issues . |
@merravid PackageReference versions accept Version Ranges. You can use this to lock to a single version by putting square brackets (
|
The bottom line is Microsoft doesn't care about .NET Framework. They are doing their best to kill it off. They said they were going to add package reference support for ASP.NET Web Forms projects (in Visual Studio, like they did for the other types of projects). It's years later and they never did it. |
this doesn't work, I've added it
but VS still shows updates but in
The Android app with packages.config doesn't show it:
I did the .net 3.x migration in a different branch and want to ignore the updates for this .net core 2.x brunch. |
@MagicAndre1981 The code you have shown there will automatically resolve a version between 2.2.0 and 3.0.0. If you want to lock the version to 2.2.0 your code should be:
As I mentioned in my original response, this works to lock a single version, otherwise you're asking it to resolve a version within that range which, I agree, is not the same mechanism as |
But that is the main point, this part is missing and I want to have the same control like with packages.config. This is why the I would like to have something like this:
I use 16.4 servicing baseline of VS2019 which only supports up to .net core 3.1 and when .net 5 is released and don't want that updates shown for that branch as the VS is incompatible. |
I'm going to need the same thing for restricting the version of EF Core that I'm using, since Microsoft is now requiring .NET Standard 2.1 for it. Only 3.1.x will work with .NET Framework. Once .NET 5 comes out, it will be DLL hell. |
is package reference is fully supported for .Net framework especially for v4.6.2 ? |
Hey all, Summarizing the status of the listed issues:
At this point, given that we only have 1 issue left, we'll continue tracking that work in that issue to avoid duplication. |
PackageReference requirements, at a glance:
The text was updated successfully, but these errors were encountered: