Comments (16)
I converted the app template to VB, see: https://github.com/mevdschee/avalonia-vb-template-app
from avalonia-dotnet-templates.
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.
Hello. Sorry, we don't plan to add support for VB currently thus closing the issue.
from avalonia-dotnet-templates.
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.
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.
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.
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.
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.
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.
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.
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.
@DualBrain supported. But there won't be templates.
from avalonia-dotnet-templates.
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.
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.
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.
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)
- TemplatedControl should use ControlTheme instead of styles HOT 2
- Update naming of templates
- Group Avalonia templates in Rider "New Project" window HOT 2
- iOS Templates wont work by default HOT 1
- iOS Supported version mismatching
- Update comment in Desktop template HOT 2
- Declare ViewModelBase as abstract
- XUnit/NUnit headless templates HOT 5
- New Avalonia User Control still contains the `private void InitializeComponent()` method HOT 3
- Base VM type mismatch in ViewLocator
- Avalonia xPlat Library template HOT 2
- Nullability warning in ViewLocator.cs
- Template namespaces missing subfolder HOT 1
- Xplat templates requires .net 7.0 , although android packages do not support 7.0 yet HOT 4
- avalonia.xplat template replaces spaces with underscores in project references HOT 5
- Creating new items in Visual Studio doesn't replace invalid characters in namespace HOT 1
- Template namespace switch leads to strange behaviours
- Preparing for 11.1 HOT 3
- Remove ReactiveUI from XPlat templates HOT 4
- Full type name consistency for created UserControls HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia-dotnet-templates.