Following an update to Xamarin in Visual Studio 2015 Pro, the inspector fails to load for a particular project. The message displayed in the Xamarin output pane in Visual Studio is "[Inspector] Error preparing project for inspection." The FROM and TO sections below show the previous(FROM) Xamarin installs and updated Xamarin(TO) installs. Also, the log showing a more detail error is at the bottom of the post. How do I go about resolving this issue?
FROM
Mac Software
Visual Studio Preview for Mac 7.1.0.1287
Mono Framework 5.2.0.215
Xamarin.iOS 10.12.0.18
Xamarin.Android 7.4.0.19
Xamarin.Mac 3.6.0.17
Xamarin Profiler 1.5.5.10
Xamarin Workbooks and inspector 1.3.0
Windows Software
Xamarin for Visual Studio 2015 4.6.0.297
Xamarin.iOS 10.12.0.14
Xamarin.Android 7.4.0.19
TO
Mac
Visual Studio Preview for Mac 7.2.0.634
Mono Framework 5.4.0.201
Xamarin.iOS 11.2.0.8
Xamarin.Android 8.0.0.3
Xamarin.Mac 3.8.0.49
Xamarin Profiler 1.5.6
Xamarin Workbooks and inspector 1.3.2
Windows
Xamarin for Visual Studio 2015 4.7.10.22
Xamarin.iOS 11.2.0.8
Xamarin.Android 8.0.0.33
**Error Message: **
Xamarin.Inspector|Information|0|Inspector extension loaded
Xamarin.Inspector|Error|0|[Inspector] Error preparing project for inspection
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at EnvDTE.Properties.Item(Object index)
at Xamarin.VisualStudio.Inspector.VSAgentExecutionTarget..ctor(Project proj) in C:\d\lanes\5156\fe36becf\source\xamarinvs\src\Features\VisualStudio.Inspector\Vsix\VSAgentExecutionTarget.cs:line 49
at Xamarin.VisualStudio.Inspector.VSInspectorSession.CreateAgentExecutionTarget() in C:\d\lanes\5156\fe36becf\source\xamarinvs\src\Features\VisualStudio.Inspector\Vsix\VSInspectorSession.cs:line 112
at Xamarin.Interactive.IdeSupport.InspectorSession.Prepare() in C:\d\lanes\5156\fe36becf\source\xamarinvs\External\inspector-ide-integration\Xamarin.Interactive.IdeSupport\InspectorSession.cs:line 97
at Xamarin.VisualStudio.Inspector.XamarinInspectorPackage.RefreshInspectorSession() in C:\d\lanes\5156\fe36becf\source\xamarinvs\src\Features\VisualStudio.Inspector\Vsix\XamarinInspectorPackage.cs:line 204
Xamarin.VisualStudio.ProjectFixerRunner|Information|0|Solution loaded: 'RfidInventory'
Posts
Can you share the project files for each startup project in your solution?
The project files are:
RfidInventory.iOS.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkUGlPRU9SSFowcnM/view?usp=sharing
RfidInventory.Core.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkYm9RZ2JCT1Z1dGs/view?usp=sharing
RfidInventory.Shared.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkOEU0ejBOdThfZnc/view?usp=sharing
TSLAsciiCommandBindings.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkOF96T3d4LUdoNFk/view?usp=sharing
ZebraCommandBindings.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkX0NaMUljX0MySmM/view?usp=sharing
Hmm, this is confusing. What configuration do you have selected? Can you share your .sln file as well? Thank you.
The solution files is https://drive.google.com/file/d/0B3paJiT0q7vkUnJyNjN4MGQzQ00/view?usp=sharing.
Is it possible that there are multiple startup projects? I might need to see RfidInventory.Web, RfidInventory.Sensor.App, and anything else that is a potential startup project.
The Inspector extension is having trouble reading "OutputPath" from one of them, apparently. Your iOS project seems to have that set as expected.
Here are the remaining project files.
RfidInventory.Sensor.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkd19wdG1ON0MzVlE/view?usp=sharing
RfidInventory.Sensor.App.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkNHlsbmtjNmdLbVk/view?usp=sharing
RfidInventory.Datasource.sqlproj: https://drive.google.com/file/d/0B3paJiT0q7vkUlViWWxGdnhmaGs/view?usp=sharing
RfidInventory.Web.Migration.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkeDUwWFR5VDBZY2s/view?usp=sharing
RfidInventory.Core.Tests.csproject: https://drive.google.com/file/d/0B3paJiT0q7vkams4UUxsOUcxbVU/view?usp=sharing
RfidInventory.Web.Tests.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkakktY3VpWTdWc1E/view?usp=sharing
I think we're missing
RfidInventory.Web
, and I have a suspicion that's the problem project.RfidInventory.Web.csproj: https://drive.google.com/file/d/0B3paJiT0q7vkY2xwdlJtTHNrSGc/view?usp=sharing