Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we get template for MAUI Class library #16

Closed
PaulAndersonS opened this issue Aug 15, 2021 · 5 comments
Closed

Can we get template for MAUI Class library #16

PaulAndersonS opened this issue Aug 15, 2021 · 5 comments

Comments

@PaulAndersonS
Copy link

Can we get template for creeating a MAUI Class library.

@egvijayanand
Copy link
Owner

Hi @PaulAnderson02,

Since the steps for creating a .NET MAUI class library (and how to manage dependencies) is not yet emerged, this request can't be entertained for now.

Regards,
Vijay Anand E G

@egvijayanand
Copy link
Owner

egvijayanand commented Aug 15, 2021

Hi @PaulAnderson02,

The workaround would be to use a class library template configured as a .NET MAUI library.

If you're working with .NET CLI, then dotnet new classlib would create a new library project (or) if Visual Studio, create a new Class Library project.

Manual Steps:

In the C# project file, replace the <TargetFramework> element with the following:

<TargetFrameworks>net6.0-ios;net6.0-android;net6.0-maccatalyst;net6.0-windows</TargetFrameworks>

And then add the .NET MAUI element within the <PropertyGroup> block:

<UseMaui>true</UseMaui>

Regards,
Vijay Anand E G

@egvijayanand
Copy link
Owner

Hi @PaulAnderson02,

Glab to inform you that your request for .NET MAUI Class Library project template has been accepted.

Will release them by today.

Regards,
Vijay Anand E G

egvijayanand added a commit that referenced this issue Aug 16, 2021
.NET MAUI Class Library (#16) and Item Templates
@egvijayanand
Copy link
Owner

Hi @PaulAnderson02,

VS extension and NuGet package have been updated with the .NET MAUI Class Library project template and are released to the respective distribution channels.

Update them for the changes to reflect.

For more details, refer to my blog post and GitHub readme.

@PaulAndersonS
Copy link
Author

@egvijayanand Awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants