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

Framework dependent self contained windows app locks the file #2226

Closed
Logerfo opened this issue Jan 27, 2020 · 2 comments
Closed

Framework dependent self contained windows app locks the file #2226

Logerfo opened this issue Jan 27, 2020 · 2 comments

Comments

@Logerfo
Copy link

Logerfo commented Jan 27, 2020

Steps to reproduce

  1. Open a framework dependent self contained windows application. The contents will be extracted into something like %temp%/.net/$AppName/$RandomKey.
  2. Try to rename the original file (not the temp one) with the application open. It will do just fine, since the file is not locked.
  3. Close the application.
  4. Open the application again (using the original file, not the temp one). Notice that the extraction process will not occur again.
  5. Try to rename the original file again.

Expected behavior

  • Just like the first time, the renaming process should happen gracefully.

Actual behavior

  • The renaming process will fail, since the file is being used by another process (itself).

Why it matters

  • Self renaming operation is often part of application binary self updating processes.

Disclaimer

  • I'm not sure if it's necessary for the self contained application to be framework dependent in order to reproduce this issue.
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jan 27, 2020
@jkotas
Copy link
Member

jkotas commented Jan 27, 2020

Looks like a dup of #1260. cc @swaroop-sridhar

@Logerfo
Copy link
Author

Logerfo commented Jan 27, 2020

Thanks, @jkotas! I'll close this one.

@Logerfo Logerfo closed this as completed Jan 27, 2020
@swaroop-sridhar swaroop-sridhar removed the untriaged New issue has not been triaged by the area owner label Jan 27, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants