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

"you must install or update .net to run this application" localization or personnalization improvements #110013

Open
julienGrd opened this issue Nov 20, 2024 · 6 comments
Milestone

Comments

@julienGrd
Copy link

Hello guys, i developed a .net 9.0 winform app, published in framework dependant and targeting win-x64.

First time a user will run this app, he will have the message "you must install or update .net to run this application" to install the framework, which is good.

Problem, my app is deployed in french market, most of the user don't speak english and it seem they are scared of this message and some of them refused to go further thinking its a virus or something like that.

I was wondering if some personnalization of this window was possible, for example use the system language will be better, and even more, have the ability to decide itself which message show in the window so it could be personnalize, for example by overriding some entries in runtimeconfig.json or things like that. Overriding the logo would be nice too.

What do you think about that ? Is it something you are thinking or can be added in your roadmap ?

thanks !

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 20, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@colejohnson66
Copy link

Could you publish as self-contained instead?

@julienGrd
Copy link
Author

Could you publish as self-contained instead?

not really, its not the idea. Actually this winform app is deployed on server environnement to be use as an installer/configurer for a asp .net server app (in .net 9.0 also)

So the idea was more to have the .net installed on the machine because the webapp will need too, otherwise i also have to make my webapp self-contained. all of this will increase a lot the size of my app (of the two apps actually).

@agocke
Copy link
Member

agocke commented Nov 21, 2024

Right now I think your options are limited to writing a custom host: https://learn.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting

However, this has come up as an issue before. @elinor-fung @vitek-karas do you know if there is an existing tracking issue?

@agocke agocke added this to the 10.0.0 milestone Nov 21, 2024
@agocke agocke removed the untriaged New issue has not been triaged by the area owner label Nov 21, 2024
@vitek-karas
Copy link
Member

There's been something similar for self-contained: #50081
Potentially also #3687 - but that should not be an issue for most apps anymore.

Localization of the host has been discussed before, my understanding is that for now we decided not to do it. The proposed "Use the host's OS language" might be problematic for size - it would require the apphost to carry localization for all languages and then at runtime pick the right one.

This is also somewhat of a slippery slope - we add localization, customized messages, icons... what next? The more scalable solution would be a good example for this scenario which uses a custom host. With nethost and hostfxr the actual functional code in the custom host is about 1 page of C++, I could see us simplifying that even more by adding more helpers to nethost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

5 participants