These are chat archives for AvaloniaUI/Avalonia

18th
Apr 2017
Weston
@ronnyek
Apr 18 2017 04:42
hokay
so
did anyone ever make progress in .net core world? is the skiasharp library distribution still a problem?
danwalmsley
@danwalmsley
Apr 18 2017 07:29
.netcore is now supported
For skia backend only
See .net core sample
😀
Darnell Williams
@Seeker1437
Apr 18 2017 13:59
@grokys may I borrow some of your time?
Matthijs ter Woord
@mterwoord
Apr 18 2017 14:01
@danwalmsley Awesome! Great work! :)
danwalmsley
@danwalmsley
Apr 18 2017 14:39
@mterwoord thanks :)
Matthijs ter Woord
@mterwoord
Apr 18 2017 14:58
sorry for missingthings, but what's the state on running avalonia on top of the linux framebuffer (while using .net core)? :)
Matthijs ter Woord
@mterwoord
Apr 18 2017 14:59
ok, so it works without having to rebuild anything? :)
ah, cool
:)
(second link)
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 15:01
there is also NuGet package Avalonia.LinuxFramebuffer currently only released too myget feed
Matthijs ter Woord
@mterwoord
Apr 18 2017 15:02
cool!
I'm hoping to get to that part of my iot project soonish (...)
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 15:03
I did try to get it running but do not have proper hardware setup, anyway it was created by @kekekeks and he knows more about this stuff :)
Matthijs ter Woord
@mterwoord
Apr 18 2017 15:20
any good tutorials on getting started with avalonia?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 15:21
Matthijs ter Woord
@mterwoord
Apr 18 2017 15:23
what version i should use? myget or nuget?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 15:24
I would recommend myget, nuget is pretty old and does not support .netstandard/core
For start you can have a look at ControlCatalog sample https://github.com/AvaloniaUI/Avalonia/tree/master/samples
If you want I have few apps written in Avalonia and @danwalmsley has also pretty big app writter in Avalonia too.
Matthijs ter Woord
@mterwoord
Apr 18 2017 15:26
i think once i get going, i'll get a lot of little questions...
the normal vs xaml editor is unusable for avalonia?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 15:31
there is Avalonia extension but does not work for VS2017
I use xml editor is VS
Matthijs ter Woord
@mterwoord
Apr 18 2017 15:32
i'm almost thinking, with a few attributes, it could work.. :)
(the normal editor)
danwalmsley
@danwalmsley
Apr 18 2017 15:52
@wieslawsoltes @kekekeks we definitely need to get some kind of previewer working again, for people who don't have experience with avalonia, trying to get to grips with the changes in XAML from wpf is almost impossible without it!
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 15:58
:+1:
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:28
i downloaded a clone of the github repository, and the controlcatalog sample doesn'tseem to work, at least, not when i coppy from it..
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:29
Did you clone or just download zip archive ?
repository has some git sub-modules dependencies without them its not possible to compile
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:30
i'm not compiling the complete soupirces
i'm copying parts of it (bootstrapping)
now opening the avalonia .sln file
so i need to really clone things?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:30
if you want to build Avalonia.sln than yes
if you want only make stand-alone app than not, but in this case you need to use avalonia from nuget's
do you want to make .NET Core app ?
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:35
ultimately yes, but for now, just trying to make a manual test app
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:37
do you use VS2015 or 2017 ?
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:37
2017
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:38
take a look at this sample project:
its using avalonia myget feed
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:45
hmm, the avaonia build scripts use the wrong msbuild property to determine bit-ness of the app....
:(
thanks, i was using the stuff from the control sample thingy
the msbuild scripts for windows use $(Platform) instead of $(PlatformTarget)
any reason for that?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:47
which script?
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:47
SkiaSharp.targets
ok, sorry, not your guys fault then
but still..:P
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:48
yeah skiasharp requires x86 or x64
at least for application projects
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:48
yes, but the Platform property is just a configuration thing. the PlatformTarget is what the project will be
makes sense?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:52
yeah not sure why SkiaSharp uses it this way
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:52
as far as I know, both Platform and Configuration are MS' failed attempt of making it possible to use a .sln file for different build configurations
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:53
we have used some configuration with Platform for mono builds
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:53
with cosmos, we used to use the sln stuff, but resorted to using a different solutions..
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:53
solution configuration are total mess :)
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:53
:)
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:54
with .NET Core its much simpler
I just use dotnet publish
like this:
dotnet restore
dotnet publish -c Release -r win7-x64 -o bin/win7-x64
dotnet publish -c Release -r win7-x86 -o bin/win7-x86
dotnet publish -c Release -r ubuntu.14.04-x64 -o bin/ubuntu.14.04-x64
dotnet publish -c Release -r ubuntu.16.10-x64 -o bin/ubuntu.16.10-x64
dotnet publish -c Release -r osx.10.12-x64 -o bin/osx.10.12-x64
and for development I use just debug builds
and my Avalonia project is very simple that way
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:57
:)
btw, i ahve the window showing now..
hmm, everything's black, including the devtools
anytrhing i'm missing?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 17:58
do you use windows 7, 8, 10 ?
Matthijs ter Woord
@mterwoord
Apr 18 2017 17:58
10
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:00
check if you have all .xaml and .cs namespace correct
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:06
i removed the default themes :)
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:06
you need them :smile:
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:07
:)
no warning anywhere
:(
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:07
@mterwoord This is also good place to see Avalonia xaml https://github.com/AvaloniaUI/Avalonia/tree/master/src/Avalonia.Themes.Default
You can enable logging
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:08
hmm, so.. next step is find some way to have kind-of-like intellisense for the xaml and get cracking at porting my framework to support avalonia :)
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:08
well we have this https://github.com/AvaloniaUI/AvaloniaVS, but it needs to be ported to VS2017
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:09
let me ask a guy from cosmos, on how much work he thinks it is. :)
it's a vsix, right?
yes vsix
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:11
did someone give th eporting a try?
according to my friend (@charlesbetros) it should migrate automagically, or be simple if it doesn't
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:11
there are some issues
with controls I think
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:12
controls? you mean avalonia controls?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:12
no
@kekekeks should know more about this
I thinks there was some issue with casting
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:14
curious to know what it was. :)
great source base btw! keeps my i7 busy for a bit. :P
but building fails.
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:14
oh you mean Avalonia
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:14
anything i need to know?
yea :)
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:15
disable Android and iOS projects
there is issue with Xamarin
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:15
@charlesbetros joined the chat, iirc.
thats why our appveyor ci builds fail :fire:
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:16
i can't build. something goes wrong with Cairo..
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:17
ugh, no nugets for that?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:17
yeah
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:17
ie, no nugets, or there are nugets?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:17
no nugets as far I know
generally we are using SkiaSharp, Cairo is not really recommended
nor maintained latetly
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:18
aahh, gtk# only includes the wrappers i think
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:18
Gtk# is windows back-end
Cairo is rendering back-end
Matthijs ter Woord
@mterwoord
Apr 18 2017 18:19
yeah, but isn't it a .net wrapper for the gtk unmanaged libs?
Wiesław Šoltés
@wieslawsoltes
Apr 18 2017 18:19
I use SkiaSharp and Direct2D rendering backends