Missing OpenTK when porting Xamarin.iOS app to .Net 7 - xamarin.ios

I am porting a Xamarin.iOS application using OpenTK to net7.0-ios:
error CS0246: The type or namespace name 'OpenTK' could not be found
(are you missing a using directive or an assembly reference?)
OpenTK assembly seems to be missing from net7.0-ios.
In net7.0-android one can reference the Xamarin.Legacy.OpenTK NuGet package to get OpenTK. But this package is only for Android. I cannot find the corresponding legacy package for iOS.
Are legacy bindings for OpenTK no longer available in net7.0-ios?

Related

type or namespace could not be found / Xamarin

i tried the MVVMCross Tutorial over at https://www.youtube.com/watch?feature=player_detailpage&list=PLR6WI6W1JdeYSXLbm58jwAKYT7RQR31-W&v=_DHDMNB_IeY&t=1563s. Android works very fine.
I'm currently at iOS and it does not work like in the video. It says:
Error 8 The type or namespace name 'MvxMessage' could not be found (are you missing a using directive or an assembly reference?)
so i can't to anything. Do you guys know what to do?
Edit: I use Xamarin.iOS Unified.
The general advice seems to be not to use the unified projects yet.
See:
Could not install package MvvmCross.PortableSupport 3.2.1 at Visual Studio 2013 for PCL Profile 158
http://blog.xamarin.com/is-the-ios-unified-api-for-me/ - "if you don’t need to utilize the App Extensions framework today, hold off on moving to our preview Unified API"

Missing namespace ServiceClient (ServiceStack.ServiceClient.Web) using VS2013 with ServiceStack.Client package v.4.0.3

I'm fairly new to C#, Visual Studio, and totally new to ServiceStack. I'm trying to create a ServiceStack.ServiceClient.Web.JsonServiceClient object, but I get the error:
The type or namespace name 'ServiceClient' does not exist in the namespace
'ServiceStack' (are you missing an assembly reference?)
I have used the nuGet add-on's Library Package Manager to install the "Service Clients for ServiceStack" v4.0.3 package (id:ServiceStack.Client), verified that my target framerwork is ".NET Framework 4.5", and included
using ServiceStack.ServiceClient.Web;
at the top of my code. What am I missing?
Thanks.
You're using the just released v4 of ServiceStack which is a breaking release with significant changes that requires additional development effort to upgrade to.
Here are NuGet instructions to remain on ServiceStack V3.

Project Reference Compilation Error

In my C# solution, there is a web service project in which adding project reference of a class library project does not work, it throws compilation error saying -
The type or namespace name 'xyz' does not exist in the namespace
'abc.pqr' (are you missing an assembly reference?)
abc.pqr.xyz is from the class library being referenced.
while adding dll reference does not throw any compilation error.
I even checked the framework, it is .net framework 4 in both.
One thing more, the project which needs to have a reference was a web service project (Framework 3.5, converted to 4.0).
I added another web service (then converted to 4.0), then added project reference added the same code, compilation goes well.
Issue is with only one project in the solution.
Please help me to figure out the fix.

The type or namespace could not be found

I'm currently trying to convert a WiX 3.5 custom actions project in Visual Studio 2008 to WiX 3.7 and Visual Studio 2012 and I'm getting the following exception:
The type or namespace name 'MyNamespace' could not be found (are you
missing a using directive or an assembly reference?)
The dll is definitely referenced and Visual Studio 2012 has no problem seeing the namespace. Everything under the namespace even pops up in Intellisense, but when I build it I'm getting this exception.
Anyone have an idea of what's going on here?
Additional Info:
The namespace I'm referencing is a .Net 2.0 library and the custom actions project is a .Net 2.0 project.
EDIT:
After further investigation, I'm getting this warning, which I'm guessing is the root of the problem:
The primary reference "MyNamespace, Version=8.5.1.20, Culture=neutral,
PublicKeyToken=f593502af6ee46ae, processorArchitecture=MSIL" could not
be resolved because it has an indirect dependency on the .NET
Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0"
than the version "2.0.0.0" in the current target framework.
Why is it trying to use mscorelib 4.0 when this is a 2.0 project?
So it turned out that the dll being reference, while compiled to target the .Net 2.0 framework, was being compiled with the 4.0 compiler. Switching the project to compile with the 3.5 compiler solved the problem.
This may be completely unrelated but I had a similar issue yesterday. I had accidentally copied a class file (.cs) from one solution into another solution. Clearly, I hadn't added the references to the other solutions.
In our case, while the referenced dll was targeting .Net 4.0, it had its own reference to a .Net 4.5.2 dll. The referenced 4.0 framework target led us to believe that 4.5 or 4.5.1 were sufficient to handle things, but they weren't—the referencing project had to be 4.5.2 to handle the dll and all its references.
This was clearly an error on the part of the dll maker.

Referenceproblem using SmartThreadPool in Mono for Android

I want to use SmartThreadPool in a Mono for Android Application. Unfortunatley I am getting an error, when I reference the SmartThreadPool.dll from the project:
C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(2,2):
Error: Exception while loading assemblies: System.IO.FileNotFoundException:
Could not load assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for
Android profile?
File name: 'System.Web.dll'
at Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference reference,
ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
assemblies, AssemblyDefinition assembly)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute()
I already tried to put the library under the Assets folder and set its BuildAction to AndroidAssets as read in http://adnankhan12.wordpress.com/2012/10/23/android-mono-error-using-other-dlls-novell-monodroid-common-targets. But still it does not work.
At the moment, I am not able to use SmartThreadPool, but on the webpage of the project mono support is stated explicitly. So what am I missing or doing wrong?
Can somebody help me?
Thanks in advance.
According to the API Reference documentation the only class accessible from the namespace System.Web is HttpUtility class.
You might be right that Mono does have SmartThreadPool, however it is not included in Mono for Android and MonoTouch.
You can see which assemblies ship with Mono for Android here, and for MonoTouch here.
EDIT:
Also the DLL you are referencing is not built with either the Mono for Android or Monotouch compile and hence you will have troubles referencing it in your project. You also need to be aware of dependencies it might have.

Resources