egvijayanand / dotnet-maui-templates Goto Github PK
View Code? Open in Web Editor NEW.NET MAUI Project and Item Templates for VS2022 and CLI.
Home Page: https://egvijayanand.in/
License: MIT License
.NET MAUI Project and Item Templates for VS2022 and CLI.
Home Page: https://egvijayanand.in/
License: MIT License
Now .NET MAUI is supported on .NET 7, the templates need to be updated to support .NET 7 as well. This needs to be handled as an input parameter with a pre-defined value, if not supplied.
_Imports.razor file getting excluded while creating a project in the Razor design pattern.
Since this file is for both Hybrid and Razor design patterns, the introduction of the option to create an RCL has affected this portion.
Now that PR8 has actual templates for MAUI, it has fully embraced the HostBuilder pattern.
Are there any pointers on how to get your Shell Page template to get instantiated correctly?
I tried just adding the override from the blog post announcement, but it doesnt seem to work.
FYI: Your placeholder templates were a great help!
Thanks.
Need instructions on use. Compile errors with Microsoft.Graphics.Win2D and Microsoft.WindowsAppSDK not upgrading the nuget. If you manually fix it in the csproj, 3 other compile errors occur.
When not using the NuGet CPM feature, define the floating version value for MauiVersion
property.
This is to be carried out only for the .NET 8 Stable channel.
The partial class template allows a class that is both static and abstract - CS0418.
slnx
)slnx
feature itself is still in the preview phasedotnet new mauiapp -o MyApp -slnx
Page
suffixed whereas, within those files, the actual type name and its reference in the constructor are not suffixed with Page
.For example:
dotnet new maui-bwv-cs -n Home
Output:
Filename: HomePage.cs
Type name: Home (without the suffix)
Improvement: Add option to include Microsoft.Toolkit.Mvvm
dotnet new mauiapp -o MyApp -mcl
This would create an MAUI class library and reference it in the Head project. Similar to Xamarin.Forms (the only difference is that there won't be multiple head projects).
Consider adding a parameter named blank to create a new .NET MAUI App from the ground up in the chosen design pattern.
Only the package references, using statements, and the initial page should be available to proceed with.
Update the templates to include support for the July 2024 releases.
Today i tried to install your VS Extension from Marketplace. Sadly i'm got:
20.08.2022 20:30:49 - Microsoft VSIX Installer
20.08.2022 20:30:49 - -------------------------------------------
20.08.2022 20:30:49 - vsixinstaller.exe version:
20.08.2022 20:30:49 - 17.2.2197
20.08.2022 20:30:49 - -------------------------------------------
20.08.2022 20:30:49 - Command line parameters:
20.08.2022 20:30:49 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\Admin\Downloads\VijayAnand.MauiTemplates.vsix
20.08.2022 20:30:49 - -------------------------------------------
20.08.2022 20:30:49 - Microsoft VSIX Installer
20.08.2022 20:30:49 - -------------------------------------------
20.08.2022 20:30:50 - Initializing Install...
20.08.2022 20:30:50 - Erweiterungsdetails...
20.08.2022 20:30:50 - Identifier : MauiTemplates.20dca96a-7311-401f-84ed-980478fb319b
20.08.2022 20:30:50 - Name : .NET MAUI Project and Item Templates
20.08.2022 20:30:50 - Author : Vijay Anand E G
20.08.2022 20:30:50 - Version : 1.7.6.3
20.08.2022 20:30:50 - Description : .NET MAUI Project, Item Templates, and Code Snippets for Visual Studio 2022 (.NET MAUI GA and Service Releases).
20.08.2022 20:30:50 - Locale : en-US
20.08.2022 20:30:50 - MoreInfoURL : https://egvijayanand.in/2022/04/20/all-in-one-dotnet-maui-app-project-template-what-is-new/
20.08.2022 20:30:50 - InstalledByMSI : False
20.08.2022 20:30:50 - SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
20.08.2022 20:30:50 -
20.08.2022 20:30:50 - SignatureState : Unsigned
20.08.2022 20:30:50 - Unterstützte Produkte :
20.08.2022 20:30:50 - Microsoft.VisualStudio.Community
20.08.2022 20:30:50 - Version : [17.3,18.0)
20.08.2022 20:30:50 - ProductArchitecture : amd64
20.08.2022 20:30:50 - Microsoft.VisualStudio.Pro
20.08.2022 20:30:50 - Version : [17.3,18.0)
20.08.2022 20:30:50 - ProductArchitecture : amd64
20.08.2022 20:30:50 - Microsoft.VisualStudio.Enterprise
20.08.2022 20:30:50 - Version : [17.3,18.0)
20.08.2022 20:30:50 - ProductArchitecture : amd64
20.08.2022 20:30:50 -
20.08.2022 20:30:50 - Verweise :
20.08.2022 20:30:50 - Voraussetzungen :
20.08.2022 20:30:50 - -------------------------------------------------------
20.08.2022 20:30:50 - Identifier : Microsoft.VisualStudio.Component.CoreEditor
20.08.2022 20:30:50 - Name : Visual Studio core editor
20.08.2022 20:30:50 - Version : [17.3,)
20.08.2022 20:30:50 -
20.08.2022 20:30:50 - -------------------------------------------------------
20.08.2022 20:30:50 - Identifier : Microsoft.VisualStudio.ComponentGroup.Maui.All
20.08.2022 20:30:50 - Name : .NET MAUI
20.08.2022 20:30:50 - Version : [17.3.32505.122,18.0)
20.08.2022 20:30:50 -
20.08.2022 20:30:50 - Signaturdetails...
20.08.2022 20:30:50 - Extension is not signed.
20.08.2022 20:30:50 -
20.08.2022 20:30:50 - Er wird nach passenden Produkten gesucht...
20.08.2022 20:30:50 - Installiertes Produkt gefunden - Globaler Pfad
20.08.2022 20:30:50 - Installiertes Produkt gefunden - Visual Studio Enterprise 2022 LTSC 17.2
20.08.2022 20:30:50 - VSIXInstaller.NoApplicableSKUsException: Diese Erweiterung kann auf den derzeit installierten Produkten nicht installiert werden.
bei VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData) bei VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable
1& skuData)
bei VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
bei VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
bei VSIXInstaller.App.Initialize(Boolean isRepairSupported)
bei VSIXInstaller.App.Initialize()
bei System.Threading.Tasks.Task`1.InnerInvoke()
bei System.Threading.Tasks.Task.Execute()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Do you know, how to fix it?
-mcl
optionSupport for adding .NET MAUI Community Toolkit namespace while defining base types with that particular xmlns
scope (mct).
For example:
dotnet new maui-item -n ThemePopup -b mct:Popup
This should include the Community Toolkit namespace automatically.
Can we get template for creeating a MAUI Class library.
Hello,
in the Tab template, there is the possibility to swipe left and right to change Tab.
I see that the "header" and "footer" are not updated according to the current page (i.e. scrolling right from "calendar" to "search" leave the header of the calendar page and the footer with the pages name do not change to highlight the search page)
EDIT:
I saw this issue with the property:
android:TabbedPage.ToolbarPlacement="Bottom"
With the property set to Top it works.
UseRazorSdk
instead of Hybrid
Build fails for .NET MAUI class library with .NET MAUI Essentials targeting the Windows platform.
Template Package Version:
3.1.0-preview.2
Error message:
D:\NuGet\packages\Microsoft.WindowsAppSDK\1.2.230118.102\buildTransitive\MrtCore.PriGen.targets(380,5): error MSB4062: The "Microsoft.Build.AppxPackage.GetSdkFileFullPath" task could not be loaded from the assembly C:\Program Files\dotnet\sdk\8.0.100-preview.1.23115.2\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.Build.AppxPackage.dll. Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.1.23115.2\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.Build.AppxPackage.dll'. The system cannot find the path specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available,and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [E:\SampleLib\SampleLib.csproj::TargetFramework=net8.0-windows10.0.19041.0]
Like every shell page has a BlazorWebView and received some args(h5 url).
tks.
Currently you only support AMD64.
Any reason why you exclude arm64? People who bought one of the Qualcomm Snapdragon X Elite laptops may want to use the arm64 version of VS2022 so you should also give them your extension.
The project node is not closed properly in the solution file while creating a Blazor Hybrid with the RCL option from CLI.
Observed in v3.2.0-preview.1
Hi.
Maui preview 13 is out today, with support from VS 2022 17.2.0 preview 1.0.
Is there an expected date for maui 13 support?
I am using preview 12 templates, but they do not appear in the File / New Ctrl+N dialog.
Thanks for your help
The access key for the MAUI Maps NuGet package clashes with that of the Platform parameter in the MAUI Class Library template - Needs to be updated to some other key.
The feature will still work even though the same access key is mapped to two different parameters by manually selecting it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.