Where is properties menu in Visual Studio 2017 Xamarin - xamarin.forms

I am getting an error in Xamarin when building a release version. I actually have never released code before, and i have no idea what im doing. if you could tell me, i am getting this error but i do not know how to follow the instructions because my Visual Studio doesnt have a menu called properties
Debug is not enabled in the current configuration. Please Start
Without Debugging or change it in Properties -> iOS Build.

Right click to IOS project--> open Proprieties page and enabled debug for IOS

Related

breakpoint not working on Xamarin PCL but working fine on .Android

Hello I have been trying to debug an Android project on mac os that was built with Xamarin Forms but have been unable to hit a single breakpoint in the Portable Class Library.
After deployment I get hollow type debugger.
Hollow breakpoint image
But its working fine on .Android and .IOS
Here is a list of everything I have tried so far:
Deleting the bin and obj folders then clean and rebuild Setting the
Android build property "Link Behavior" to "Don't Link" Unselecting Strip
native debugging symbols Removed all symbols on path to debug file
Fresh installation of Xamarin
fresh cloning
changing Debug information to "Symbol only"
Can you please suggest any answer that can help me in this ?
This issue was introduced in a recent visual studio update and should be fixed soon
Visual studio for Mac
While I wait for the new visual studio update I manage to fix this by enabling Fast Assembly Deployment located at: Android Project Options -> Android build
https://developercommunity.visualstudio.com/t/Debugging-of-Xamarin-application-on-Andr/10001903
Visual studio for Windows
Try enabling Use Fast Deployment check this thread:
https://developercommunity.visualstudio.com/t/breakpoint-not-hit-debugging-xamarin-android-proje/1561025
According to the screenshot you provided, it seems on Windows Visual Studio.
The hollow red circle in your screenshot means disable a breakpoint without deleting it. It shows the breakpoint, but it would not work in debug.
You could click the black circle in the screenshot to enable breakpoint.
For more details, you could refer to the MS docs. https://learn.microsoft.com/en-us/visualstudio/debugger/using-breakpoints?view=vs-2022

Xamarin Forms 5.0.0.2012 Hot Reload Not Working

I have updated the project as per the Visual Studio prompt to Xamarin Forms 5.0.0.2012.
When I deploy my Xamarin Forms app I see in the hot reload section of Vs 2019 that Hot Reload is initialising. When I make changes to the XAML and save I see that Hot Reload in connected and appears to be sending the XAML changes. However, there are no changes applied to the running app's screen. I have tried two diffrent Emulator versions and my own Samsung S8 device running Android 9.Tried scanning S.O. for answers but none.
Microsoft Visual Studio Community 2019 Preview
Version 16.10.0 Preview 1.0
Xamarin 16.10.000.21 (main#240d4e4)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 16.10.0.0 (remotes/origin/8affbf0abc24122abd5517b2b52f1073cb52bd7b#8affbf0ab)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Make sure that all projects use Xamarin.Forms packages of the 5th version.
Check the MS VS studio version. Make sure that you have installed the latest stable release.
Make sure you have installed latest SDKs for Android and IOS platforms.
Check XAML Hot reload settings. It must be enabled.
There are two modes of reloading in settings:
a) reload only components with changes (default)
b) reload a page entirely
if the first does not work, try the second mode.
The latest MS VS version (16.11.3.0) has the button having the fire icon which forces to apply Hot reload.
Also one important setting that can be enabled: all changes will be applied on you click Save. So hot reload will applied only after you save the xaml (ctrl+s)
Open Visual Studio Output window, choose Xamarin Hot Reload from the dropdown list, check whether a reload is started and whether changes are sent to your app using the appeared logs.
How to locate settings: MS Visual Studio Options -> Debugging-> Hot Reload.
Watch the screenshot with setting using the link below:
Hot Reload settings screenshot
Do something like this :
"Tools => Options => Xamarin => Hot Reload"
Click this link for more informations

Problems with .Net Core SignalR's HubConnectionBuilder in Tizen

I am developping a Xamarin.Forms app that should be compatible with Windows(UWP), Android and TizenTV. I am using .Net Core SignalR Client. The App works fine on Windows & Android but I can't get it to Work on Tizen (main Code is the same). Especially one line of code from signalR is not Working.
hubConnection = new HubConnectionBuilder().WithUrl(apiUrl+ "registration-hub").Build();
If it is excecuted in an Emulator with the Visual Studio Debugger the code just leaves the thread and doesn't continue after this line.
It doesn't log errors or anything else. If try to change the Exception Settings in Visual Studio i get this notification:
This debug engine does not support exception conditions. The condition(s) will be ignored.
I tried updating & downgrading packages but nothing worked. I can reproduce this in new empty .Net Tizen Projects.
I've just had exactly the same problem on my Xamarin forms project. For me, the fix was:
Start debugging
"Exception Settings" window
Click 5th icon: "Restore the list fo the default settings"

Xamarin : iOS simulator : the selected execution mode is not supported for .net projects

I've just installed Visual Studio on my Mac and started my first Xamarin Forms project. I've clicked "Getting Started" for my HelloWorld, and tried to run in the iOS simulator and got the following error :
the selected execution mode is not supported for .net projects
Could anyone please explain to me why this problem appears and how to open the simulator? Android simulator works just fine.
For those having similar issues, it seems as though the Getting Started doesn’t quite work well on Mac.
Instead of using it to open the simulators, simply right click your project and run from simulator there instead.

Visual Studio 2015 missing emulators

I have VS2015 and VS2013 installed side-by-side. In VS2013 I have a list of emulators to start my app and it works awesome.
But VS2015 only has device in the list. How do I add the phone emulators to Visual Studio 2015?
UPDATE:
After playing around some more I've dug up some new findings.
Creating a new universal JavaScript project has the same issue
Creating a new universal C# project DOES show a list of emulators.
This worked for me!
Although I had CoreCon\12 and vs2015.3 instead of CoreCon\11 and vs2012
Maybe you could fix this issue by deleting this folder
C:\Users\\AppData\Local\Microsoft\Phone Tools\CoreCon\11.0
Then open VS2012 again.
If not repairing is always recommended
original post : no-emulator-lists-to-deploy-windows-phone-app
Rerun the installer. Make sure that the desired options are checked (probably either Windows Phone 8.1 Emulator or Microsoft Visual Studio Emulator for Android, you don't say which emulator you are interested in). If in doubt, just check everything.
If you had unloaded your start project, it may not be your start project anymore after reloading. So do a right click -> Set as Startup Project and then hopefully the emulators will reappear.

Resources