Thursday, May 25, 2017

Sitecore Demo Retail install sites issues

At the time of writing the Sitecore Demo Retail project, it is not possible to spin up the solution with visual studio 2017 installed on the machine. At the top of the wiki, the following notice appears:
Important Note
Visual Studio 2015 is required for this solution. Installing Visual Studio 2017 alongside will cause issues with .NET Core dependencies and will prevent the solution from deploying correctly
If you attempt to install the solution (with visual studio 2017)), a number of errors may happen during the install PowerShell script. These generally happen when MSBuild is attempting to build solutions.
Engine.Plugin.Entitlements.xproj(7,3): error MSB4019: The imported project "
C:\Program Files\dotnet\sdk\1.0.4\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path
 in the <Import> declaration is correct, and that the file exists on disk.
 C:\Projects\Sitecore.Demo.Retail\src\Project\Retail\code\Sitecore.Demo.Retail.csproj(197,3): error MSB4019:
The imported project "C:\ProgramFiles\dotnet\sdk\1.0.4\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found.
 C:\Projects\Sitecore.Demo.Retail\src\Foundation\Commerce\Engine\Sitecore.Foundation.Commerce.Engine.xproj : error  :
The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\Projects\Sitecore.Demo.Retail\src\Foundation\Commerce\Engine\Sitecore.Foundation.Commerce.Engine.xproj
73,5): error MSB4801: The task factory "CodeTaskFactory" could not be loaded because this version of MSBuild does not
support it. [C:\Projects\Sitecore.Demo.Retail\src\Foundation\Commerce\Engine\Engine.csproj]
These errors occur for two reasons:
  1. Visual Studio 2017 needs to be uninstalled
  2. Any other versions of the .NET core need to be uninstalled. The instructions (at time of writing) specify .NET Core 1.0.3 SDK Preview 2 build 3156.

No comments:

Post a Comment