Fixing problem on Linux where dotnet run
fails because we try to set an IIS config
#17903
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a follow up on #17886 which, after some discussion, seemed like a bad idea as there was a small possibility that we would break behavior that package developers might rely on.
Instead of not setting the global config, this catches errors while adding global rule to allow synchronous IO for IIS only (Kestrel one should run anywhere regardless, so I've kept it as it was before).
This has been tested on a Ubuntu machine with the apt package manager using these 3 commands:
sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-9.0
sudo apt-get update && \ sudo apt-get install -y aspnetcore-runtime-9.0
Installing Umbraco as described in the documentation would fail with a
TypeLoaderException
before this change:After this fix it runs like it should:
Notes