-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 publishing is not compatible with Windows 7 #62453
Comments
Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov Issue DetailsI was building ReadyToRun executable from https://github.com/tapika/swupd
and earlier this was working (and still working on build machines where there is older version of Visual studio installed) I by myself have updated Visual studio to Visual studio 2019, 16.11.7, and same error appeared as I have noticed with newer .net 5.0 and 6.0 frameworks, so error:
According to this ticket - the intent was:
So self-extracting on .net 3.1 should be still supported / working, and new feature is planned for .net 6 or higher - it should not affect .net 3.1 or .net 5.0 framework. I suspect error handling is incorrect in this case.
This should be .net 6.0 specific error handling, not generic one.
|
I believe you should be able to use Create a file named {
"sdk": {
"version": "3.1.100",
"rollForward": "latestFeature"
}
} You can check if it's working by running |
This seems to work - I have tried also to switch to .net 5.0 - it seems to work as well. Wondering if it's possible just to exclude .net 6.0 or higher ?! I think ticket can be closed. |
I'd like this kept open - we should fix this. The goal of SDK is to be backward compatible - and in this case it isn't. Plus the fix seems pretty simple. |
@vitek-karas I see the only missing function to make Windows 7 work is There is in threads.cpp a direct call to If singlefilehost.exe used late binding the same way the .NET does, there would be no problem running single file executable in Windows 7. Could .NET team consider the fix since it should be a minimal with huge impact ? |
@vitek-karas i believe this issue has been fixed: #63533 |
Yes, single-file should now work on Windows 7. |
@agocke Many thanks for this! |
I was building ReadyToRun executable from https://github.com/tapika/swupd
build buildexe_choco_win7
and earlier this was working (and still working on build machines where there is older version of Visual studio installed)
I by myself have updated Visual studio to Visual studio 2019, 16.11.7, and same error appeared as I have noticed with newer .net 5.0 and 6.0 frameworks, so error:
According to
#60936
this ticket - the intent was:
So self-extracting on .net 3.1 should be still supported / working, and new feature is planned for .net 6 or higher - it should not affect .net 3.1 or .net 5.0 framework.
I suspect error handling is incorrect in this case.
This should be .net 6.0 specific error handling, not generic one.
The text was updated successfully, but these errors were encountered: