17 | An unhandled error has occurred.
18 |
Reload
19 |
🗙
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/ProjectTemplates/MauiClassLib/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public class Class1
10 | {
11 | #if ANDROID
12 | // Code block for Android
13 | #elif IOS
14 | // Code block for iOS
15 | #elif MACCATALYST
16 | // Code block for Mac Catalyst
17 | #elif WINDOWS
18 | // Code block for Windows
19 | #endif
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/ProjectTemplates/MauiClassLib/__TemplateIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiClassLib/__TemplateIcon.ico
--------------------------------------------------------------------------------
/src/Scripts/class-cs.bat:
--------------------------------------------------------------------------------
1 | :: Partial Class (C#) Item Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo Partial Class (C#) template.
9 | echo.
10 | echo Requires a mandatory input: type name
11 | echo Takes an optional input: base type
12 |
13 | goto end
14 |
15 | :process
16 |
17 | set WorkingDirectory=%cd%
18 |
19 | set type_name=%1
20 | if "%2"=="" (set options=_) else (set options=%~2)
21 |
22 | if "%options%"=="_" (dotnet new class-cs -n %type_name%) else (if "%options:~0,1%"=="-" (dotnet new class-cs -n %type_name% %options% %~3 %~4 %~5 %~6 %~7 %~8 %~9) else (dotnet new class-cs -n %type_name% -b %options% %~3 %~4 %~5 %~6 %~7 %~8 %~9))
23 |
24 | set WorkingDirectory=
25 | set type_name=
26 | set options=
27 |
28 | :end
29 |
--------------------------------------------------------------------------------
/src/Scripts/maui-bwv-cs.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentPage with BlazorWebView (C#) Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentPage with BlazorWebView (C#)
9 | echo.
10 | echo Requires a mandatory input: item name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set item_name=%1
19 | if "%2"=="" (set options=_) else (set options=%2)
20 |
21 | if "%options%"=="_" (dotnet new maui-bwv-cs -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-bwv-cs -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.))
22 |
23 | set WorkingDirectory=
24 | set item_name=
25 | set options=
26 |
27 | :end
28 |
--------------------------------------------------------------------------------
/src/Scripts/maui-bwv-cs.ps1:
--------------------------------------------------------------------------------
1 | # .NET MAUI ContentPage with BlazorWebView (C#) Template
2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | param(
5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the item being created.")]
6 | [Alias("n")]
7 | [string]$Name,
8 |
9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")]
10 | [Alias("f")]
11 | [switch]$Force
12 | )
13 |
14 | $Env:WorkingDirectory = $pwd.Path
15 |
16 | if ($Force)
17 | {
18 | Invoke-Expression "dotnet new maui-bwv-cs -n $Name --force"
19 | }
20 | else
21 | {
22 | Invoke-Expression "dotnet new maui-bwv-cs -n $Name"
23 | }
24 |
25 | $Env:WorkingDirectory = ''
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-bwv.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentPage with BlazorWebView Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentPage with BlazorWebView in XAML
9 | echo.
10 | echo Requires a mandatory input: item name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set item_name=%1
19 | if "%2"=="" (set options=_) else (set options=%2)
20 |
21 | if "%options%"=="_" (dotnet new maui-bwv -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-bwv -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.))
22 |
23 | set WorkingDirectory=
24 | set item_name=
25 | set options=
26 |
27 | :end
28 |
--------------------------------------------------------------------------------
/src/Scripts/maui-bwv.ps1:
--------------------------------------------------------------------------------
1 | # .NET MAUI ContentPage with BlazorWebView (XAML) Template
2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | param(
5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the item being created.")]
6 | [Alias("n")]
7 | [string]$Name,
8 |
9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")]
10 | [Alias("f")]
11 | [switch]$Force
12 | )
13 |
14 | $Env:WorkingDirectory = $pwd.Path
15 |
16 | if ($Force)
17 | {
18 | Invoke-Expression "dotnet new maui-bwv -n $Name --force"
19 | }
20 | else
21 | {
22 | Invoke-Expression "dotnet new maui-bwv -n $Name"
23 | }
24 |
25 | $Env:WorkingDirectory = ''
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-mvvm-cs.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentPage and ViewModel (C#) Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentPage and ViewModel (C#)
9 | echo.
10 | echo Requires a mandatory input: item name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set item_name=%1
19 | if "%2"=="" (set options=_) else (set options=%2)
20 |
21 | if "%options%"=="_" (dotnet new maui-mvvm-cs -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-mvvm-cs -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.))
22 |
23 | set WorkingDirectory=
24 | set item_name=
25 | set options=
26 |
27 | :end
28 |
--------------------------------------------------------------------------------
/src/Scripts/maui-mvvm.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentPage and ViewModel Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentPage and ViewModel in XAML
9 | echo.
10 | echo Requires a mandatory input: item name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set item_name=%1
19 | if "%2"=="" (set options=_) else (set options=%2)
20 |
21 | if "%options%"=="_" (dotnet new maui-mvvm -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-mvvm -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.))
22 |
23 | set WorkingDirectory=
24 | set item_name=
25 | set options=
26 |
27 | :end
28 |
--------------------------------------------------------------------------------
/src/Scripts/maui-page-cs.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentPage (C#) Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentPage (C#)
9 | echo.
10 | echo Requires a mandatory input: page name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set page_name=%1
19 |
20 | dotnet new maui-page-cs -n %page_name% %~2 %~3 %~4 %~5
21 |
22 | set WorkingDirectory=
23 | set page_name=
24 |
25 | :end
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-page-cs.ps1:
--------------------------------------------------------------------------------
1 | # .NET MAUI ContentPage (C#) Template
2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | param(
5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the page being created.")]
6 | [Alias("n")]
7 | [string]$Name,
8 |
9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")]
10 | [Alias("f")]
11 | [switch]$Force
12 | )
13 |
14 | $Env:WorkingDirectory = $pwd.Path
15 |
16 | if ($Force)
17 | {
18 | Invoke-Expression "dotnet new maui-page-cs -n $Name --force"
19 | }
20 | else
21 | {
22 | Invoke-Expression "dotnet new maui-page-cs -n $Name"
23 | }
24 |
25 | $Env:WorkingDirectory = ''
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-page.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentPage Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentPage in XAML
9 | echo.
10 | echo Requires a mandatory input: page name
11 | echo Takes an optional input: xaml only
12 |
13 | goto end
14 |
15 | :process
16 |
17 | set WorkingDirectory=%cd%
18 |
19 | set page_name=%1
20 | if "%2"=="" (set options=_) else (set options=%2)
21 |
22 | if "%options%"=="_" (dotnet new maui-page -n %page_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-page -n %page_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.))
23 |
24 | set WorkingDirectory=
25 | set page_name=
26 | set options=
27 |
28 | :end
29 |
--------------------------------------------------------------------------------
/src/Scripts/maui-resdict.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ResourceDictionary Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ResourceDictionary in XAML
9 | echo.
10 | echo Requires a mandatory input: item name
11 | echo Takes an optional input: xaml only
12 |
13 | goto end
14 |
15 | :process
16 |
17 | set WorkingDirectory=%cd%
18 |
19 | set item_name=%1
20 | if "%2"=="" (set options=_) else (set options=%2)
21 |
22 | if "%options%"=="_" (dotnet new maui-resdict -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-resdict -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.))
23 |
24 | set WorkingDirectory=
25 | set item_name=
26 | set options=
27 |
28 | :end
29 |
--------------------------------------------------------------------------------
/src/Scripts/maui-shell-cs.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI Shell (C#) Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI Shell (C#)
9 | echo.
10 | echo Requires a mandatory input: shell item name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set type_name=%1
19 |
20 | dotnet new maui-shell-cs -n %type_name% %~2 %~3 %~4 %~5
21 |
22 | set WorkingDirectory=
23 | set type_name=
24 |
25 | :end
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-shell-cs.ps1:
--------------------------------------------------------------------------------
1 | # .NET MAUI Shell (C#) Template
2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | param(
5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the shell item being created.")]
6 | [Alias("n")]
7 | [string]$Name,
8 |
9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")]
10 | [Alias("f")]
11 | [switch]$Force
12 | )
13 |
14 | $Env:WorkingDirectory = $pwd.Path
15 |
16 | if ($Force)
17 | {
18 | Invoke-Expression "dotnet new maui-shell-cs -n $Name --force"
19 | }
20 | else
21 | {
22 | Invoke-Expression "dotnet new maui-shell-cs -n $Name"
23 | }
24 |
25 | $Env:WorkingDirectory = ''
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-shell.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI Shell Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI Shell in XAML
9 | echo.
10 | echo Requires a mandatory input: shell item name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set type_name=%1
19 |
20 | dotnet new maui-shell -n %type_name% %~2 %~3 %~4 %~5
21 |
22 | set WorkingDirectory=
23 | set type_name=
24 |
25 | :end
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-view-cs.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentView (C#) Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentView (C#)
9 | echo.
10 | echo Requires a mandatory input: page name
11 |
12 | goto end
13 |
14 | :process
15 |
16 | set WorkingDirectory=%cd%
17 |
18 | set view_name=%1
19 |
20 | dotnet new maui-view-cs -n %view_name% %~2 %~3 %~4 %~5
21 |
22 | set WorkingDirectory=
23 | set view_name=
24 |
25 | :end
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-view-cs.ps1:
--------------------------------------------------------------------------------
1 | # .NET MAUI ContentView (C#) Template
2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | param(
5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the view being created.")]
6 | [Alias("n")]
7 | [string]$Name,
8 |
9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")]
10 | [Alias("f")]
11 | [switch]$Force
12 | )
13 |
14 | $Env:WorkingDirectory = $pwd.Path
15 |
16 | if ($Force)
17 | {
18 | Invoke-Expression "dotnet new maui-view-cs -n $Name --force"
19 | }
20 | else
21 | {
22 | Invoke-Expression "dotnet new maui-view-cs -n $Name"
23 | }
24 |
25 | $Env:WorkingDirectory = ''
26 |
--------------------------------------------------------------------------------
/src/Scripts/maui-view.bat:
--------------------------------------------------------------------------------
1 | :: .NET MAUI ContentView Template
2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/
3 |
4 | @echo off
5 |
6 | if not "%1"=="" (if not "%1"=="-h" (goto process))
7 |
8 | echo .NET MAUI ContentView in XAML
9 | echo.
10 | echo Requires a mandatory input: view name
11 | echo Takes an optional input: xaml only
12 |
13 | goto end
14 |
15 | :process
16 |
17 | set WorkingDirectory=%cd%
18 |
19 | set view_name=%1
20 | if "%2"=="" (set options=_) else (set options=%2)
21 |
22 | if "%options%"=="_" (dotnet new maui-view -n %view_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-view -n %view_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.))
23 |
24 | set WorkingDirectory=
25 | set view_name=
26 | set options=
27 |
28 | :end
29 |
--------------------------------------------------------------------------------