Skip to content
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

[Package Issue]: Microsoft .NET SDK: Upgrade installs the packages, but still says updates are available #168528

Closed
2 tasks done
jaliyaudagedara opened this issue Aug 21, 2024 · 1 comment · Fixed by #168546, #168714 or #168716
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.

Comments

@jaliyaudagedara
Copy link

jaliyaudagedara commented Aug 21, 2024

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

Created an winget-cli/issues/4609 already. I am creating this as per the recommendation there.

winget upgrade shows some Microsoft .NET SDK updates as available. Installed them using winget upgrade --all. Once installation is completed when running winget upgrade still shows updates.

image

Steps to reproduce

winget upgrade
winget upgrade --all
winget upgrade

Actual behavior

Once updates are installed, still it displays updates are available.

Expected behavior

Once updates are installed, it shouldn't be displayed again as available.

Environment

winget --info                                                                                      pwsh  21:48:40 
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.4037
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Screenshots and Logs

Uploading DiagOutputDir.zip…

@jaliyaudagedara jaliyaudagedara added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Aug 21, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Aug 21, 2024
@jaliyaudagedara jaliyaudagedara changed the title [Package Issue]: Package.Identifier Microsoft .NET SDK: Upgrade installs the packages, but still says updates are available [Package Issue]: Microsoft .NET SDK: Upgrade installs the packages, but still says updates are available Aug 21, 2024
@Dragon1573
Copy link
Contributor

Dragon1573 commented Aug 21, 2024

Validate in Windows 11 amd64 Sandbox instance.

--> Installing WinGet
--> Disabling safety warning when running installer
Tip: you can type 'Update-EnvironmentVariables' to update your environment variables, such as after installing a new software.
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install -e Microsoft.DotNet.SDK.8 -v 8.0.108
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: Y
Found Microsoft .NET SDK 8.0 [Microsoft.DotNet.SDK.8] Version 8.0.108
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.108/dotnet-sdk-8.0.108-win-x64.exe
  ██████████████████████████████   213 MB /  213 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget update
Name                             Id                     Version       Available      Source
-------------------------------------------------------------------------------------------
Microsoft Edge                   Microsoft.Edge         100.0.1185.36 127.0.2651.105 winget
Microsoft .NET SDK 8.0.108 (x64) Microsoft.DotNet.SDK.8 8.0.108       8.0.401        winget
2 upgrades available.

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget upgrade -e Microsoft.DotNet.SDK.8
Found Microsoft .NET SDK 8.0 [Microsoft.DotNet.SDK.8] Version 8.0.401
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.401/dotnet-sdk-8.0.401-win-x64.exe
  ██████████████████████████████   209 MB /  209 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget update
Name                             Id                     Version       Available      Source
-------------------------------------------------------------------------------------------
Microsoft Edge                   Microsoft.Edge         100.0.1185.36 127.0.2651.105 winget
Microsoft .NET SDK 8.0.108 (x64) Microsoft.DotNet.SDK.8 8.0.108       8.0.401        winget
2 upgrades available.

Maybe UpgradeBehavior: uninstallPrevious is necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.
Projects
None yet
2 participants