These are chat archives for AvaloniaUI/Avalonia

24th
Sep 2017
Steven Kirk
@grokys
Sep 24 2017 01:19
very cool!
MonkAlex
@MonkAlex
Sep 24 2017 08:54
Today i reinstall all avalonia packages in visualstudio2017. When run app, get exception:
"System.IO.FileLoadException" in Avalonia.Controls.dll
Could not load file or assembly "System.Reactive.Interfaces, Version=3.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263" or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. . (Exception from HRESULT: 0x80131040)
Avalonia package require System.Reactive (>= 3.1.1)
What i do wrong now?
Nikita Tsukanov
@kekekeks
Sep 24 2017 08:54
Are you still using packages.config?
MonkAlex
@MonkAlex
Sep 24 2017 08:55
Nope, VS add reference to csproj
This message was deleted
Nikita Tsukanov
@kekekeks
Sep 24 2017 08:55
I've noticed version mismatch in your xml
MonkAlex
@MonkAlex
Sep 24 2017 08:56
Only Avalonia package in csproj, version of Reactive not set.
Then, in Debug folder is 3.1.1.0
Nikita Tsukanov
@kekekeks
Sep 24 2017 08:56
Avalonia.Desktop had a different version number, I think
MonkAlex
@MonkAlex
Sep 24 2017 08:56
<PackageReference Include="Avalonia">
  <Version>0.5.2-build3882-alpha</Version>
</PackageReference>
<PackageReference Include="Avalonia.Cairo">
  <Version>0.5.2-build3882-alpha</Version>
</PackageReference>
<PackageReference Include="Avalonia.Desktop">
  <Version>0.5.2-build3882-alpha</Version>
</PackageReference>
Nikita Tsukanov
@kekekeks
Sep 24 2017 08:57
Please, post full csproj somewhere
Nikita Tsukanov
@kekekeks
Sep 24 2017 08:58

    <PackageReference Include="Avalonia.Skia">
      <Version>0.5.2-build3882-alpha</Version>
    </PackageReference>
    <PackageReference Include="Avalonia.Skia.Desktop">
      <Version>0.5.2-build3633-alpha</Version>
    </PackageReference>
3882 <-> 3633
MonkAlex
@MonkAlex
Sep 24 2017 08:59
I install the last version...
Nikita Tsukanov
@kekekeks
Sep 24 2017 08:59
Remove all package references from csproj and leave only Avalonia.Desktop
MonkAlex
@MonkAlex
Sep 24 2017 09:00
Avalonia.Skia.Linux.Natives and SkiaSharp too?
Nikita Tsukanov
@kekekeks
Sep 24 2017 09:00
Yes, they should be pulled automatically by nuget
You don't need to reference them directly
MonkAlex
@MonkAlex
Sep 24 2017 09:04
Then, i lost using ReactiveUI and its references
I need add it to packages manual?
Nikita Tsukanov
@kekekeks
Sep 24 2017 09:06
Add Avalonia.ReactiveUI package
MonkAlex
@MonkAlex
Sep 24 2017 09:09
Compiled, but the same exception after run:
Today i reinstall all avalonia packages in visualstudio2017. When run app, get exception:
"System.IO.FileLoadException" in Avalonia.Controls.dll
Could not load file or assembly "System.Reactive.Interfaces, Version=3.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263" or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. . (Exception from HRESULT: 0x80131040)
<ItemGroup>
<PackageReference Include="Avalonia.Desktop">
<Version>0.5.2-build3882-alpha</Version>
</PackageReference>
<PackageReference Include="Avalonia.ReactiveUI">
<Version>0.5.2-build3882-alpha</Version>
</PackageReference>
</ItemGroup>
Only two packages in csproj
Nikita Tsukanov
@kekekeks
Sep 24 2017 09:11
Check actual package versions in obj/project.assets.json
And generated binding redirects in bin/Debug/yourapp.exe.config file
MonkAlex
@MonkAlex
Sep 24 2017 09:12
no config in my debug folder. What version i need find in json? 100+kb
Nikita Tsukanov
@kekekeks
Sep 24 2017 09:15

no config in my debug folder

That's probably it

binding redirects don't get generated for you for some reason
I'd suggest to create a new app using our VS extension
MonkAlex
@MonkAlex
Sep 24 2017 09:24
Create new app. try to update avalonia from 0.5 to last, get over 100 error like:
Не удалось удовлетворить конфликтующие запросы для "Avalonia": project/Avalonia (>= 1.0.0) (через project/Avalonia 1.0.0.0), Avalonia (>= 0.5.0) (через project/Avalonia 1.0.0.0). Платформа: (.NETFramework,Version=v4.6.1)
Не удалось удовлетворить конфликтующие запросы для "Avalonia.Desktop": Avalonia.Desktop (>= 0.5.0) (через project/Avalonia 1.0.0.0). Платформа: (.NETFramework,Version=v4.6.1)
Не удалось удовлетворить конфликтующие запросы для "Serilog.Sinks.Trace": Serilog.Sinks.Trace (>= 2.1.0) (через project/Avalonia 1.0.0.0). Платформа: (.NETFramework,Version=v4.6.1)
If that setup doesn't work for you, you probably don't have something installed
MonkAlex
@MonkAlex
Sep 24 2017 09:51
So, try reinstall vs2017. Error in russian localization not found in google =_=
Nikita Tsukanov
@kekekeks
Sep 24 2017 10:05

Не удалось удовлетворить конфликтующие запросы для "Avalonia"

I guess if your project name conflicts with nuget package name, weird stuff starts to happen

MonkAlex
@MonkAlex
Sep 24 2017 10:07
Okay, u project runned
Nikita Tsukanov
@kekekeks
Sep 24 2017 10:20
@grokys I need some way to extract package version from our assemblies
MonkAlex
@MonkAlex
Sep 24 2017 10:44
So, project work, when i up version to 15 and add property
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
MonkAlex
@MonkAlex
Sep 24 2017 11:00
Exception thrown: 'System.IO.FileNotFoundException' in Avalonia.Markup.dll
"System.ComponentModel.Annotations, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Dont see this reference in any package.
MonkAlex
@MonkAlex
Sep 24 2017 11:06
Install-Package System.ComponentModel.Annotations -Version 4.1.0 help, but not understand, how it must work
Nikita Tsukanov
@kekekeks
Sep 24 2017 18:05
@grokys can we decide something about the logo? This one seems to be community-favorite
And I'll use one with the eye for standalone XAML editor/previewer
Jurjen Biewenga
@JurjenBiewenga
Sep 24 2017 18:19
Perhaps put up a new vote with the top 2
Nikita Tsukanov
@kekekeks
Sep 24 2017 18:21
Well, we only had 5 variants, not sure if it's even needed to make another one
Jurjen Biewenga
@JurjenBiewenga
Sep 24 2017 18:22
I'd actually prefer the bottom one
But in a different color
Not sure why it was chosen to go after the same color palette of vs
Jeremy Koritzinsky
@jkoritzinsky
Sep 24 2017 21:13
I like using the eye for the designer
I'm good with either the stylized lowercase a or the triangle arch
Jurjen Biewenga
@JurjenBiewenga
Sep 24 2017 22:30
I feel like the stylized lowercase a is not that clear
It is a nice design though