Rename tool due to NuGet conflict

This commit is contained in:
Rich Lander 2020-08-21 11:46:13 -07:00
parent 2c9506ca26
commit 11f7f3c9e8
4 changed files with 11 additions and 11 deletions

View file

@ -2,7 +2,8 @@
This directory contains .NET samples and documents.
* [dotnetsay tools](dotnetsay/README.md)
* [dotnetsay tool](dotnetsay/README.md)
* [dotnet-runtimeinformation tool](dotnet-runtimeinformation/README.md)
* [Raspberry Pi instructions](RaspberryPiInstructions.md)
* [Using Xml Serializer Generator on .NET Core](xmlserializergenerator-instructions.md)
* [nuget.config for daily .NET builds](nuget.config)

View file

@ -4,13 +4,13 @@ using System.Reflection;
using System.Runtime.InteropServices;
using static System.Console;
namespace versioninfo
namespace RuntimeEnvironment
{
class Program
{
static void Main(string[] args)
{
WriteLine("**.NET Core information");
WriteLine("**.NET information");
WriteLine($"{nameof(Environment.Version)}: {Environment.Version}");
WriteLine($"{nameof(RuntimeInformation.FrameworkDescription)}: {RuntimeInformation.FrameworkDescription}");
WriteLine($"Libraries version: {((AssemblyInformationalVersionAttribute[])typeof(object).Assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute),false))[0].InformationalVersion.Split('+')[0]}");

View file

@ -1,14 +1,14 @@
# dotnet-versioninfo tool
# dotnet-runtimeinfo tool
`dotnet-versioninfo` prints information about your .NET, OS and hardware environment. It is also a demonstration of the APIs you can use to get this information for your own uses. This information is likely useful for logging.
`dotnet-runtimeinfo` prints information about your .NET, OS and hardware environment. It is also a demonstration of the APIs you can use to get this information for your own uses. This information is likely useful for logging.
## Installation
You can quickly install and try the [dotnet-versioninfo](https://www.nuget.org/packages/dotnet-versioninfo/):
You can quickly install and try the [dotnet-runtimeinfo](https://www.nuget.org/packages/dotnet-runtimeinfo/):
```console
dotnet tool install -g dotnet-versioninfo
dotnet-versioninfo
dotnet tool install -g dotnet-runtimeinfo
dotnet-runtimeinfo
```
> Note: You may need to open a new command/terminal window the first time you install a tool.
@ -16,13 +16,13 @@ dotnet-versioninfo
You can uninstall the tool using the following command.
```console
dotnet tool uninstall -g dotnet-versioninfo
dotnet tool uninstall -g dotnet-runtimeinfo
```
## Usage
```console
dotnet-versioninfo
dotnet-runtimeinfo
**.NET Core information
Version: 3.1.7
FrameworkDescription: .NET Core 3.1.7

View file

@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>dotnet-versioninfo</AssemblyName>
<Description>Displays .NET version and environment information.</Description>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>