Package.Templates
Package.Templates copied to clipboard
Feature: Choose an Umbraco version at startup
Add a command line parameter to select the Umbraco version.
by default the package/site should use a defined version but if you want you should be able to override it with a parameter.
e.g.
-umbVersion 8.7.0
Will need to put in a placeholder in the .csproj files, and add something to the template.config to do the search/replace.
for note: I've had a look at this
and while in theory what we could do is put a something in the template.json to replace the 8.6.2 string the UmbracoPackage.1..csproj file (it contains this)
<ItemGroup>
<PackageReference Include="UmbracoCms.Web" Version="8.6.2" />
</ItemGroup>
This would work for the "package" project , as under the new format, all the other packages are implied from this.
However framework based WebApps dont' support the new format - and use the older packages.config file which contains all the required packages.
e.g.
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ClientDependency" version="1.9.9" targetFramework="net472" />
<package id="ClientDependency-Mvc5" version="1.9.3" targetFramework="net472" />
<package id="CSharpTest.Net.Collections" version="14.906.1403.1082" targetFramework="net472" />
<package id="Examine" version="1.0.2" targetFramework="net472" />
....
Here - just updating the Umbraco version and not all the other packages could cause problems (if those packages also didn't change then it would work, but would need close monitoring, would break easily?)