-
Notifications
You must be signed in to change notification settings - Fork 27
Upgrade v1 to v2
With the release of version 2 the extension has been re-written from the ground up using Node.js and includes a number of breaking changes.
Version 1 consisted of a single task which set the assembly data for Net Core, Net Standard and Net Framework projects. This approach proved difficult to maintain as the .Net Framework consists of different attributes compared with Net Core and Net Standard. For this reason the extension was split into 2 separate tasks: .Net Framework
and .Net Core & .Net Standard
, this allows each tasks to perform a specific purpose and allows us to target specific values much easier.
The new tasks as they appear in Azure DevOps:
To ensure a smooth upgrade we recommend:
- Disable v1 of the task in your build pipeline.
- Add a new assembly info task, ensure you choose the correct task for your project (Net Core/Standard or Net Framework) and ensure the tasks targets v2 of the extension.
- Copy the parameter values from task v1 to task v2.
A file matching pattern is now required for all files listed within the Source files task parameter. Files previously listed as the following:
AssemblyInfo.cs
AssemblyInfo.vb
GlobalInfo.vb
GlobalInfo.cs
must now be listed using a match pattern:
**\AssemblyInfo.cs
**\AssemblyInfo.vb
**\GlobalInfo.vb
**\GlobalInfo.cs
A new implementation of the date & time formatting has been implemented. Please see the dedicated wiki page for further explanation.