These are chat archives for AvaloniaUI/Avalonia

2nd
Apr 2017
curea
@curea
Apr 02 2017 11:46
@zezba9000 Yes it does, I have a few projects running in Avalonia in Core. Have to use the latest previews on myget
<add key="AvaloniCI" value="https://www.myget.org/F/avalonia-ci/api/v2" />
Ivan Kochurkin
@KvanTTT
Apr 02 2017 12:19
I figured out the reason of crash on Win 7. UsePlatformDetect works incorretly there.
.UseSkia().UseWin32() instead of UsePlatformDetect fixes the problem (probebly related to DirectX).
Nikita Tsukanov
@kekekeks
Apr 02 2017 17:16
I'm sure that we've disabled Direct2D for win7
@grokys @wieslawsoltes I think we can remove reference to Microsoft.NETCore.Portable.Compatibility
Since we aren't shipping PCLs anymore
Jeremy Koritzinsky
@jkoritzinsky
Apr 02 2017 17:28
If its the .NET core version than its using the old PlatformDetect logic
Nikita Tsukanov
@kekekeks
Apr 02 2017 17:30
.NET core version has specific detect logic which always selects Skia backend
Wiesław Šoltés
@wieslawsoltes
Apr 02 2017 18:33

@grokys @wieslawsoltes I think we can remove reference to Microsoft.NETCore.Portable.Compatibility

@kekekeks Removed references in AvaloniaUI/Avalonia#944

@grokys This test is sometimes failing and sometime passing https://ci.appveyor.com/project/AvaloniaUI/Avalonia/build/0.1.2956#L369
Steven Kirk
@grokys
Apr 02 2017 20:09
hmm, i've not noticed that test failing before
btw, any idea why the "Tests" list is now always empty on appveyor? it used to work
this was on failed build probably
Steven Kirk
@grokys
Apr 02 2017 20:12
ah ok - so it's not always empty
i've seen it be empty a few times and thought maybe it was always like that
Andrew
@zezba9000
Apr 02 2017 21:34
@kekekeks Do you think VS Code would work? I only ask because it supports C# 7 features.
curea
@curea
Apr 02 2017 21:35
@zezba9000 VS Code works fine on Mac with Avalonia projects
Andrew
@zezba9000
Apr 02 2017 21:35
@curea ya I am, was getting compatibility issues though in VS 2017. Will look at Nikita's projects though
@curea ok, guess I can try again
curea
@curea
Apr 02 2017 21:36
@zezba9000a are you on mac or win?
Andrew
@zezba9000
Apr 02 2017 21:36
on Win10 right now but have macOS and Linux
and have VS Code on all of them
curea
@curea
Apr 02 2017 21:37
I had trouble with vs for mac where vscode works just fine with it.
I have it running both on mac and win8, but tend to spend more time on mac….
Andrew
@zezba9000
Apr 02 2017 21:37
VS for mac doesn't have C#7 yet which is why VS Code seems better for this maybe
guess I should say MonoDevelope 7 isn't ready.
sorry but have to ask, why Win8 and not Win10 lol?
Andrew
@zezba9000
Apr 02 2017 21:43
@curea do you have any projects on GitHub I could look at for VS Code projects settings?
Steven Kirk
@grokys
Apr 02 2017 22:04
when i try to run ControlCatalog on master with skia i get:
'Unable to load DLL 'libSkiaSharp.dll': This operation is only valid in the context of an app container. (Exception from HRESULT: 0x8007109A)'
anyone else seeing the same?
curea
@curea
Apr 02 2017 22:18
@zezba9000 I’ll put one up real quick.
Andrew
@zezba9000
Apr 02 2017 22:20
I just have a hard time finding what cmds I use for VS Code as everything I search for just brings up VS 2015/2017 docs. I may also have a messed up install of dotnet on Windows as its reporting v1.0.0
while on Linux and macOS it reports 1.0.1
nvr mind, fixed it. My VS 2015 dotnet preview stuff got in a wak state with 2017 installing.
I get different versions too
dotnet --version
1.0.1
that is on the mac
C:>dotnet --version
1.0.0
windows
Andrew
@zezba9000
Apr 02 2017 22:41
@curea You need to uninstall the .NET core SDK
the cmd version
Its confusing because VS 2015 has a bunch of installers that make you think they're the same thing but arn't
also tnx for the ref
funny how VS for mac auto fixes it for you but not VS 2017 for windows lol
curea
@curea
Apr 02 2017 22:45
event with 1.0.0 on win it still runs
was able to git clone on both machines
then dotnet restore and dotnet run
the for the link, updated win now...
all happt
*happy
curea
@curea
Apr 02 2017 22:57
ugh. Thx for the link, not the! :D
Andrew
@zezba9000
Apr 02 2017 23:22
@curea Awesome it works. btw what command do I run with VS code to install new packages? Like System.ValueTuple?
Because Install-Package System.ValueTuple doesn't work
Andrew
@zezba9000
Apr 02 2017 23:29
nv its dotnet add package
now that Avalonia runs in VS Code and .NET Core. I would think porting the AvaloniaVS plugin to run in VS Code makes more sense as VS code is the same on all 3 desktop platforms
Andrew
@zezba9000
Apr 02 2017 23:37
although I guess Android / iOS / WP platforms still need VS. To many editors that all do the same thing ugg.
Nikita Tsukanov
@kekekeks
Apr 02 2017 23:41
That's why I'm running a windows VM
There is nothing like proper visual studio
Andrew
@zezba9000
Apr 02 2017 23:42
well that doesn't help when debugging a linux app though
Nikita Tsukanov
@kekekeks
Apr 02 2017 23:42
Remote debugging worked fine for me
Andrew
@zezba9000
Apr 02 2017 23:44
idk, thats just still a bit impractical. Its like trying to make a xbox 360 game with XNA and doing all the code testing on the 360 itself. When normally thats not what you want to be doing because it takes forever and thus do most dev testing on a PC.
until you need the 360 hardware for testing RenderTargets etc that use its special gpu ram thats not the same as a desktop PC for example
Nikita Tsukanov
@kekekeks
Apr 02 2017 23:47
debugging /dev/fb0 IOCTLs worked fine with VS remote debugging
Andrew
@zezba9000
Apr 02 2017 23:47
it also makes the learning curve a lot higher for people just wanting to write simple GUI apps.. which I think is the biggest selling point of this new UI
Nikita Tsukanov
@kekekeks
Apr 02 2017 23:48
the problem is that there is no proper IDEs for C# other than VS and Rider
Monodevelop has always been a joke
no matter what label you put on it
Andrew
@zezba9000
Apr 02 2017 23:49
MonoDevelop 7 is pretty good. How is it bad?
other then it using GTK2
Nikita Tsukanov
@kekekeks
Apr 02 2017 23:50
Does it work for you with the new project system and .NET core?
Andrew
@zezba9000
Apr 02 2017 23:51
ya I can use Avalonia on macOS with it
.NET core stuff works to
only thing is the current preview version doesn't have C# 7 roslyn compilers yet... they probably do internally
and on Linux just use "flatpak": http://flatpak.org/apps.html
that way you can get the latest stable version on MonoDevelop on Linux
Nikita Tsukanov
@kekekeks
Apr 02 2017 23:56
Flatpack has issues because of sandboxing
You can't really run an IDE in a sandbox
Andrew
@zezba9000
Apr 02 2017 23:56
I'm not sure what you mean?
Nikita Tsukanov
@kekekeks
Apr 02 2017 23:57
flatpack uses cgroups and namespaces
To run apps in sandbox environments
Andrew
@zezba9000
Apr 02 2017 23:58
I don't have any issues with it. The mono versions and tools live within that sandbox.
So I'm not sure what issues you're thinking of that might happen?
and the classical packaging system on Linux is a joke which this helps to solve