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

Upgrade the SDK after creating and running projects, the SDK was installed SxS not upgraded. #17907

Open
v-elenafeng opened this issue Dec 4, 2023 · 4 comments
Assignees

Comments

@v-elenafeng
Copy link

Describe the bug

Upgrade the SDK after creating and running projects, the SDK was installed SxS not upgraded.

  • Reproduces with all 8.0/7.0/6.0 scenarios.
  • Doesn't repro if you don't run the step 3 below.

To Reproduce

  1. Clean machine: Win11 23h2 ENU
  2. Install SDK 7.0.404 latest released build
  3. Run the workthrough [7.0] WebAppWithClassLibViaCommandLine
  4. Close all windows
  5. Download and install the Jan 2024 SDK 7.0.405 prerelease build

Actual

  • Issue1: The SDK was installed Side by Side not upgraded.
    • At the end of the installation, the first SDK was modified.
  • Issue2: A "Files In Use" window pops up: The ".NET Host" are using files that need to be updated.
    • And there are two identical ".NET Host" here.
  • Issue3: Need restart
    • "You must restart your computer to complete the installation of the xxx" displayed at the end page.
    • The content is displayed incompletely due to excessive indentation and the page cannot be enlarged.

image
image

Exceptions

The SDK can be successfully upgraded without any unexpected pop-ups and restart requirements.

Further technical details
.NET SDK:
Version: 7.0.405
Commit: b563db8

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.405\

Host:
Version: 7.0.15
Architecture: x64
Commit: 8f4568cdaa

.NET SDKs installed:
7.0.404 [C:\Program Files\dotnet\sdk]
7.0.405 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

@richaverma1
Copy link

Can you check if this repros when upgrading from October to November builds?

@v-elenafeng
Copy link
Author

Can you check if this repros when upgrading from October to November builds?

Reproduced!

@marcpopMSFT
Copy link
Member

Ok, this is not a blocker since it occured before. It looks like it's leaving an empty sdk directory because something in that directory is locked during the uninstall.

@joeloff
Copy link
Member

joeloff commented May 14, 2024

RM/FilesInUse is expected behavior when doing upgrades and files are being used. Restarts depend on the SIDs associated with running the update and the application being used, whether applications have implemented any RM protocols, the type of application (windowed or console), global policy settings for MSIs and restarts, and whether or not the application was registered.

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

4 participants