publish xamarin app in visual studio 2015 - c#

I have done all visual studio 2015 installation process.
So did Hyper-v settings.
Emulatro starts but does not install a program that I have written on it.
Please help to resolve this problem
Several hours and nothing happens in this case is. The program does not deploy!!!

Would need more details/emulator logs to diagnose issues with the VS emulator, but I would encourage you to disable Hyper-V and then run the Xamarin installer for Windows to get the fast Google Emulators.
They are nice and should fix your problem.
http://xamarin.com/download

Related

Xamarin Android App crashes when attempting to debug on a physical device

I am attempting to debug an android app created using Xamarin Forms in Visual Studio 2022. However, the app crashes on launch and no output is shown. When running the app normally, there are no issues. Running or debugging the app on the emulator poses no problems, either. Unfortunately, I have no other information to provide that I can think of.
There seems to be a bug with Visual Studio 2022. I came across similar issue, I've fixed it by changing in your csproj file:
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
To
<EmbedAssembliesIntoApk>false</EmbedAssembliesIntoApk>
It worked like a charm for me :)
Just hit this problem, the work around that worked for me was disable "Use Fast Deployment" in the Properties->Android Options.
The build was crashing before any debugger or log output was generated.

I can't find cross platform app Xamarin on visual studio 2017

I have installed visual studio 2017 community properly with mobile development packge and I can't find cross platform app in c#
What can I do to install it ?
You should review the installation procedure documented by Microsoft.
If you don't have the Xamarin menu under Help then you may have missed something. You can re-run the installer and change workflows to confirm you have all the required pieces. Note that additional steps are needed to build and deploy, although you see stuck at just the installation step if templates are missing.
The problem was that some files was corrupted because of a faild complete unistallation of xamarin ... so i prefered a speed and smart solution that can help me to continue my work so i installed a new os windows in new partition i tried to install those files , they worked on the new os so it's clear that xamarin will be installed properly finaly i installed the hole visual studio and that worked for me ...

"C# 2017 compiler could not be created" error message while opening project

I've Visual Studio 2017 community edition. I have a C# project created using Visual Studio 2015. When I try to open the project in VS 2017 I get an error message prompt:
--------------------- Microsoft Visual Studio
Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created.
Please re-install Visual Studio.
--------------------------- OK
I'm trying to obtain help if anyone else has faced similar issue. I feel going the uninstall and then reinstall route is very costly for me and would try that option last if I've got no other resort.
What I've done so far :
Tried starting visual studio with administrative privileges
But problem remained same.
I tried creating a new console project solution from scratch but in that case I get very same error and an additional error error also shown below:
System Environment: Windows 7 Ultimate Service Pack 1
You can try to close all VS 2017 instances and delete the folder %localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache, then open VS to create a new Console project.
Or
please re-run the VS 2017 installer as administrator, click the icon beside ‘Launch’ button and choose ‘Repair’ to repair as shown below:
Just to brief the history of my problem, I had first installed Visual Studio(VS) 2017 community when it was in RC stage. This was first time when I saw the workload based UI of visual studio installation. Initially I simply chose .Net desktop development workload to get started as I was interested in creating only console applications to get my hands dirty.
Initially it was all working well. One fine day I added all other workloads I was interested in namely Universal Windows Platform Development, Azure Development, ASP.NET and web development,Node.js development, and Mobile development with .Net. I'm not sure if there any of the specific workloads to be blamed for the issue I've posted.
Just to avoid the case if RC and RTM release builds might not have messed up my entire environment, I simply uninstalled the entire stuff, rebooted my machine and installed it again from scratch from latest RTM release for Visual Studio Community.
I would strongly recommend that you first try possible solutions suggested by #Sara-MSFT before doing clean reinstall just in case if it works. It can save you couple of hours required in whole reinstallation process if it works.

Facebook SDK error loading on Windows 10 app (XAML, C#)

This is very odd, yesterday this project loaded fine and today it doesn't want to.
Here is the error message:
C:\Dailymotion\dailymotion-windows-universal\Libs\winsdkfb-master\FBWinSDK\FBSDK-UWP\FBSDK-UWP\FBSDK-UWP.vcxproj : error : The method or operation is not implemented.
Project 'Facebook' could not be loaded because it's missing install components. To fix this launch Visual Studio setup with the following selections:
Install Universal Windows Platform Tools
C:\Dailymotion\dailymotion-windows-universal\Libs\winsdkfb-master\FBWinSDK\FBSDK-UWP\FBSDK-UWP\FBSDK-UWP.vcxproj : error : The method or operation is not implemented.
What is crazy is that i already have "Install Universal Windows Platform Tools" installed because i am developing a Windows 10 app! anyone have any idea?
did you upgrade your UWP tools?
I'm using VS 2015 Update 1 with UWP Tools 1.2 and I'm able to build https://github.com/Microsoft/winsdkfb/tree/master/FBWinSDK/FBSDK-UWP without errors.
Thank you for reporting this issue with using Visual Studio 2015 RTM to open C++ UWP apps, and our apologies for introducing this error.
We've released a fix for this issue. While we encourage you to install Update 1, you do not need to do so to get this fix. VS will automatically download the fix
If you have an internet connection, and
Once every 24 hours upon restarting Visual Studio.
So, if you wait until 24 hours from now, you’ll get the fix. If you want to force it sooner, here’s instructions:
Close Visual Studio
Open %appdata%\Microsoft\VisualStudio\14.0\FeedCache
Copy all the files out to a new folder
Make sure you have in internet connection and restart Visual Studio
Wait a few minutes and you’ll see a new file appear in the FeedCache folder
You can copy the old files back into the folder if you want
If you can’t successfully open your project with a pre-Update 1 Visual Studio, please let us know.
Thanks!
-Paul Chapman
Visual Studio PM

VS 2013 xaml editor and Microsoft.VCLibs.120.00.Debug

I recently installed VS 2013 on Windows 8.1. When I open up any xaml file I get this error message below.
This happens even if I create a project from scratch in VS 2013. I've tried re-installing Windows 8.1 and VS 2013.
Has anyone come across this issue?
System.Exception Package failed updates, dependency or conflict
validation.
Windows cannot install package
App.a94e67374.a8775.a4662.ab57f.a7f1805386d2c because this package
depends on another package that could not be found. This package
requires minimum version 0.0.0.0 of framework
Microsoft.VCLibs.120.00.Debug published by any publisher to install.
Provide the framework along with this package.
I had the same error just like you.
I registered myself and got a developer licence. After registerering
I debugged the program and it all got fixed by itself
I use windows 10, to fixed it, I go to Setting -> Update & Security -> For developers, I choose Developer mode. In windows 8 and 8.1, I don't know.
the figure of setting
It happened to me as well with both VS 2013 and VS 2015. I think it's a common problem when VS is freshly installed.
I solved it both the times with running VS with administrator privileges (right click on the VS tile on Windows 8 and select "Run as Admin") and opening a XAML file with the editor. It takes some more time than usual, but then the problem gets fixed by itself.
After that you can continue using VS with standard user privileges.
Sadly none of the above solutions seemed to work for me.
My windows 8 installation is quite old and over the years, I had installed several visual studio versions such as 2010,2012 and 2013.
Even uninstalling visual studio, there will be many files and packages left behind.
I managed to fix this issue with the following steps:
1. Install Revo Uninstaller and from the options menu I enabled the "Show system components".
2. For some reason along with the visual studio 2013 ultimate installation (main application - do not uninstall this) I uninstalled two installations related to the main visual studio 2013 application such as: vs 2013 premium and vs 2013 professional apart from the main application (Repeat: Do not uninstall the main app)
3. Uninstall all the Microsoft Visual C++ runtime packages
4. Performed a repair of the the visual studio
Something else that I would rather prefer doing than performing a full repair as it takes far too long, would be to uninstall all the visual C++ runtimes packages and anything related to them (you might brake some apps but they are easy to find and easier to install)
and simply reinstall those visual c++ redistributes starting from the latest version and see if it works.
Before anything however, make sure you have a developer license like said on a previous post (no developer account is required. You don't have to pay for anything yet).
I'll try to provide step-by-step guid to fix the issue.
Please create an MSDN account here https://msdn.microsoft.com and use your login credentials in VS 2013
You have to enable "Developer mode" option from UPDATE & SECURITY (Windows 10). Attaching the screen shot for more clarity.
This should solve the problem, but if it doesn't then,
Try restarting your Visual Studio as administrator.
Some nice reads about configuring your device for development Windows 8 and Windows 10

Categories