You are getting these errors because the default templates that are installed contain some errors.
Sitecore References Fix:
In your folder where you installed the templates, find all the files called $modulenamespace$.csproj
. In those files you will find these lines:
<Reference Include="Sitecore.Kernel, Version=10.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Sitecore.Kernel.NoReferences.8.2.161115\lib\NET452\Sitecore.Kernel.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Sitecore.Mvc, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Sitecore.Mvc.NoReferences.8.2.161115\lib\NET452\Sitecore.Mvc.dll</HintPath>
<Private>True</Private>
</Reference>
Notice that the package version is hard coded here. This should be changed to $sitecoreVersion$
like this:
<Reference Include="Sitecore.Kernel, Version=10.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Sitecore.Kernel.NoReferences.$sitecoreVersion$\lib\NET452\Sitecore.Kernel.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Sitecore.Mvc, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Sitecore.Mvc.NoReferences.$sitecoreVersion$\lib\NET452\Sitecore.Mvc.dll</HintPath>
<Private>True</Private>
</Reference>
Config Files Fix:
In the project module templates, it is referencing the config files correctly in the .csproj
file, but on disk they are in the wrong place - see this image:
If you just rename that Feature
folder to Project
it will work and pick up your config files correctly.
I have a PR waiting to get merged for it https://github.com/LaubPlusCo/LaubPlusCo.Helix.VsTemplates/pull/2