Release build but debugging enabled - xamarin

I'm trying to export an Android app. I've selected "Release | ARM".
It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled".
How can that be, given that it's a release build?
How do switch off debugging?

I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project.
To fix this, do the following:
Go into the Android project options (double-click on the Android project).
Select the Compiler options.
In the "Debug information" drop-down menu, select None (mine had the Portable option selected). Do this configuration for the Release build (the "Configuration" drop-down menu at the top says Release (Active)).
Click on the Android Build options and take a look at the "Debugging Options". The Enable developer instrumentation (debugging and profiling)setting should be greyed out (and the checkbox should be unchecked). The setting is greyed out because of what was done in step 3.
Publish the project.
So the problem was that by default the "Debug Information" wasn't set to None.

Related

I get "the application has not been built" from Visual Studio 2019 on Mac for Xamarin.IOS app project. Target is iphone, not sim

Project was copied over from a VS on Windows, on which it builds and runs okay through same Mac, onto an iPhone.
I just installed VS on the Mac.
Anything special on it I need to do?
Check for the default project selected to build & deploy.
Often when switching projects from Windows to Mac the default deploy project is selected as Droid. The same is for vice versa when switching projects from Mac to Windows the default deploy project is selected as iPhone.
If the problem still persists try to -
Try deleting the packages folder containing nuggets.
Restore nugget packages.
Clean & Rebuild Solution.
Try the following:
Delete the Bin and Obj folder.
Clean the solution
Rebuild the solution
In the top left hand corner choose Ad-Hoc|iPhone if you have this option
If not select debug | iPhone
In the "Solution" pane, check if any of your projects have a blue info icon next to them that, when hovered over, display "Project not built in active configuration". If so, you might have to try the following to add them to the build:
In the Solution pane, Control+Click on the root project > Options.
In the Solution Options popup, expand "Build" on the left (if needed) and select "Configurations" below it.
On the right, switch to the "Configuration Mappings" tab.
Add a check to the box in the "Build" column for any Solution Item that needs to be part of your build. Set the drop down in the "Configuration" column to the appropriate value (guessing "Debug|iPhone" since it sounds like you were trying to test on an actual iPhone, not the simulator).
Click "OK" to close the Solution Options popup.
Build menu > Clean All. Build menu > Rebuild All.
Try running the project again, either with the "Play" arrow in the header or the Run menu > Start debugging.
The steps above were generated using Visual Studio for Mac Professional, v8.10.6 (build 10).
I had this same error, but it was a clean/new project.
In project's Options, under Build/Mac Signing, I checked 'Sign the application bundle; and selected the 'Mac Developer (Automatic)' identity.

Xamarin iOS Release Build fails

I am using Xamarin iOS in Visual Studio 2017 for Windows!
Building and debugging the debug Version of my App via a build host works great. But when I try to build the Release Version it says:
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3463,5): error MSB6006: "sgen.exe" exited with code 1.
Signing Identities are installed and vislible in VS.
I also found this Blog post. But the workaround is only for Mac Users.
Does anyone know what's wrong here?
Thanks!
Have you configured your iOS release? if not this may be the solution.
In Visual Studio, open Solution Explorer (Keyboard: Ctrl + Alt + L).
Right-click your solution and then click Configuration Manager.
On the configuration manager dialog box open the active solution configuration drop-down menu and click New.
On the new solution configuration dialog box:
For Name, enter iOS Release
Open Copy settings from drop-down menu and select Release.
Clear the Create new project configurations dialog box.
Open the Active solution platform drop-down menu:
Select iPhoneSimulator and clear the check boxes on all rows except
your Xamarin.iOS project and any projects (for example, portable class libraries) it depends on.
Repeat this step for iPhone.

Why is the Windows 'For developers' Settings dialog window appearing each time I create a new Zebble for Xamarin - Cross Platform Solution project?

Using Visual Studio 2015 Update 3, I am trying to follow the video instructions for creating a new project found here: http://zebble.net/docs/creating-a-new-project
I do the following:
I ensure the Zebble extension is installed
I click the start screen's 'New Project' link
I select 'Zebble for Xamarin - Cross Platform Solution' as project type
I name the project 'My application'
I click the 'OK' button
What happens next is:
The Windows 'Settings' dialog window appears on top off my Visual Studio window and in the left hand pane 'For developers' is selected (the same dialog that would appear if you pressed the Windows key on your keyboard and then typed "settings" followed by pressing the Enter key)
To resolve the Windows 'For developers' Settings dialog window appearing each time, you need to enable your device for development.
To enable Developer mode:
From the For developers settings dialog, choose the 'Developer mode'
Read the disclaimer for the setting you chose, then click Yes to accept the change.
After clicking Yes, you may be prompted to restart your computer.
Source: Enable your device for development
Make sure you are using the latest version of the Zebble Visual
Studio extension.
Try running your visual studio in admin mode.
Also see I can not build the generated UWP project by Zebble

Change target CPU settings in Visual Studio 2010 Express

I wish to change the target CPU settings from "Any CPU" to "x86" in Visual Studio 2010.
I read on another website that I need to do the following:
Go to the startup project of your program.
Open the properties window.
Click the compile tab.
Click advanced compile options.
Change the target CPU options to x86.
But I don't see the "compile" tab anywhere in the properties.
Please help me at the earliest.
Update: I do see a platform dropdown, but that contains nothing apart from "Any CPU",
.
I believe the reason you don't see the Compile tab in the project properties is because you're using the Express edition. Optimization for a specific CPU type is not offically supported in this edition. However, you should be able to change the active solution platform in the following way:
From the "Tools" menu, select the "Options" item, and then select the "Projects and Solutions" option in the listbox on the left-hand side of the Options dialog. (You might have to check "Show all settings" first.) Check the box that says "Show advanced build configurations":
Then, on the "Build" menu, see if you have an item called "Configuration Manager". If not, you need to add the item to the menu (right-click on any area in the toolbar and choose "Customize" at the bottom of the list).
Once you've opened the Configuration Manager dialog, go to the "Active solution platform" drop-down box and choose "New". From the "New Solution Platform" dialog that appears, you should be able to choose "x86" from the first drop-down box.
Alternatively, it looks like you can manually edit the project file to specify the CPU type. See Changing the target CPU in VB Express 2008. It looks like it amounts to simply changing the <PlatformTarget> under the first <PropertyGroup> section to "x86".
To make the Build menu bar appear on your Visual Studio 2010, go to menu Tools -> Settings -> check Expert Settings. So later on you can use Configuration Manager.
I don't have Visual Studio 2010 right now, but in Visual Studio 2008, you have to first add a configuration through Build -> Configuration Manager.
After you have added the configuration, you can simply select the Active Configuration through the drop down menu.
I don't have Visual Studio 2010 right now, but in Visual Studio 2008, you have to first add a configuration through Build -> Configuration Manager.
After you have added the configuration, you can simply select the Active Configuration through the drop down menu.

How can I make a release build with Visual Web Developer 2010?

In web developer express 2008 there was a Build option in the menu.
In web developer express 2010 it is not in the menu anymore, and under the Debug menu option I can only make a Debug build.
What is the new way to make a build release in 2010?
alt text http://www.deviantsart.com/upload/1nnd8pm.png
Select "Tools" -> "Settings" -> "Expert Settings".
This will enable "Build" -> "Configuration Manager".
There will be more folks asking the same question (it took me some time to figure this out), let's make this public info.
On the screen capture you posted, there is a "Configuration Manager" option on the menu. Try looking there for release vs debug build settings, including the current/active configuration.

Resources