criticalmanufacturing / cli

Critical Manufacturing Projects Command Line Tool
https://criticalmanufacturing.github.io/cli/
BSD 3-Clause "New" or "Revised" License
12 stars 27 forks source link

feat(new): add scaffolding compatible with .NET 6 and IoC for MES 9 and up #178

Closed m-s- closed 2 years ago

m-s- commented 2 years ago

This PR versions our templates so they can target many MES versions.

Up until 8.x, the configuration was the same: .NET Standard 2.0 DLLs and static Orchestration classes compiling against .NET Core 3.1. This changes in v9, with .NET 6 DLLs and Orchestration classes with dependency injection compiling against .NET 6.

The new commands now react, when appropriate, to the MES Version specified in the init command. This means each new command should be able to target any MES version.

As an implementation note, the Business template was broken in two, as the changes were extensive. The other templates got versioned tokens. This can be changed in the future but the old business template should have no extensive changes in the future.