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

Single-File: dotnet don't check if the temp files are corrupted #34035

Closed
yehia2amer opened this issue Mar 24, 2020 · 3 comments
Closed

Single-File: dotnet don't check if the temp files are corrupted #34035

yehia2amer opened this issue Mar 24, 2020 · 3 comments
Labels
area-Single-File untriaged New issue has not been triaged by the area owner

Comments

@yehia2amer
Copy link

Problem
I got a weird issue from one of my customers, that each time he is trying to run the application. he got this error:

Error:
  An assembly specified in the application dependencies manifest (appname.deps.json) was not found:
    package: 'Microsoft.DotNet.PlatformAbstractions', version: '2.0.4'
    path: 'lib/netstandard1.3/Microsoft.DotNet.PlatformAbstractions.dll'

After debugging for a couple of hours it turns out that the files in the temp folder : %TEMP%.net are somehow corrupted or not complete. and the issue was fixed by deleting the folder and running again.

Suggested Solution
dotnet save a hash of this temp folder and if it don't match it regenerate this folder.

Environment
Windows 10 - 1809
dotnet core 3.1

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Single-File untriaged New issue has not been triaged by the area owner labels Mar 24, 2020
@vitek-karas
Copy link
Member

/cc @swaroop-sridhar

@swaroop-sridhar
Copy link
Contributor

Thanks for reporting this @yehia2amer.
A fix for this problem is approved for .net core 3.1 servicing: dotnet/core-setup#9013. It is expected to be in the May release.

@swaroop-sridhar
Copy link
Contributor

Dup of #3778

@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Single-File untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants