-
Notifications
You must be signed in to change notification settings - Fork 167
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
.NET MAUI Support - Fails to Generate NuGet package for Library project. #2919
Comments
@fealebenpae or @papafe can you take a look |
Actually, I thought we had released #2906. I'm guessing that once we do, this should go away, but might be worth verifying against the provided repro. |
I will take a look at the repro - am already installing rc2 as I'm typing this 😄 |
Looking at https://github.com/dotnet/msbuild/blob/main/src/Tasks/Microsoft.Common.CurrentVersion.targets it seems like this file is a generated ClickOnce manifest, which doesn't make any sense. I can't figure out why the Realm package causes it, but the NuGet package from #2906 doesn't exhibit the same issue. I'll go ahead and release it. |
It would probably be worth adding the ios/android specific identifiers that are bought in by .NET MAUI for .NET 6 ->
at a minimum. Then also adding supported os platforms:
|
We don't have any platform-specific C# code (aside from the bit that helps P/Invoke resolve our bundled native library) - would it still be worth it to multi-target the various flavors of .NET 6 in that case? Does this embed any extra metadata in the assembly or NuGet package that helps consumers? |
@fealebenpae Hmmmmm that is a good question @Redth thoughts on that? I know before with Xamarin iOS/Android there were specific libraries I thought you brought in? It would bring in additional metadata, but isn't needed usually unless you need to access iOS/Android specific APIs. All .NET 6 libraries should be compatible. |
Following up. I updated the version of Realm in my repro project and it built and packed just fine. So I think it is safe to say the issue is fixed. |
Thanks for confirming! I'll close the issue, but we're always here if you encounter other issues. |
When attempting to build a .NET MAUI (RC2) library project that includes the Realm NuGet (10.11.2) I get the following error:
If I call
dotnet build
the project will build fine. However, callingdotnet pack
causes the above error. I have included a minimal project that is able to reproduce the issue.Fails to Pack when Realm NuGet included
The text was updated successfully, but these errors were encountered: