Cannot attach to Silverlight app from VS - visual-studio

In the past to connect to silverlight apps form Visual Studio I would go to Debug -> Attach To Process and then scroll down to where the type was Silverlight and attach to that.
Recently, silverlight types do not seem to show up in the attach to dialog.
What I have tried
Project Properties -> Web -> Debuggers and ensure Silverlight is ticked
Attaching to the same window as the silverlight is in
What I want to happen
To attach to silverlight apps from Visual Studio
What is happening
Silverlight apps do not show in the Attach To dialog

After a few days I found a solution.
Go to Programs and Features and Uninstall ONLY "Microsoft Silverlight". Once uninstalled go to https://www.microsoft.com/en-us/download/details.aspx?id=40633 and install either Silverlight_Developer.exe or Silverlight_Developer_x64.exe
This fixed the problem for me :)

Related

Office/Outlook Add In: Attach debugger not available?

I recently came back to an Outlook add-in project, and I updated all of my Office apps. Outlook is currently Version 1906 (Build 11727.20244 Click-to-Run) on Windows 10 Pro (not running any insider’s version). However, after I open the add-in, no context menu opens when I right-click. I’m trying to debug the add-in running in native Outlook on Windows because something is broken (the same code works fine in OWA and Outlook for Mac).
I’m a bit stuck if I can’t attach a debugger. Nothing shows up in F12 developer tools either. However if I open the Insights add-in, I can right click and attach a debugger as you would expect.
Why would I not be able to even see the right-click context menu in my add-in?
However, after I open the add-in, no context menu opens when I right-click.
Try to create a new empty add-in in Visual Studio. If you get the context menu shown there, you just need to compare both projects and find the difference between them.

Unable to add browser in Visual Studio for Office App

Using Visual Studio Enterprise 2015 Update 3, I create a new project following these steps:
File -> New -> Project -> Templates/Visual C#/ Office/SharePoint/Apps
Choose App for Office (.NET Framework 4.5.2)
In Create app for Office window, Check Task pane and do Next
Check Excel, PowerPoint and Word and click Finish
After creating the solution, In Solution Explorer Window, Select the first project (manifest project) and look at the Properties Window.
If I click the Start Action drop down list, I can only see Chrome and Edge browsers (were installed before visual studio).
I have installed FireFox after visual studio and I'm not unable to add it to Start Action drop down list. I want to debug my Office App in FireFox as well.
How can I fix this issue?
An Office add-in running in desktop Office, which it is where it runs when you are debugging it with Visual Studio on a Windows machine, uses IE under the hood. (For more info, see what-browser-browser-engine-do-office-add-ins-use.) You can't change this. The Start Action setting has no effect. You are always using IE when you press F5. In particular, the Start Action of the manifest project is irrelevant because the manifest doesn't run or get loaded into a browser.
If you want to test the add-in in Office Online, you can sideload it, and when you run it, it will use whatever browser you used to open Office Online.

Designer view in Xamarin.Forms with Visual Studio 2015 Update 3

I just wanted to know that, is it possible to get the designer view in Xamarin.Forms with Visual Studio 2015. It's very hard to compile code every time to check the simple changes.
Thank You in advance.
If you are using XAML to write the code you can use XAML Previewer for Xamarin.Forms You can see the documentation here:
https://developer.xamarin.com/guides/xamarin-forms/xaml/xaml-previewer/
Few things to keep in mind:
You need to be connected to MAC Agent to make it work (I am not sure
why this is the case even for Android, For me it does not work without connecting to mac agent)
The Previewer works on any ContentPage, ContentView, or ViewCell in
a Xamarin.Forms application
To launch the Previewer in Visual Studio, select View -> Other
Windows -> Xamarin.Forms Previewer
Latest-and-greatest Xamarin.Forms NuGet is recommended; at least
2.3.2 is required
Project should be built (compiled) before attempting to preview XAML
files.
This is a "Preview" release, so it may not always work as expected.

Unable to select android emulator in Xamarin VS

I'm using Visual Studio Enterprise 2015 Edition (Update 3), with Xamarin 4.2 installed.
I have the emulators downloaded via Xamarin Android Player, however I don't have an option to select the emulators from Visual Studio (Refer attached image).
VS Select Emulator
There is no emulator dropdown next to debug button in toolbar, and VS always defaults to the first emulator, and doesn't let me choose one, even if there are multiple emulators available in XAP.
Any help is greatly appreciated.
Thanks!
After trying to figure out the problem for days, I was finally able to identify the real cause of the issue. I had to enable Standard toolbar in VS (Right-click on Toolbar, and select Standard. Refer Screenshot) to finally have the ability to select emulators.
I was under the assumption that the emulator list appears in Debug toolbar, and did not try checking the toolbar menu earlier.
Thanks for all the replies, and hope this helps someone else facing this issue.
This would appear to be this bug:
https://bugzilla.xamarin.com/show_bug.cgi?id=44487
If so, the issue occurs when selecting the startup project with the drop down list in the tool bar. Instead try selecting the start up project by right-clicking on the project on the Solution Explorer and choose "Set as startup project"
It seems you didn't select the startup project. In Solution Explorer right click on your Android project and choose "Set as StartUp Project". Then default emulator options should be visible and you can change it via drop down menu.
Anyway I recomend you to use Visual Studio emulator

Can't see emulator selection option in visual studio 2012 for windows phone

In my Visual studio 2012 for windows phone , I created one project and I developed some pages.
It is working fine and i'm able to debug by selecting the desired emulator option.
Suddenly the device options tab is not visible. It is looking like below.
For testing purpose I've opened another project, then for this project i'm getting the emulator option. It is looking like this.
I didn't understand why it is happening with the first project. could you please tell me how to enable emulator options for the first project.
Thanks.
If you have multiple projects in your solution then the one that is set as the 'StartUp project' is probably not a Windows Phone app.
The options included in the menu relate to the startup project only.
To change the startup project, right click on the project in the solution explorer and select "Set as StartUp project".

Resources