I am new to Visual Studio IDE and struggling with a simple problem of clearing app data from the cache when I build a new instance of the app in the debugger and run it. Most emulators like those in android studio and eclipse have a simple way of rebuilding the app from scratch in the emulator so that all previous data gets wiped, but I haven't been able to find a way to do this in Visual Studio 2015.
Though still unable to find a way from within Visual Studio to clear the app cache, the app gets installed on the windows machine itself when running from Visual Studio and then remains resident on the computer, thus one can uninstall it from windows itself and this clears the app data so that the next time it is run from Visual Studio, it is a fresh install.
You can find the menu that allows you to wipe data (like the one you have when using Android Studio instead of visual studio) by clicking on "Open Android Emulator Manager" (you might have to add this as a menu button ), and the selection the virtual device to launch, press "Start" and the dialog box with the option to "Wipe data" appears
Related
Every time I start VS 2017 (Enterprise) on Windows 10, it opens the Settings > Update & security > For developers screen. Why does it do this, and how can I prevent it?
Installed workloads:
.NET desktop
UWP
.NET mobile (Xamarin)
I don't recall changing anything else during installation.
I had the exact same problem when opening a Xamarin project.
(Maybe it's related to the configuration request of the Xamarin Mac Agent)
I've found that enabling the developer mode on the settings stop the
panel to popup everytime.
It shows up because of the UWP workload (along with a notification in Visual Studio that you need a developer license to develop UWP apps):
https://learn.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development
However, if you are writing software with Visual Studio on a computer for first time, you will need to enable Developer Mode on both the development PC, and on any devices you'll use to test your code. Opening a UWP project when Developer Mode is not enabled will either open the For developers settings page, or cause this dialog to appear in Visual Studio:
Developer mode lets you sideload apps, and also run apps from Visual Studio in debug mode.
Either switching to developer mode or modifying your Visual Studio installation to not include UWP will stop it from happening.
I have installed all the tools for development with Xamarin in Visual Studio 2015, but somehow I do not see Blank App (Native) template when I create new project. I am only able to use Blank Apps (Xamarin Forms) template. I have already tried to reinstall Xamarin, reinstall Visual Studio install all the Xamarin sdks separately, but still no success. Have you please any idea, how to get the template to the list?
Try this(from msdn):
In Control Panel, open Programs and Features, choose the Xamarin item,
and click Change. In the setup wizard for Xamarin that appears, click
Next and then Change. In the list of optional features to install,
expand Xamarin for Visual Studio 2015, choose will be installed on
local drive, and click Next to proceed with adding the feature.
VS 2015 caches a lot and that usually means a lot of troubles.
Close Visual Studio 2015.
After restoring Xamarin, go to C:\Users\user_name\AppData\Local\Microsoft\VisualStudio\14.0\VTC and type on the search box cache.bin
NOTE - You will only see those files if you set the show hidden files option.
Delete all cache.bin files.
Reopen VS2015. All your Xamarin templates will be there and they show the appropriate icon.
Visual Studio updated Xamarin Blank App option to Mobile App (Xamarin.Forms). Once you have selected the Mobile App (Xamarin.Forms) option, you can create a Blank App as you like.
I make an creating directions GIF.
I'm on the latest version of Visual Studio 2015 Community (14.0.24720.00 Update 1) on Windows 10. I'm currently developing a Cordova App for Windows 10, iOS and Android using the Visual Studio Tools.
When I right click on the Project, then go Store > Associate App with the Store, I can successfully log in, see my existing apps and select the one I want, but when I try to actually associate that app with my VS project, VS just crashes.
I've already tried repairing Visual Studio through Add or Remove Programs and also cleaning out my project/solution, but none of this worked.
Any advice?
Thanks!
I had the same issue. Apparently, this is a known problem with VS2015 Update 1 (with the latest Cordova tools support).
The current workaround is to choose "Create App Packages" instead of "Associate App with the store." When you do this, the proper association will be generated and you can test as usual. I was successful using this approach.
The fix in Visual Studio 2015 for this crash is now available in Visual Studio 2015 Update 2. Here's a link to the installer: http://go.microsoft.com/fwlink/?LinkId=691129
I have a visual studio 2010 question. I have visual studio solution with multiple projects including several console applications. Until recently all console apps would open a console window which stayed open after the app finished executing when started without debugging (Ctrl + F5). Now, one of the apps stopped keeping the window open. The projects are under source control and nothing has changed in the settings as far as I can tell. Also, the Linker->Sytrem->SubSystem setting is set to Console (/SUBSYSTEM:CONSOLE) like all the other apps.
Does anyone know what else could be the issue? I have rebuilt, closed and even rebooted my machine.
I have an issue with Visual Studio 2010 Ultimate and Visual Studio 2010 Express, when I right click on a project structure in the solution explorer, (on the references folder) and select "Add Reference" the Visual Studio 2010 window flashes as focus as left the window and then focus immediately returns and there is no new window that allows me to add references. This problem persists even after a clean install, and across multiple products (VS 2010 Ultimate and VS 2010 Express) I am using windows 7, and I have to think this problem ids outside of VS 2010, but this is the only issue I am currently facing.
Its like the references window (that allows you to pick the new reference) is automatically being closed.
Thanks.
I just had the same problem.
Do you have a tablet that you're using? If you enable the Tablet PC Input Service it should work again. There seem to be some dependencies on this service and/or conflicts with my Wacom drivers that caused the issue in the first place.
r3volt
Add Reference or existing item popup is not show then answer is :
Window Button +R then type "services.msc" > search "Tablet PC Input Service" and the right Click on Start.
it will work correctly.