These are chat archives for AvaloniaUI/Avalonia

15th
Jun 2015
Darnell Williams
@Seeker1437
Jun 15 2015 00:51 UTC
Sorry was busy I'll try it :O
Rohan Singh
@Rohansi
Jun 15 2015 02:14 UTC
@SuperJMN i think you can setup AppVeyor to automatically publish nuget packages
Kai Eichinger
@cH40z-Lord
Jun 15 2015 05:40 UTC
@SuperJMN you could publish to your own private feed which is simply a folder on your local PC. that way you can keep using NuGet packages and don't need to introduce unnecessary dependencies to Git submodules, which are IMO horrible :S
there are quite some build scripts which allow you to automate your NuGet package process
see http://docs.nuget.org/Create/Hosting-Your-Own-NuGet-Feeds for the feed thing. for the packaging process there are a lot of ways. starting from a simple batch file to VS extensions that do that to full-fledged CI servers (which are probably not an option here)
José Manuel Nieto
@SuperJMN
Jun 15 2015 07:15 UTC
@SuperJMN i think you can setup AppVeyor to automatically publish nuget packages
I've read AppVeyor somewhere, but I have never used it! I will take a look

@SuperJMN you could publish to your own private feed which is simply a folder on your local PC. that way you can keep using NuGet packages and don't need to introduce unnecessary dependencies to Git submodules, which are IMO horrible :S

Interesting... you say that modules are horrible. But could you tell me why?

see http://docs.nuget.org/Create/Hosting-Your-Own-NuGet-Feeds for the feed thing. for the packaging process there are a lot of ways. starting from a simple batch file to VS extensions that do that to full-fledged CI servers (which are probably not an option here)

Extensions for VS 2015? I used some extensions that generate NuGet Packages automatically and uploaded them. But nothing for VS 2015 for now :S

Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:16 UTC
@SuperJMN it creates a hard dependency on the VCS and is IMO more cumbersome to handle, especially if you're not familiar with git or simply go to your repo page and hit "Download as ZIP". last time I did that with a repository that relied on submodules the modules were not included in the zip file
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:18 UTC
OK, I'll annotate that :)
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:18 UTC
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:18 UTC
but, is there currently a dumb-proof method to create/upload NuGet packages without much hassle?
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:19 UTC
if you're lucky I'll fine that lib again I stumbled upon a few days. it allowed you to create NuGet packages right from your C# code, which I find very neat
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:19 UTC
Uhmmm, PowerShell?
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:19 UTC
you're not a fan of PowerShell, are you? :P
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:19 UTC
haha, I've worked with it
and I know the basics
but I don't really like it :)
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:19 UTC
:D
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:20 UTC
haha
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:20 UTC
well, do you need to automate the process during (local) development or do you need something for the future to also upload it to the NuGet library itself?
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:20 UTC
yes, that's it
I had a very nice extension that did just that
It detected dependencies and everything
NuGet Packager, if I remember well
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:21 UTC
isn't that what NuGet also does if you use the .csproj file?
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:21 UTC
I don't know
I think you have to specify everything in the nuspec file
lib, dependencies, profiles...
See "From a project"
as alternative you could also modify the VS extension to allow it to work with VS2015 :P
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:25 UTC
O_O
haha
you mean, modifying the vsix?
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:25 UTC
BTW, thanks for the shower of information!
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:26 UTC
you're welcome. glad I can help :p I'm more of a NuGet package user and not much of an author :D
José Manuel Nieto
@SuperJMN
Jun 15 2015 08:28 UTC
but you seem to have dealed a lot with NuGet
otherwise, you wouldn't know so much about its automation
:)
Right now I'm trying to fix my VS 2015 RC
suddenly, the Git integration died!
the Team Explorer shows an exception in the tabs
Kai Eichinger
@cH40z-Lord
Jun 15 2015 08:35 UTC
heh :D is it possible that you've got the VS GitHub extension installed?
Steven Kirk
@grokys
Jun 15 2015 09:55 UTC
hi guys
i think it's easy to set up a nuget package feed that just points to a directory on your computer
so that way you don't have to worry about uploading to nuget.org
i think it's as simple as adding a build step to create the .nupkg then pointing nuget in VS to the directory that the .nupkg is in
José Manuel Nieto
@SuperJMN
Jun 15 2015 13:27 UTC
@grokys I'm not sure how to do that. I would to have it so anyone can just clone and build.
sometimes, when integrating with Perspex, I discover something that I have to fix in OmniXAML
Steven Kirk
@grokys
Jun 15 2015 13:34 UTC
i think win2d used to do this when it was in early development
under "getting those bits" it tells you how to use a local nuget source for win2d
you can then add a nuget reference in Perspex to omnixaml
without uploading it every time to nuget.org
then you can just upload versions when you've finished a feature to nuget.org for everyone else to use
the nuget reference will use the local source if available, and if not it will go to nuget.org
(assuming the local source is higher on the list)
José Manuel Nieto
@SuperJMN
Jun 15 2015 13:37 UTC
nice approach!
I think I will do that
how do you generate packages?
Steven Kirk
@grokys
Jun 15 2015 13:38 UTC
for win2d you had to run the build.cmd
José Manuel Nieto
@SuperJMN
Jun 15 2015 13:38 UTC
nuget.exe?
Steven Kirk
@grokys
Jun 15 2015 13:38 UTC
but you could add that as a post-build step
i think build.cmd just calls nuget.exe
you could also add it to a separate solution configuration, so it would only be run when you're developing
José Manuel Nieto
@SuperJMN
Jun 15 2015 18:12 UTC
OK! I think I will try some different methods to see how it fits :D
thanks for the options and the info!
By the way, @grokys I think there is some problem with the menus :(
(and the TreeView)
they don't load OK
Steven Kirk
@grokys
Jun 15 2015 18:26 UTC
yeah, menu in particular is still a work in progress - treeview i've not looked at for a while
oh... do you mean they don't load from XAML?
José Manuel Nieto
@SuperJMN
Jun 15 2015 18:55 UTC
sorry, I was out!
yes, the TreeView just don't load
I seems there is something bad there
I haven't taken a look in the insights
It shows some kind of exception that enforces TreeViewItems to be children of TreeViews only
it happens with this snippet
      <TreeView>
        <TreeViewItem Header="Root 1">
          <TreeViewItem Header="Child 1" IsExpanded="True" />
          <TreeViewItem Header="Child 2" IsExpanded="True">
            <TreeViewItem Header="Grandchild 1" />
            <TreeViewItem Header="Grandmaster Flash" />
          </TreeViewItem>
          <TreeViewItem Header="Child 3" />
        </TreeViewItem>
        <TreeViewItem Header="Root 2" />
      </TreeView>
but it fails also with
<TreeView>
    <TreeViewItem />
</TreeView>
I cannot debut it right not because I had a big mess with my VS installation that didn't allow me to do anything with Git
and I reinstalled the whole OS!
José Manuel Nieto
@SuperJMN
Jun 15 2015 19:00 UTC
madness, yes! but I was feed up trying to solve it :S
José Manuel Nieto
@SuperJMN
Jun 15 2015 20:33 UTC
(debug, I mean)
José Manuel Nieto
@SuperJMN
Jun 15 2015 20:47 UTC
OK! I'm debugging
this XAML
<Window Title="Perspex Test Application" Height="350" Width="525" xmlns="perspex">
    <TreeView>
        <TreeViewItem Header="Root 1"/>
    </TreeView>
</Window>
Crashes at ItemContainerGenerator.cs, line 134.
Message: The key has already been added.
paramenter item => {Perspex.Controls.TreeViewItem}
surprise... the parameter item and container are... the same object!
José Manuel Nieto
@SuperJMN
Jun 15 2015 20:52 UTC
it looks like the item is trying to be added as child of itself!
José Manuel Nieto
@SuperJMN
Jun 15 2015 21:39 UTC
Uhmm, maybe it's because TreeView.Items is a collection of TreeViewItems!?
José Manuel Nieto
@SuperJMN
Jun 15 2015 22:01 UTC
after having debugged the code a bit, I can see different paths in the code when loading from XAML
the Visual Tree is the same
a Window with a TreeView with a TreeViewItem
but ItemsChanged is called different parameters
José Manuel Nieto
@SuperJMN
Jun 15 2015 22:40 UTC
I don't know why, but it only happens with the TreeView
I'm going crazy :anguished:
Maybe tomorrow I can prepare a branch for you, should you want to take a look
I give up for now
:S
today it has been a hard day
and I'm not talking about programming
I don't have much energy. See you tomorrow. I'm off.
have a good night!