Visual Studio - deploys without building - windows-phone-8

Today my VS Pro 2013 started acting up.
It stopped building my WP8 project before deploying it on the device, so I have to start the build manually and THEN start debugging. Until now I only had to tap F5 to run everything...
Is there an option connected with such behavior that might've gotten turned on/off or is it some kind of a bug in the IDE?

I had the same situation and it looks to me like a VS bug. Restarting VS helps! :)

Ok then, I found the answer:
Visual Studio 2010 isn't building before a run when there are code changes
It seems that the bug isn't in the "not building before deploying" behavior itself, but in the reason why that option got changed to "Never build"...
Most likely some config file got damaged and VS reverted it to default values.

Related

Opening Biml Solution Crashes VS2019

Yesterday I built a Biml solution in Visual Studio 2019 that worked fine. Today I opened Visual Studio to the same solution and I get a message box saying "Unable to load one or more breakpoints". I click 'Ok' and the solution continues to load. Once all of the SSIS packages finish loading, Visual Studio crashes. Not sure if I even have a breakpoint in any of the packages, but even if I did, I don't know how to delete it if VS keeps crashing before I can start editing any package. If I try to open the solution again, I see this warning:
A previous session ended unexpectedly. Disabling this extension BimlExpress 5.0.64108.0 might help.
I've tried uninstalling and reinstalling BimlExpress but that has no effect on the problem. Any ideas on how to fix this? So frustrated.
I copied the Biml files to another solution and the problem seems to have resolved. Not sure what got corrupted but at least it's working now.
I had the same issue with BIML Express 5.0.64108.0 in Visual Studio 2019. I deleted the ".vs" directory in the solution, which resolved it for me. Prior to that, I did delete the "bin" and "obj" directories in the project directory, which did not seem to help.

VS 2015 RTM Deploying or creating packages for 8.1 Universal app fails

I have VS 2015 RTM on Windows 10 RTM, suddenly (maybe an update) is causing today that any project 8.1 Universal can't be deployed anymore, not emulator, not device. I have confirmed it happens with any new project or existing one.
This does not happen with 8.1 Silverlight projects! which is even more strange. I have reinstalled VS 2015 and the latest cumulative Windows Update for IE and the problem persists.
EDIT: It also happens when trying to create app packages for the project but this time crashes VS!
Have any one came into this lately? Any ideas?
UPDATE: I get - An unhandled exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in WindowsBase.dll
when debugging the crash when creating packages, but can't find more information
I've found that VS2015 hides some errors (not sure why or how). When it happens, try open VS2013 (if that is an option for you) and build there. It'll correctly tell you what the error is, and once you fix it you can return to 2015.
Got it! I uninstalled the Apache Cordova tools and the problem is gone magically, don't know what conflict may these tools cause with the 8.1 SDK but sure has to be investigated.

Windows (phone) emulator 8.1/10 stuck at loading the OS

I've been trying to get the emulator to work for days. Previously I tried the Windows Phone 8.1 Emulator as well as the Windows 8.1 Simulator and both were stuck at loading the OS.
Earlier today I installed the new Windows 10 Tools and thought I should give it another try with the new Windows 10 Emulator... And no, still the same result.
What's strange is that, the Hyper-V Manager seems to be doing OK. I can see the app displays correctly on the little Preview window (see the box on the left side of the picture below).
Also, breakpoints are hit, the project seems to be running OK.
As many answers have already suggested, I tried letting it running for an hour, but still nothing came up.
Things that I've also tried include uninstalling all the Virtual Machines as well as repairing the WP 8.1 Emulator, nothing has worked so far.
Please help, this has driven me completely insane. :(
Update
Not sure if this would help, but if I change the Windows Phone Emulator Internal Switch to use Private network instead of Internal, I will get a couple of warnings saying Unable to determine the Host IP address and then the Emulator will show up with the Emergency Call screen. Not much I can do from there as the three buttons on the bottom are not functioning at all.
I understand that changing the connection type is not the right way to do it, but this at least tells me that the Emulator can work, it's just a matter of how.
I believe you have two Windows Phone Internal Switch connections and one seems to be unplugged while the other is running. Disable the one that is unplugged and leave the latter. This worked for me after 2days of tinkering. God speed.
Try the following.
Open the Hyper-V Manager
In the Actions pane, click Hyper-V Settings
In the Server pane, select Physical GPUs
Uncheck, Use this GPU with RemoteFX
Click OK to save/close.
Attempt to start the Windows Phone emulator VM from within Hyper-V Manager or Visual Studio.
I solved this problem by simply adding XDE.EXE as an exception to my Windows Firewall.
Just today
Many times it is not stuck. It just does take too long to start. I have an 8 core processor and it took like 5 minutes to launch, I tought it was stuck but it did launch.
Not sure if this would help, but if I change the Windows Phone
Emulator Internal Switch to use Private network instead of Internal, I
will get a couple of warnings saying Unable to determine the Host IP
address and then the Emulator will show up with the Emergency Call
screen. Not much I can do from there as the three buttons on the
bottom are not functioning at all.
when you set it to private network, Windows can't interact with your WP Emulator. Open Network Adapter, and try disable and try start emulator again, then enable again this adapter if it is not work *
I contacted the Visual Studio Team a couple of weeks ago and looks like they have fixed this issue in the latest update. And here is how I finally got it all working.
Update your Windows 10 TP to the latest version (currently 10074).
Install the latest Visual Studio 2015 (currently RC).
Install Windows 10 developer tools preview from here (I got
some weird errors with Error code: -2147023294. Ignore them, go
straight to the next step).
Install the standalone Windows SDK for Windows 10 Insider
Preview from here.
Install the Pre-release Microsoft Emulator for Windows 10 Mobile
from here.
That's all! After all these are done, both my Simulator and Emulator are loading up fine.
In my case, deleting the internal switch from Hyper-V virtual switch manager helps, whenever you run your app using emulator as the target, it'll add a new internal switch by itself and the emulator will run normally (no longer stuck on loading screen)
The problem is, I have to do it every single time I restart my PC
The workaround steps to install the Windows SDK and Emulator are no longer needed.
We have released a fix as of 7PM PDT 30 April 2015 for the setup error
Windows 10 SDK 10.0.10069 : The installer failed.
User cancelled installation. Error code: -2147023294"
New setups should no longer encounter this issue.
For existing installations, and for more information, see this forum post:
https://social.msdn.microsoft.com/Forums/en-US/17bc9d5e-2ea7-4149-bb75-23997db8bd25/
This worked for me:
Go to Windows Defender.
Add exclusion following path: "C:\Users\UserName\AppData\Local\Microsoft\XDE\YourEmulatorVersion"
YourEmulatorVersion - for example 10.0.14393.9
2 days, tried all that is posted here but nothing worked! Finally, since it is a lot easier nowadays to (re)install windows without loosing your files (3 hours including updates), I just resorted to that. Same thing happened, but then I saw the alert that I had not yet activated my VS to run in developer mode :) Did that, and voila, the emulator now works.
If this might be helpful: my problem started when I installed Android Studio and disabled Hyper-V from Android. Enabling it back for VS just couldn't get me to run it again. But I hear there is a way to run both Android & VS emulators using VS emulator for Android. I will try to see how that works later...
I know the question is old, but none of the above answers worked for me so I write down my two cents:
Go to Hyper-V console and remove all emulators
Go to Devices Management, under network adapters tree node, delete all virtual switches
Run an emulator from Visual Studio and see the magic happen

Launching TaskHost.exe failed, trying to run Windows Phone 8 app?

My VS 2013 setup has been humming along fine for months now. Today I tried to update to Visual Studio 2013 Update 2 RC. Just like last time when I updated to Update 1, setup failed badly with a huge list of packages marked with the "Incorrect Hash Value" error. Unfortunately MS does not have an ISO yet for Update 2 so I can't take that route to complete the update like I did last time. Now I can't run apps on the Windows Phone emulator or on the phone (device) anymore.
I believe that the failed update caused my current deployment problems since the problem surfaced right afterwards. It could be due to some other NuGet package or Extension, but the update is the most likely cause due to the timing of events.
I did extensive reading on SO and tried all the noted solutions. None of them worked:
cleaned and rebuilt the test Windows Phone 8 project (multiple times)
restarted VS2013
rebooted
Exited VS 2013 and restarted it with the Emulator left open (for the Emulator test)
repaired the Windows Phone Emulator install
repaired the VS2013 install
Nothing works. After the IDE installs the app on to the emulator, I still an error dialog box saying:
"The application could not be launched for debugging. Ensure that the target device screen is unlocked and that the application is installed."
And in the VS2013 IDE status line I see the message: "Launching TaskHost.exe failed".
Does anyone know how to fix this? Note, I tried several WP8 projects that I know worked successfully before and none of them can deploy successfully anymore to either the Emulator or the Device.
I see this was asked a month ago, but I had this issue as well. If I left the Emulator running and tried launching it again, I would have TaskHost fail with a different error.
The following was what made it work for me.
Under the following:
Solution(Right-click) > Properties > Configuration Properties > Configuration
Ensure that your main project is set to 'Deploy.'
Have many reason to error.! So, If you doing with database such as SQLLite file or SQL compact file for your project WP, you should check it is used anywhere. Or choose Embed source copy in visual. That's my fail.And i fixed ok!
Did you try from the menus?
BUILD > Rebuild Solution
That worked for me just now.

Visual Studio Express: registration issue

I have downloaded and been using Visual Studio Express for last few weeks. All of a sudden today, it's forcing me to register. When I try to do so, the registration site appears to be unresponsive. This is horrible, and now I can not continue with my work because of Microsoft's broken site.
How can I fix this problem?
The easiest thing to do is download the offline installer and install that. If you do it this way, you don't have to register at all. You can find the offline installer at http://www.microsoft.com/express/download/default.aspx#download-offline