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

Android packages not repackable #125

Open
Falco20019 opened this issue Dec 6, 2023 · 0 comments
Open

Android packages not repackable #125

Falco20019 opened this issue Dec 6, 2023 · 0 comments

Comments

@Falco20019
Copy link

Falco20019 commented Dec 6, 2023

Currently it's not possible to package any newer target frameworks like net6.0-android31.0 since they were not parsable by NuGet.Packaging in version 5.6.0 used by gpr. Support for those was added beginning with 5.8.0.6718. Please update the version of NuGet.Packaging to 5.8.1 or newer.

That's what grp will report.

Uploading package Com.Hoho.Android.UsbSerial 3.4.6 from Com.Hoho.Android.UsbSerial.3.4.6.nupkg ...
Found 1 package.
[Com.Hoho.Android.UsbSerial.3.4.6.nupkg]: Unsupported targetFramework value 'net6.0-android31.0'.
System.IO.InvalidDataException: Unsupported targetFramework value 'net6.0-android31.0'.
   at NuGet.Packaging.ManifestReader.ReadMetadataValue(ManifestMetadata manifestMetadata, XElement element, HashSet`1 allElements)
   at NuGet.Packaging.ManifestReader.ReadMetadata(XElement xElement)
   at NuGet.Packaging.ManifestReader.ReadManifest(XDocument document)
   at NuGet.Packaging.Manifest.ReadFrom(Stream stream, Func`2 propertyProvider, Boolean validateSchema)
   at NuGet.Packaging.PackageBuilder.ReadManifest(Stream stream, String basePath, Func`2 propertyProvider)
   at NuGet.Packaging.PackageBuilder..ctor(Stream stream, String basePath, Func`2 propertyProvider)
   at GprTool.NuGetUtilities.RewriteNupkg(PackageFile packageFile, NuGetVersion nuGetVersion) in /home/runner/work/gpr/gpr/src/GprTool/NuGetUtilities.cs:line 202
   at GprTool.PushCommand.<OnExecuteAsyncImpl>g__UploadPackageAsync|1_3(PackageFile packageFile, NuGetVersion nuGetVersion, String token, IAsyncPolicy`1 retryPolicy, CancellationToken cancellationToken) in /home/runner/work/gpr/gpr/src/GprTool/Program.cs:line 522
   at GprTool.EnumerableExtensions.<>c__DisplayClass0_1`1.<<ForEachAsync>b__1>d.MoveNext() in /home/runner/work/gpr/gpr/src/GprTool/EnumerableExtensions.cs:line 34
--- End of stack trace from previous location ---
   at GprTool.PushCommand.OnExecuteAsyncImpl(CommandLineApplication app, CancellationToken cancellationToken) in /home/runner/work/gpr/gpr/src/GprTool/Program.cs:line 502
   at GprTool.GprCommandBase.OnExecuteAsync(CommandLineApplication app, CancellationToken cancellationToken) in /home/runner/work/gpr/gpr/src/GprTool/Program.cs:line 812
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
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

1 participant