Windows Phone 7.1 Advertising Sdk on Visual Studio Express 2012 for Windows Phone - windows-phone-7.1

I'm trying to build my wp7 project under vs2012 express for wp. It uses the ad sdk, but I am getting the following errors:
Error 7 The name "AdControl" does not exist in the namespace
"clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=
Microsoft.Advertising.Mobile.UI".
Does anyone know why?
CLARIFICATION - i'm not trying to upgrade my project to wp8 at this time --- just trying to build for 7.1 like before using the new sdk.
Should I be also installing the old 7.1 phone sdk?
http://www.microsoft.com/en-us/download/details.aspx?id=27570
Thanks

I ran into this problem - deleting the Microsoft.Advertising.Mobile.UI reference from the project and readding it and a reference to Microsoft.Advertising.Mobile fixed it for me.

you can check on the following things:
Check whether you updated the target phone framework to "Windows Phone 8.0 OS"
check if you can see yellow exclamation icon in Advertising SDK dll in references folder in Solution Explorer. if yes, then delete that reference and add the reference again to advertising sdk dll from "Add Reference" dialog box.

Related

In Visual Studio for MacOS, how do I get the iOS simulators to show in dropdown list?

I'm running Xcode 14.0 and Visual Studio for Mac, 17.3.5. The simulators don't show up in the dropdown menu where you can select the device you're using to run the app. I've verified that the Preferences | Apple SDK is pointed at Xcode.app, and that Xcode is located in the Applications folder. Why are the simulators not showing, and how can I fix it. Also: when I plug in a phone via USB, VS does successfully see the phone.
As Jason suggested, XCode 14 is not yet supported in Xamarin.iOS or .NET MAUI, you need downgrade your Xcode version to 13.4.1 and could download it from the downloads page in the Apple Developer Portal. For more information, you can refer to https://github.com/xamarin/xamarin-macios/issues/15954
Update:
Xcode 14 is currently supported, you need to upgrade your VS to 17.3.6 and if there are any other issues, please continue to post back to the GitHub.Thanks!
Visual Studio 17.3.6 was released yesterday which includes support for Xcode 14.0 on .NET 6

vs 2017 and target framework version 9 in xamarin.android

I used to create my apps using visual studio 2019 but for some reason I had to downgrade to vs 2017. my apps used to work properly and I had no problem compiling them on my physical device that has android 10 on it. now i'm getting an error when I open my old apps using vs 2017 that target framework version 9 is not supported. and when I try to create new apps, they won't run on my phone. I tried to change my target framework version but there is only versions up till android 6. i'm trying to install version 9 using the sdk manager but it's not working. I would like to know how to solve this issue. should I reinstall vs 2019. thanks in advance.
I attached a photo to show you what i'm doing to install api 29.
What is Xamarin version? I suspect that your version of Xamarin.Android is 6.x which means that you won't be able to target Android 7.0 or 7.1 even if they are installed through the SDK manager.
You can check the version from Help > About Microsoft Visual Studio.
If you're using Visual Studio 2017 or newer, Xamarin updates are delivered as part of Visual Studio updates. To manually check for updates, go to Tools > Extensions and Updates... In the left hand menu, open Updates and select Product Updates. If there are updates available, they will be shown on this list.

Xamarin.iOS versions mismatch 11.14

I am on current Visual Studio Version 15.8.4 which contain Xamarin.iOS 11.14.0.13. Today I updated my Visual Studio for Mac and automatically updated Xamarin.iOS to version 12.0.0.15 (based on he Xcode 10 final release) which is not compatible. I get the following error:
Xamarin.iOS versions mismatch
The Xamarin.iOS SDK version installed on
Max is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
When I click 'Install' then the following error occurs:
Error
There were problems installing Xamarin.iOS '11.14'. Please try
again and if the problem persists, try installing directly on the Mac
and connect again.
On the mac I chose Update channel: Stable. I also tried the other channels withoud success. I am not able to install version 11.14 at all at the moment.
Is my only option to wait until they fix that version mismatch?
Visual Studio Version 15.8.5 fixes this. The release notes contain the following text:
Visual Studio Tools for Xamarin now supports Xcode 10, which allows
you to build and debug apps for iOS 12, tvOS 12, and watchOS 5.
I am getting the same error after reading this blog post and following the upgrade suggestions.
https://blog.xamarin.com/ios-12-and-xcode-10/
But my first read through I missed this little tidbit.
"On Windows, Visual Studio 2017 will prompt for an update as it rolls out."
It appears as if the Visual Studio update might not be available yet. I allowed the prompt to downgrade the SDK and I can now connect again. My problem now is that I can no longer use the iOS Xamarin Simulator on my Windows machine. I get a device not found.
I figure the only way to fix this is to downgrade my Xcode back to 9. A workaround is to simply uncheck the "Remote Simulator to Windows" option in Visual Studio under Xamarin -> iOS Settings. That allows the simulator to launch my app on the Mac. I think I can live with this for now and hope that a new VS update is right around the corner.
Update: I also think it is important to mention that Matthew Clendening in the comments to the original post did provide a link to a preview release of the Visual Studio tools if any was unwilling to wait for an official release.
Update 2: We decided to try the pre-release versions of the Visual Studio tools that Matthew linked above and did verify that Pairing works after installing them. If people are not spooked off by pre-release software then it is a viable option.
Update 3: I spoke too soon. I am able to Pair with my Mac with XCode 10 installed but still cannot get the Simulator to run on my windows machine so I am essentially back to where I was when I down graded Xamarin.iOS SDK to 11.4. I am going to dig more to see if this is an unrelated issue.
Last Update: So, overnight as Todd mentioned Microsoft released 15.8.5 and after upgrading, everything is working normally again. Lesson learned ... don't upgrade ANYTHING until EVERYTHING is ready.

Xamarin - When try to deploy the build never ending

I'm developing xamarin application for both IOS and Androaid, when I'm try to publish the Ios appliaction to my iphone the build never ends and no error appear, I tring to upgrade my Xcode but this didn't help.
When I'm using the IOS simulator everything works fine, the build ends and the app run as expected. I tried all the solutions that I found on the internet but none of them help.
Is anybody encounter this problem and have solution for this issue??
enter image description here
Xamarin frameworks are updated as latest stable version on both of Visual Studio and MacOs?
Did you accept Apple New License Agreement on your apple account?
You can check logs. (Help->Xamarin->Open Logs)

Android SDK could not be found

some where on Xamarin forum i found that i did not had android>>BuildTool>>19.0,19.3 and all that. so i open up and installed all these pakages. But now i open visual studio and open project (Android App) this exception is comming on Main.axml
Exception:
The Android SDK could not be found. Make sure the path to the SDK is correctly configured in the Xamarin studio option and that you have installed the plateform tools and atleast one plateform SDK.
Please help me getting out of this exception .
Thanks!
Looks like you're missing the Android NDK. After the installation, if still doesn't work, try to double check the parts Java JDK (32 bit), Android SDK For more information check over here.
Try to change SDK path in Visual Studio Tools->Xamarin to:
"...Android SDK in a AppData folder that's hidden from the user"
Xamarin Forum which helped me

Resources