Installing 15.0.0-rc1 from Umbraco.Templates woes ...
# package-development
w
Anyone seeing this issue with V15.0.0-rc1 installing from
Umbraco.Templates
Copy code
Unhandled exception. System.Reflection.ReflectionTypeLoadException: Could not load all types from "Umbraco.Cms.StaticAssets, Version=15.0.0.0, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping:
. System.IO.FileNotFoundException: Could not load file or assembly 'Umbraco.Web.Website, Version=15.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Copy code
dotnet new install Umbraco.Templates::15.0.0-rc1
And then
dotnet new umbraco --name "Hello"
hmmm now I can't repro 🤔
Wonder if its work with new dotnet new template I am working on causing me chaos
Yeh seems to be because the dotnet package uses
*
wildcard for the packagerefernece in ths .csproj file. Which only seems to work with published packages and not prereleases such as 15.0.0-rc1
So it was this
Copy code
xml
<ItemGroup>
  <PackageReference Include="Umbraco.Cms.Web.Website" Version="*" />
  <PackageReference Include="Umbraco.Cms.Web.Common" Version="*" />
</ItemGroup>
But for now I needed to be explicit
Copy code
xml
<ItemGroup>
  <PackageReference Include="Umbraco.Cms.Web.Website" Version="15.0.0-rc1" />
  <PackageReference Include="Umbraco.Cms.Web.Common" Version="15.0.0-rc1" />
</ItemGroup>
4 Views