UpgradeAssistant.Extension.ForceTFM
1.0.7
See the version list below for details.
dotnet add package UpgradeAssistant.Extension.ForceTFM --version 1.0.7
NuGet\Install-Package UpgradeAssistant.Extension.ForceTFM -Version 1.0.7
<PackageReference Include="UpgradeAssistant.Extension.ForceTFM" Version="1.0.7" />
paket add UpgradeAssistant.Extension.ForceTFM --version 1.0.7
#r "nuget: UpgradeAssistant.Extension.ForceTFM, 1.0.7"
// Install UpgradeAssistant.Extension.ForceTFM as a Cake Addin #addin nuget:?package=UpgradeAssistant.Extension.ForceTFM&version=1.0.7 // Install UpgradeAssistant.Extension.ForceTFM as a Cake Tool #tool nuget:?package=UpgradeAssistant.Extension.ForceTFM&version=1.0.7
UpgradeAssistant.Extension.ForceTFM
.NET Upgrade Assistant extension for forcing all assemblies to selected target framework.
Overview
This extension is created by using Upgrade Assistants extension system.
This extension forces Upgrade Assistant to target the same framework for all assemblies instead of, for instance, Class Libraries targeting .netstandard2.0 after upgrade.
Note that upon adding this extension to Upgrade Assistant, the behavior of the tool already changes.
Similarly to the Upgrade Assistant, this extension allows you to specify TFM with one of three values:
- Current
- LTS
- Preview
Currently the default value for this extension is LTS.
Also like the Upgrade Assistant, all of these values currently point to .net6.0
If you wish to force all frameworks to something else then there is a way for that.
Usage
Prerequisites
Make sure the Upgrade Assistant itself runs.
Upgrade Path
NuGet can be added to the Upgrade Assistant via upgrade-assistant extensions add UpgradeAssistant.Extension.ForceTFM
.
Upgrade Assistant running path will remain the same.
Extension can be removed via upgrade-assistant extensions remove UpgradeAssistant.Extension.ForceTFM
Cloned repository can be added as an extension via adding --extension [path to dir containing ExtensionManifest]
to the Upgrade Assistants
running path.
Choosing TFM
By default the extension targets LTS. If you wish to change that you can add --option "ForceTFM:TFM=[VALUE]"
to the running path.
For example --option "ForceTFM:TFM=Current"
Change the value of Current, LTS or Preview
If you wish to change the framework that the pointers point at you can add --option "TFMOptionMap:[Pointer]=[VALUE]"
to the running path.
For example --option "TFMOptionMap:Preview=.net7.0"
.
Author
- Marko Bode - markobode11
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.DotNet.UpgradeAssistant.Abstractions (>= 0.3.310801)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.