Reputation: 1337
After updating Visual Studio to 15.6 version, I received this message:
We've detected your solution is currently using Xamarin Components, which is no longer supported. Please remove the used Components manually and reopen solution.
But I don't understand what and how.
Upvotes: 2
Views: 1614
Reputation: 1337
To remove a component from your project:
Open the .csproj file. To do this, right-click on the project name and select Unload Project.
Right-click again on the unloaded project and select Edit {your-project-name}.csproj.
Find any references in the file to XamarinComponentReference. It should look similar to the following example:
<ItemGroup>
<XamarinComponentReference Include="advancedcolorpicker">
<Version>2.0.1</Version>
<Visible>False</Visible>
</XamarinComponentReference>
<XamarinComponentReference Include="gunmetaltheme">
<Version>1.4.1</Version>
<Visible>False</Visible>
</XamarinComponentReference>
<XamarinComponentReference Include="signature-pad">
<Version>2.2.0</Version>
<Visible>False</Visible>
</XamarinComponentReference>
</ItemGroup>
Remove the references to XamarinComponentReference and save the file. In the example above, it's safe to remove the entire ItemGroup.
Once the file has been saved, right-click on the project name and select Reload Project.
Repeat the steps above for each project in your solution.
Upvotes: 3
Reputation: 4358
Please refer to this. In this article.
In November 2017, it was announced that the Xamarin Component Store would be discontinued. In an effort to move forward with the sunsetting of components, the 15.6 release of Visual Studio and 7.4 release of Visual Studio for Mac no longer support Components in your project.
If you load a project into Visual Studio, the following dialog is displayed, explaining that you must remove any Components from your project manually:
So, you need change Component references to NuGet packages to avoid it if you want to use 15.6.
Upvotes: 1