Giter Site home page Giter Site logo

Comments (16)

mevdschee avatar mevdschee commented on May 23, 2024 8

I converted the app template to VB, see: https://github.com/mevdschee/avalonia-vb-template-app

from avalonia-dotnet-templates.

DualBrain avatar DualBrain commented on May 23, 2024 3

Feel free to take a look at some VB templates for Avalonia UI that are available (as source) over at https://github.com/CommunityVB/Templates

Will eventually make these available as a nuget package; but they are available now in source and certainly could use some testing/feedback. After some testing/feedback, will create the desired nuget package(s).

from avalonia-dotnet-templates.

Takoooooo avatar Takoooooo commented on May 23, 2024 2

Hello. Sorry, we don't plan to add support for VB currently thus closing the issue.

from avalonia-dotnet-templates.

DualBrain avatar DualBrain commented on May 23, 2024 1

Hello. Sorry, we don't plan to add support for VB currently thus closing the issue.

The video at https://youtu.be/9PZVjcp3Xxc?si=KLnPat1lghG5uQeQ strongly suggests otherwise...

from avalonia-dotnet-templates.

DualBrain avatar DualBrain commented on May 23, 2024 1

And on https://avaloniaui.net/XPF I find...

Does Avalonia XPF support applications developed with VB.NET?

Yes. Avalonia XPF Works with all WPF applications, regardless of the language used. We have tested applications developed with C#, VB.NET and F#.

from avalonia-dotnet-templates.

DualBrain avatar DualBrain commented on May 23, 2024 1

Not supported?????? It's really confusing when one can find the following in your own documentation (https://docs.avaloniaui.net/docs/guides/building-cross-platform-applications/) that states...

Develop your apps in C#, F# or VB.NET. Existing code written with .NET can be seamlessly ported to Windows, Linux, macOS, iOS, Android and WebAssembly using Avalonia.

Has the stance changed since the statement was made in the last 2 years? If so, please enlighten us...

from avalonia-dotnet-templates.

MikeCodesDotNET avatar MikeCodesDotNET commented on May 23, 2024 1

Has the stance changed since the statement was made in the last 2 years? If so, please enlighten us...

Our previous statement has remained unchanged. Avalonia is compatible with any .NET language, including VB.NET. This means you can develop Avalonia applications using VB.NET right now.

However, we currently do not plan to introduce official VB.NET project templates. This decision is based on several factors, notably the limited demand from a relatively small VB.NET user base and the resource commitment required to maintain additional templates indefinitely.

We are constantly monitoring the landscape of .NET development. Should there be a substantial shift in Microsoft's investment in VB.NET and a corresponding surge in community demand, we would certainly consider revisiting our decision.

from avalonia-dotnet-templates.

DrewNaylor avatar DrewNaylor commented on May 23, 2024

Second this, I'd like to be able to easily create a new Avalonia project using VB. I'll probably try to do it myself since I've translated C# to VB before, but I'm almost burnt out from programming at the moment and it likely won't be good enough for a pull request. Looks easy enough to do, though.

Edit: Found the contribution guidelines and they involve discussing with other people which I don't like to do, and I can't quite figure out a way to translate this block in App.axaml.cs to VB in a way that makes Visual Studio happy:

if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
            {
                desktop.MainWindow = new MainWindow();
            }

from avalonia-dotnet-templates.

michieal avatar michieal commented on May 23, 2024

Second this, I'd like to be able to easily create a new Avalonia project using VB. I'll probably try to do it myself since I've translated C# to VB before, but I'm almost burnt out from programming at the moment and it likely won't be good enough for a pull request. Looks easy enough to do, though.

I agree, it would be nice to have this for VB.NET. I have a decade's worth of programs to translate from VB to C#... but, having the templates means I wouldn't have to do those translations; I'd just have to modify them to work with the new UI. (Which, would be epic!)

@DrewNaylor Have you tried taking a base C# program that uses Avalonia and use ILSpy to convert the IL generated into VB? It might give you a viable workaround...

from avalonia-dotnet-templates.

DrewNaylor avatar DrewNaylor commented on May 23, 2024

Haven't tried using ILSpy to convert it, but I just decided to call into VB.NET DLLs from the C# code for now since I know a little C# though I'm better at VB.NET than I am at C#. This probably won't help much for existing VB.NET projects or would be more complicated.

from avalonia-dotnet-templates.

michieal avatar michieal commented on May 23, 2024

Create a new C# Avalonia UI project. build it. use IL Spy to open it. Change the language in IL Spy from C# to VB. Copy the code out into classes. You'll have the translation.

from avalonia-dotnet-templates.

maxkatz6 avatar maxkatz6 commented on May 23, 2024

@DualBrain supported. But there won't be templates.

from avalonia-dotnet-templates.

mevdschee avatar mevdschee commented on May 23, 2024

supported. But there won't be templates.

@DualBrain What does one have to do to get the missing templates included? Write them and do a PR? Are you open for that?

from avalonia-dotnet-templates.

grokys avatar grokys commented on May 23, 2024

Note that dotnet templates are simply NuGet packages and as such if you or the community wanted to create and maintain some unofficial VB templates, we'd be happy to point people to them.

from avalonia-dotnet-templates.

PedroGGaspar avatar PedroGGaspar commented on May 23, 2024

Feel free to take a look at some VB templates for Avalonia UI that are available (as source) over at https://github.com/CommunityVB/Templates/avalonia

Page not found.

from avalonia-dotnet-templates.

DualBrain avatar DualBrain commented on May 23, 2024

Page not found.

Sorry about that, I typed in the URL manually and should have just entered the main Templates repo... with that said, here's a corrected link.

https://github.com/CommunityVB/Templates/tree/main/src/avalonia

from avalonia-dotnet-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.