Fix StructuredLogViewer.Avalonia to work on source-build SDKs#765
Merged
KirillOsenkov merged 1 commit intoKirillOsenkov:mainfrom Mar 21, 2024
Merged
Fix StructuredLogViewer.Avalonia to work on source-build SDKs#765KirillOsenkov merged 1 commit intoKirillOsenkov:mainfrom
KirillOsenkov merged 1 commit intoKirillOsenkov:mainfrom
Conversation
- Move to .NET 8, since the code uses language features that do not work against .NET 7.0.1xx SDKs. - Move to recommended portable runtime identifers instead of non-portable/OS-specific ones like ubuntu-14.04, or win7. .NET - Take a dependency on SkiaSharp.NativeAssets.Linux for any Linux-based OS, even when using a source-build SDK.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Move to .NET 8, since the code uses language features that do not work against .NET 7.0.1xx SDKs.
Move to recommended portable runtime identifers instead of non-portable/OS-specific ones like ubuntu-14.04, or win7. .NET
Take a dependency on SkiaSharp.NativeAssets.Linux for any Linux-based OS, even when using a source-build SDK.
Here's more details on the above:
I started trying to use this with a .NET 7 SDK on Fedora:
And the viewer did not work for me:
To get support for these language features, I tried installing and using .NET 8:
But the application still did not work for me:
So I moved the project to .NET 8:
Trying to run the application again led to:
So I fixed that that by moving to the portable RIDs:
Then I tried to run that:
It looked like the SkiaSharp native dependency wasn't being added. I think this is because the non-portable SDK's RuntimeIdentifier isn't Linux. So I switched the conditional to compare with the portable RID:
And then
./run.shworked 🎉