NETFrameworkTool 1.0.0
dotnet tool install --global NETFrameworkTool --version 1.0.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local NETFrameworkTool --version 1.0.0
#tool dotnet:?package=NETFrameworkTool&version=1.0.0
nuke :add-package NETFrameworkTool --version 1.0.0
NETFrameworkTool
Tool to install/unistall Microsoft .NET Frameworks references assemblies.
The references assemblies are downloaded from the Nuget package Microsoft.NETFramework.ReferenceAssemblies and copy to the Reference Assemblies Microsoft folder.
Install Tool
dotnet tool install --global NETFrameworkTool
Tool Commands
List
The command -l
or --list
is used to show the .NET Framework versions installed and available.
NETFrameworkTool --list
Example output:
NETFrameworkTool available:
.NETFramework 4.0 Installed
.NETFramework 4.5 Installed
.NETFramework 4.5.1
.NETFramework 4.5.2
.NETFramework 4.6 Installed
.NETFramework 4.6.1
.NETFramework 4.7 Installed
.NETFramework 4.7.2 Installed
.NETFramework 4.8 Installed
Net
The command -n
or --net
is used to specify the .NET Framework version to install/unistall.
NETFrameworkTool --net 4.0
Install
The command -i
or --install
is used to install the .NET Framework version. (Administrator Permission Required)
NETFrameworkTool --net 4.0 --install
Uninstall
The command -u
or --uninstall
is used to uninstall the .NET Framework version. (Administrator Permission Required)
NETFrameworkTool --net 4.0 --uninstall
Force Reinstall
The command -f
or --force
is used to force to reinstall the .NET Framework version. (Administrator Permission Required)
NETFrameworkTool --net 4.0 --install --force
Help
The command -help
is used to show the help.
NETFrameworkTool --help
Github Actions
The windows-2022
does not have the .NET Framework 4.0 and 4.5 installed by default.
You can use the NETFrameworkTool
to install the .NET Framework 4.0 and 4.5.
To use the NETFrameworkTool
in a GitHub Actions workflow, you can use the following example with setup-dotnet:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- run: dotnet tool install --global NETFrameworkTool
- run: NETFrameworkTool --net 4.0 --install
- run: NETFrameworkTool --net 4.5 --install
Release
License
This project is licensed under the MIT License.
Do you like this project? Please star this project on GitHub!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 128 | 5/31/2024 |