Skip to content

AspNetCore.App 2.1 not installing latest patch version #3236

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

Closed
spottedmahn opened this issue May 13, 2019 · 7 comments
Closed

AspNetCore.App 2.1 not installing latest patch version #3236

spottedmahn opened this issue May 13, 2019 · 7 comments

Comments

@spottedmahn
Copy link

I think this might be the same issue as dotnet/source-build#942 but I'm not 100% sure...

I removed the version from package reference as stated in the ASP.NET Core 2.0 to 2.1 upgrade guide but when I look in my project -> dependencies -> NuGet I see Microsoft.AspNetCore.App (2.1.1) and I have the 2.1.603 SDK installed. Shouldn't I be seeing (2.1.10)?

Remove the "Version" attribute on the package reference to Microsoft.AspNetCore.App. Projects which use do not need to set the version. The version will be implied by the target framework and selected to best match the way ASP.NET Core 2.1 works. (See below for more information.)

Workaround

Once I added the version number to the package I got the latest version under my project dependencies

<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.10"/>

image

Questions

  • The version number shouldn't be specified in the package reference, right? I'm not supposed to have to do that, right?
  • It's supposed to automatically find that SDK version installed on my machine, right?
  • Was that the correct workaround?
@spottedmahn
Copy link
Author

@dseefeld
Copy link

Are you still seeing issues with this?

@spottedmahn
Copy link
Author

I haven't tried putting in back, I can but what would have changed to fix this?

@spottedmahn
Copy link
Author

Just tried w/ VS 2019 Preview (16.2 Preview 4), same behavior. @dseefeld

@dseefeld dseefeld transferred this issue from dotnet/source-build Aug 22, 2019
@scalablecory
Copy link
Contributor

  • The version number shouldn't be specified in the package reference, right? I'm not supposed to have to do that, right?
  • It's supposed to automatically find that SDK version installed on my machine, right?
  • Was that the correct workaround?

You should not need to reference this package directly. The SDK noted in your csproj will bring in the appropriate package reference.

<Project Sdk="Microsoft.NET.Sdk.Web">

@spottedmahn
Copy link
Author

HI @scalablecory - I'm not sure I understand why this was closed 🤔.

The SDK noted in your csproj will bring in the appropriate package reference.

It's not 😀.

image

Should I have a version number my Project tag? Is that what you're saying?

@spottedmahn
Copy link
Author

Hi @scalablecory - any updates? Why was this closed? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants