Forum Xamarin.iOS


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

How to build nuget package from native objective-c binding library including extras.cs file?


When I pack a Nuget Package from an Xamarin.iOS native binding library some files are ignored.


I've made an Xamarin.iOS Binding Library, which works pretty well, in other Projects when I link it as reference. This way it uses the ApiDefinitions.cs file as well as the Structs.cs and Extra.cs (ehich contains additions to the ApiDefinitions.cs) File. Now I want to create a Nuget Package to make this Binding Library Project more portable, building the Nuget Package via Visual Studio for Mac works well, but the additional Partial Classes i've defined in Extras.cs are not available.

Project Structure

├── ApiDefinition.cs
├── Extras.cs
├── Project.iOS.csproj
├── Project.iOS.nuspec
├── Properties
│ └── AssemblyInfo.cs
├── Structs.cs
└── packages.config


Sign In or Register to comment.