-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Permissive handling for runtimeconfig.json #92037
Conversation
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsThis is a follow up to #91238. With these changes users can omit
|
Sorry for the possible misunderstanding. I perceived the discussion in #91238 as concluding that we would only change |
Ah! I will update the PR accordingly. |
Opt ComHost out and IjwHost in.
@dotnet-policy-service agree company="Autodesk" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The product changes look good.
We need to add a test for the new behavior as well - and ideally also test that comhost correctly fails without a runtime config (not sure if we have such a test).
The ijwhost tests are here: https://github.com/dotnet/runtime/blob/main/src/installer/tests/HostActivation.Tests/NativeHosting/Ijwhost.cs
What I would do is modify this
else if (pal::strcmp(command, _X("ijwhost")) == 0) |
And then just add a new test into the C# part which moves/renames the runtimeconfig (make sure to make a copy of the test asset so that it doesn't corrupt test state for the other tests).
|
@vitek-karas PR has been updated as you requested. |
src/installer/tests/HostActivation.Tests/NativeHosting/Comhost.cs
Outdated
Show resolved
Hide resolved
src/installer/tests/HostActivation.Tests/NativeHosting/Ijwhost.cs
Outdated
Show resolved
Hide resolved
This ensures consistent start point for each test
@vitek-karas @elinor-fung Is there anything else you need to approve this? |
src/installer/tests/HostActivation.Tests/NativeHosting/Ijwhost.cs
Outdated
Show resolved
Hide resolved
One last suggestion for tests. Everything else looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@elinor-fung I can't merge this. Can you please merge? |
@szilvaa-adsk : Thank you very much for the change! |
This is a follow up to #91238. With these changes users can omit
.runtimeconfig.json
for C++/CLI dlls (i.e. dlls on Windows that link to ijwhost.dll) that are loaded after the runtime is already initialized. Note that missing.runtimeconfig.json
will continue to cause a failure in all other situations.