问题
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
回答1:
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 :)
来源:https://stackoverflow.com/questions/43534364/cannot-attach-to-silverlight-app-from-vs