Forum Xamarin.iOS

Announcement:

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.

Binding Native Library No Longer Works

I've been working on a project since November, and it has been building fine until yesterday when I upgrade Visual Studio 2017 and upgraded the Mac to Visual Studio for Mac.

Now, it cannot find any of the references from the native library assembly in my UI project.

I get this error in the iOS UI project for each Namespace the native library project.
Error CS0246 The type or namespace name 'The Namespace Name etc...' could not be found (are you missing a using directive or an assembly reference?)

I can download the November build and use the caches that are on the Mac and the bin folder from the old build and it still works (runs on the Mac iPhone simulator). I cannot however clean the solution and rebuild. Since I upgraded, Intellisense has the red lines under all references to the native library namespaces.

Everything was working before, and I did not make any changes except inside my UI ViewController. The only changes are Visual Studio for PC and Mac.

My info.plist is set to build none.
My .a file build action is set correctly.

It looks like there are some similar issues in Bugzilla that have been closed or are still open. Is this a known issue?

Error Native Linking
id=61235

Native References in iOS Binding projects do not build in VS (closed)
id=43316

I can't post links, but those are the IDs of the bugs.

Here is my PC system info from VS:

Microsoft Visual Studio Community 2017
Version 15.5.7
VisualStudio.15.Release/15.5.7+27130.2036
Microsoft .NET Framework
Version 4.7.02556

Installed Version: Community

Visual Basic 2017 00369-60000-00001-AA395
Microsoft Visual Basic 2017

Visual C# 2017 00369-60000-00001-AA395
Microsoft Visual C# 2017

Visual F# 4.1 00369-60000-00001-AA395
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package 8.10.01106.1

ASP.NET and Web Tools 2017 15.0.31129.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services 1.0

ASP.NET Web Frameworks and Tools 2012 4.0.20601.0

ASP.NET Web Frameworks and Tools 2017 5.2.51007.0

Azure App Service Tools v3.0.0 15.0.31106.0
Azure App Service Tools v3.0.0

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service 2.0
JavaScript Language Service

JavaScript Project System 2.0
JavaScript Project System

Merq 1.1.17-rc (cba4571)

Microsoft Azure Tools 2.9

Microsoft Continuous Delivery Tools for Visual Studio 0.3

Microsoft JVM Debugger 1.0

Microsoft MI-Based Debugger 1.0

Microsoft Visual Studio Tools for Containers 1.1

Mono Debugging for Visual Studio 4.8.4-pre (3fe64e3)

Node.js Tools 1.4.11025.7

NuGet Package Manager 4.5.0

SQL Server Data Tools 15.1.61710.120

TypeScript Tools 15.5.11025.1

Visual Studio Code Debug Adapter Host Package 1.0

Visual Studio Tools for Apache Cordova 15.123.6829.2

Visual Studio Tools for Unity 3.5.0.3

VisualStudio.Mac 1.0

VisualSVN 6.0.4

Xamarin 4.8.0.760 (fc93f3f5b)

Xamarin Designer 4.8.188 (c5813fa34)

Xamarin.Android SDK 8.1.5.0 (HEAD/75f8c6838)

Xamarin.iOS and Xamarin.Mac SDK 11.6.1.4 (db807ec)

Sign In or Register to comment.