These are chat archives for AvaloniaUI/Avalonia

19th
Feb 2018
Nikita Tsukanov
@kekekeks
Feb 19 2018 05:25
Nope
We need to reupload vs extension
and then we are ready to go
it currently has templates that are pointing to 0.6.0 packages
instead of 0.6.1
Jeremy Koritzinsky
@jkoritzinsky
Feb 19 2018 05:49
Sounds good. Also the getting started link in the release blog post is broken.
Nikita Tsukanov
@kekekeks
Feb 19 2018 06:35
@grokys Please, reupload vs extentension
Jeremy Koritzinsky
@jkoritzinsky
Feb 19 2018 07:09
@kekekeks I just re-uploaded the extension
I guess I should have updated the version first
Nikita Tsukanov
@kekekeks
Feb 19 2018 07:37
Mkay, I guess we are ready to go
ahopper
@ahopper
Feb 19 2018 08:02
just noticed the new templates fail on .net461 x64 builds, fine on .netcore x64
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:02
fail?
ahopper
@ahopper
Feb 19 2018 08:04
1>C:\Program Files\dotnet\sdk\2.1.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file 'C:\Users\alan\OneDrive\scratch\AvaloniaApplication2\AvaloniaApplication2\obj\project.assets.json' doesn't have a target for '.NETFramework,Version=v4.6.1/win7-x64'. Ensure that restore has run and that you have included 'net461' in the TargetFrameworks for your project. You may also need to include 'win7-x64' in your project's RuntimeIdentifiers.
1>C:\Program Files\dotnet\sdk\2.1.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file 'C:\Users\alan\OneDrive\scratch\AvaloniaApplication2\AvaloniaApplication2\obj\project.assets.json' doesn't have a target for '.NETFramework,Version=v4.6.1/win7-x64'. Ensure that restore has run and that you have included 'net461' in the TargetFrameworks for your project. You may also need to include 'win7-x64' in your project's RuntimeIdentifiers.
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:07
Something is wrong with your SDK
ahopper
@ahopper
Feb 19 2018 08:11
I can build x64 wpf 4.6.1 apps no problem, I'll try a different pc.
Jeremy Koritzinsky
@jkoritzinsky
Feb 19 2018 08:24
I'll xpost to /r/programming in the morning when people are more likely to see it.
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:27
it's morning in Europe now, so it makes sense to make /r/programming x-post when it's morning in America, yes
ahopper
@ahopper
Feb 19 2018 08:28
@kekekeks same issue on another machine
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:28
Please, show your project file
ahopper
@ahopper
Feb 19 2018 08:29
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
<Compile Update="**\*.xaml.cs">
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
<EmbeddedResource Include="**\*.xaml">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Assets\*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.6.1" />
<PackageReference Include="Avalonia.Desktop" Version="0.6.1" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.6.1" />
</ItemGroup>
</Project>
Steven Kirk
@grokys
Feb 19 2018 08:31
@ahopper what happens if you create a new "Console App (.NET Core)"?
and then change the TargetFramework to net461
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:32
<Platforms>AnyCPU;x64</Platforms>
That's the issue, I guess
You are doing it wrong
ahopper
@ahopper
Feb 19 2018 08:35
Quite happy to believe I'm doing it wrong, I used configuration manager to select x64
Steven Kirk
@grokys
Feb 19 2018 08:36
oh yeah i didn't see that
i wonder why configuration manager did that!
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:36
Visual Studio is still kinda broken when it comes to the new SDK
ahopper
@ahopper
Feb 19 2018 08:37
how should I do it?
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:37
<RuntimeIdentitifer>win7-x64</RuntimeIdentitifer>
Steven Kirk
@grokys
Feb 19 2018 08:37
@ahopper these are the valid values for TargetFrameworks https://docs.microsoft.com/en-us/dotnet/standard/frameworks
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:38
@grokys TargetFrameworks property is fine, it's Platforms that's broken
RID should be used instead
Steven Kirk
@grokys
Feb 19 2018 08:38
ah yeah
sorry, too early for me ;)
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:38
BTW, I'm not sure why anyone would use x64 for UI application
It's not like you need more than 2GB of address space for your data
ahopper
@ahopper
Feb 19 2018 08:43
my gui uses a c++dll for some heavy dsp stuff and it performs better on x64
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:45
Ah, OK
You should be able to run it with <RuntimeIdentitifer>win7-x64</RuntimeIdentitifer>
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:57
You should be able to run it with <RuntimeIdentitifer>win7-x64</RuntimeIdentitifer>
@grokys we need to update the main page
It still states that we are in alpha
Steven Kirk
@grokys
Feb 19 2018 08:58
yeah, i made a start on that yesterday but didn't get to finish it
Nikita Tsukanov
@kekekeks
Feb 19 2018 08:58
I think we need to put some screenshots from core2d and avalonstudio there
It's the main page, after all, we should use it for a showcase
Steven Kirk
@grokys
Feb 19 2018 08:59
yep, that sounds like a good idea
Krutonium
@Krutonium
Feb 19 2018 08:59

http://avaloniaui.net/images/inspection-support.png

This screenshot should be made so it doesn't fly off the right side of the screen

Steven Kirk
@grokys
Feb 19 2018 08:59
maybe link to the quickstart guides instead of the "how do i try it out" section
the quickstart guides should probably have screenshots though
so much to do...
i will try to spend a couple of hours on it when i have time
@Krutonium yeah, and that screenshot is really outdated too!
the repo underneath is still grokys/Perspex!
Krutonium
@Krutonium
Feb 19 2018 09:01
And probably shouldn't be against the backdrop of a GitHub issue ;)
Steven Kirk
@grokys
Feb 19 2018 09:01
well that's where the Avalonia repo started out!
years ago ;)
Krutonium
@Krutonium
Feb 19 2018 09:02
Haha ye
Meant to say Issue, instead of repo
Sends the wrong message ;)
Steven Kirk
@grokys
Feb 19 2018 09:02
yeah it all needs to be redone
Krutonium
@Krutonium
Feb 19 2018 09:02
May I suggest
If you don't mind me suggesting
Using Jekyll?
It makes sites like this very easy
Steven Kirk
@grokys
Feb 19 2018 09:03
yeah i've used jekyll and it does seem a lot easier than wyam which we're using now. however the advantage of wyam from what i understand is that it can generate our API docs
we used to use docfx for that, but it was pretty much unusable
so until there's a better solution there i think wyam is the best option
even though its documentation sucks
Nikita Tsukanov
@kekekeks
Feb 19 2018 09:05
our API isn't RESTful, you know
Steven Kirk
@grokys
Feb 19 2018 09:05
would that work on our documentation?
Krutonium
@Krutonium
Feb 19 2018 09:05
Not a clue
Just the top google result lol
Steven Kirk
@grokys
Feb 19 2018 09:05
ha
Krutonium
@Krutonium
Feb 19 2018 09:05
I've never done anything like that specifically.
Steven Kirk
@grokys
Feb 19 2018 09:06
i've tried the .net-specific ones: sandcaste and docfx and they both kinda suck
wyam seems to make this easy
Krutonium
@Krutonium
Feb 19 2018 09:06
Perhaps a mix?
Nikita Tsukanov
@kekekeks
Feb 19 2018 09:06
docfx takes hours to process our repository
Steven Kirk
@grokys
Feb 19 2018 09:07
yeah, it's unusable
i'm not sure a mix would be an improvement
two things to go wrong/learn
Krutonium
@Krutonium
Feb 19 2018 09:07
That's fair
Steven Kirk
@grokys
Feb 19 2018 09:09
jekyll is a lot better though, i understand. and our theme is fugly but it's the only one available!
Krutonium
@Krutonium
Feb 19 2018 09:09
Regardless, I can fully agree the site needs a makeover and update in general
Steven Kirk
@grokys
Feb 19 2018 09:09
i tried to start on re-theming it but gave up
Krutonium
@Krutonium
Feb 19 2018 09:09
Well, an update anyway
Steven Kirk
@grokys
Feb 19 2018 09:09
wyam's documentation is almost as bad as ours ;)
Krutonium
@Krutonium
Feb 19 2018 09:10
TBH I've never found API doc's particularly useful, at least never as useful as just having someone show me the code in action. Not really relevant here, but ye.
Steven Kirk
@grokys
Feb 19 2018 09:10
like, you read the documentation and the first page is called "Documents" and says this: https://wyam.io/docs/concepts/documents
that tells me nothing as a newcomer!
Krutonium
@Krutonium
Feb 19 2018 09:11
I'm three sentences in and lost.
That is Horrible.
Steven Kirk
@grokys
Feb 19 2018 09:11
yeah. i want to know 1. how to add a document
doesn't tell me
Krutonium
@Krutonium
Feb 19 2018 09:12
\0. How to create a document(?)
Steven Kirk
@grokys
Feb 19 2018 09:12
i think i'll add an issue
Eric Mellino
@mellinoe
Feb 19 2018 09:12
Congrats on the beta everyone, exciting stuff!
Krutonium
@Krutonium
Feb 19 2018 09:12
Seriously though, Congrats ^.^
I've been looking forward to Avalonia being in a state where I can reasonably use it in some of my own stuff.
So right now, your docs are generated by parsing the source?
Steven Kirk
@grokys
Feb 19 2018 09:18
thanks @mellinoe!
@Krutonium our API docs are produced from the XML that the C# compiler emits for the /// doc comments
but we also need really need to work on non-API docs
Steven Kirk
@grokys
Feb 19 2018 09:26
man we really need a decent theme for avaloniaui.net
it's so hard to read
ahopper
@ahopper
Feb 19 2018 09:30
@kekekeks @grokys Thanks for your help, using RID got rid of the error but the net461 exe produced reports IntPtr.Size as 4 so still is 32bit, the netcore version is fine (and what I want so I won't persevere right now )
Steven Kirk
@grokys
Feb 19 2018 09:40
glad you got it working at least a bit @ahopper
@kekekeks would it be difficult to get https://avaloniaui.net to work? i'm so used to everything being https that i keep typing it ;)
Nikita Tsukanov
@kekekeks
Feb 19 2018 09:42

wyam's documentation is almost as bad as ours

They have that samson theme which is a bunch of cshtml and less files

Hmm.... I guess I could setup https with letsencrypt
Steven Kirk
@grokys
Feb 19 2018 09:43
yeah but the samson theme is the only one, and it's not exactly pretty...
Matthijs ter Woord
@mterwoord
Feb 19 2018 09:43
where is the site hosted?
own server? if so, letsencrpt should be easy
Nikita Tsukanov
@kekekeks
Feb 19 2018 09:49
I'm kinda afraid to run their scripts
Since it might break other projects on the server
danwalmsley
@danwalmsley
Feb 19 2018 09:49
I think we need to put some screenshots from core2d and avalonstudio there
I will get some nice screenshots sorted for you guys!

I think we need to put some screenshots from core2d and avalonstudio there

I will get some nice screenshots sorted for you guys!

Matthijs ter Woord
@mterwoord
Feb 19 2018 09:59
it seems with manual settings you can configure it to not automagically change configs
Wiesław Šoltés
@wieslawsoltes
Feb 19 2018 11:21
@kekekeks @danwalmsley Regarding screenshots you can use https://github.com/wieslawsoltes/AvaloniaShowcase to create them from binaries or use from the repo
@kekekeks @danwalmsley Regarding screenshots you can use https://github.com/wieslawsoltes/AvaloniaShowcase to create them from binaries or use from the repo
Nikita Tsukanov
@kekekeks
Feb 19 2018 11:24
Steven Kirk
@grokys
Feb 19 2018 11:46
oh, i wonder where that was moved to. not sure i ever saw what was on there - i think i just took that blurb from the PR
Nikita Tsukanov
@kekekeks
Feb 19 2018 14:09
It's 9:09 EST now, I guess it's time to x-post
Or may be we should wait for the morning to come in PST
not sure
Gutemberg Ribeiro
@galvesribeiro
Feb 19 2018 15:03
congrats on the release guys :)
Jeremy Koritzinsky
@jkoritzinsky
Feb 19 2018 16:35
I've cross posted.
Nikita Tsukanov
@kekekeks
Feb 19 2018 16:40
:+1:
Steven Kirk
@grokys
Feb 19 2018 17:26
anyone submitted to hacker news yet?
Nikita Tsukanov
@kekekeks
Feb 19 2018 17:30
nope
changed the title to be the same as the reddit posts
Nikita Tsukanov
@kekekeks
Feb 19 2018 17:50
@grokys it seems that Windows 10 Creators Update has introduced a new DPI awareness mode
Steven Kirk
@grokys
Feb 19 2018 17:52
and idea what the difference between that and what we currently have is?
Nikita Tsukanov
@kekekeks
Feb 19 2018 17:52
It's now possible to make the non-client area DPI-aware
Other features include win32-dialogs and common controls DPI support
Steven Kirk
@grokys
Feb 19 2018 17:53
oh interesting, i need to read more about it - just skimmed it so far
Nikita Tsukanov
@kekekeks
Feb 19 2018 18:12
Well, it's been less than a year since creators update is out
Florent Jousset
@heeko
Feb 19 2018 20:44
Hi there! Just to ley you know that the link to this gitter is not correct on avalonia website (from here http://avaloniaui.net/contributing/contributing). The link under "CSS-like styling system" from this http://avaloniaui.net/guides/from-wpf page is also referencing an incorrect page. Sorry if it's already known!
Nikita Tsukanov
@kekekeks
Feb 19 2018 20:50
Thanks
It seems that we have quite a lot of broken links
I wonder if we could use some kind of automatic link checker
Alex
@awulkan
Feb 19 2018 21:23
I think Wyam has a built in feature for that
Maybe it doesn't do what I think it does though