by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:22
    grokys opened #4470
  • 16:22

    grokys on bump-version

    Bump version to 0.10.999 for CI… (compare)

  • 15:17
    Martin005 commented #4468
  • 14:26
    grokys opened #4469
  • 14:23

    grokys on direct-property-metadata

    Move some tests. Tests for `Av… Expose OverrideMetadata for dir… Added property metadata tests. (compare)

  • 14:09
    rstm-sf synchronize #4418
  • 13:19
    xiangzhai commented #4086
  • 12:26
    Gillibald commented #4048
  • 09:52
    JaggerJo commented #4048
  • 09:44
    grokys commented #4048
  • 09:43
    grokys labeled #4048
  • 09:43
    grokys labeled #4461
  • 09:43
    grokys commented #4461
  • 09:39
    chancezheng opened #4468
  • 09:24
    kekekeks commented #4423
  • 08:57
    grokys commented #4048
  • 08:09
    mate1213 commented #4426
  • 07:57
    mate1213 commented #4426
  • 07:41
    xiangzhai commented #4086
  • 07:13
    xiangzhai commented #4086
danwalmsley
@danwalmsley
unless your implementing some CustomContentControl with its own template, then you might use ContentPresenter
Steven Kirk
@grokys
that's actually the same in WPF. our ContentPresenter should work in this situation as well tbh, but it's not the really strictly the correct control. ContentControl is the right control in both WPF and Avalonia
Deadpikle
@Deadpikle
Hm. Then, since ContentPresenter didn't work as I would expect in WPF, should I file a bug for unexpected behavior? (Literally swapped ContentPresenter -> ContentControl and it worked out OK.)
...of course, unless the right answer is "Why are you using ContentPresenter and not ContentControl in WPF?" :P
Jose C Gomez
@josegomez
FormStartup.CenterOwner doesn't work for jack on Linux
is this a known issue?
Fredrik Elestedt
@elestedt
I just created a new avalonia.mvvm application for .NET Core on Windows 10 (using dotnet new avalonia.mvvm). If I then change the target framework to Core 3.0 or 3.1 - the application fails to start with an exception about skiasharp not being found. Is this a knows issue? Couldn't find a compatibility list on the website that excludes 3.0/3.1.
Nikita Tsukanov
@kekekeks
SkiaSharp.dll or libSkiaSharp.dll?
Fredrik Elestedt
@elestedt
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Avalonia.Skia.TypefaceCache' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libSkiaSharp' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Just got the same from a published app dotnet publish -f netcoreapp2.2 -c release -r win10-x64
Feels like something with my setup - no clue about what though
Nikita Tsukanov
@kekekeks
I think it needs MSVC++ Runtime installed
danwalmsley
@danwalmsley
@kekekeks there was talk that in future release skiasharp would statically linke msvc++
Fredrik Elestedt
@elestedt
So I make a self-contained .NET Core app - but I still need to install MSVC++?
sounds reasonable
Nikita Tsukanov
@kekekeks
Does libSkiaSharp.dll exist in your publish directory?
Wiesław Šoltés
@wieslawsoltes
It should be statically linked
Fredrik Elestedt
@elestedt
yes, it does
it's about 6Mb
signed by Xamarin Inc on the 2nd of december 2018
Nikita Tsukanov
@kekekeks
image.png
Hmmm
Please, try to run some hello world app with Skia
Fredrik Elestedt
@elestedt
It works in debug in visual studio though.
Nikita Tsukanov
@kekekeks
Which version of Avalonia are you using?
Fredrik Elestedt
@elestedt
0.9.2
Nikita Tsukanov
@kekekeks
So it should be using SkiaSharp 1.68.0
Fredrik Elestedt
@elestedt
Yes
Tried forcing it to a later version - no change
Nikita Tsukanov
@kekekeks
Mkay, which RID are you targeting with dotnet publish?
Fredrik Elestedt
@elestedt
win10-x64
posted the full command a few posts back
Nikita Tsukanov
@kekekeks
Try win7-x64
it might be attempting to use an UWP version
Fredrik Elestedt
@elestedt
found the reason
worked with win10-x86..
well, not the reason - more of a workaround
Nikita Tsukanov
@kekekeks
Try to reproduce with a hello-world SkiaSharp app
i. e. create a console app and attempt to create an SkBitmap
Fredrik Elestedt
@elestedt
I will, but not tonight. Got something else I've got to do now.
I'll also try installing the MSVC++ and see if that makes a difference (on another computer or VM)
Nikita Tsukanov
@kekekeks
Most likely SkiaSharp issue
I think we aren't testing with win10-* RIDs
Fredrik Elestedt
@elestedt
I'll see if I can isolate it to them and file a bug report. Thanks for the sounding board :)
ahopper
@ahopper
under 3.1 I found using -r win-x64 fixed various issues with publishedtrimmed or readytorun vs win7-x64
Tom Lietze
@JackDjTom
If i setup Visual Studio with Avalonia on Windows and create a Avalonia MVVM Application, is it then possible to copy the \bin folder into a linux OS and run the .exe there ?
danwalmsley
@danwalmsley
If dotnet is installed on Linux then yes
Nikita Tsukanov
@kekekeks
I think there is something about native deps not being copied to bin
So it's better to use dotnet publish -r osx-x64 instead