OBSOLETE - used only for 1.0/1.1 patch builds
Перейти к файлу
Eilon Lipton 39d6cb3fa5
Update README.md
2018-01-18 13:21:56 -08:00
CONTRIBUTING.md Obsolete this repository 2017-04-26 12:54:25 -07:00
ISSUE_TEMPLATE Obsolete this repository 2017-04-26 12:54:25 -07:00
LICENSE.txt Create LICENSE.txt 2015-10-13 13:14:20 -07:00
README.md Update README.md 2018-01-18 13:21:56 -08:00

README.md

Platform Abstractions

This repository is obsolete and no longer used or maintained except for 1.0/1.1 patch builds.

As a result, we're not accepting anymore changes to this project. Please file any new issues on http://github.com/dotnet/cli.

Replacing API usage

The information this API provided maps to the following .NET APIs.

Microsoft.Extensions.PlatformAbstractions Equivalent .NET API
ApplicationEnvironment.ApplicationBasePath System.AppContext.BaseDirectory or System.AppDomain.CurrentDomain.BaseDirectory
ApplicationEnvironment.ApplicationName System.Reflection.Assembly.GetEntryAssembly().GetName().Name or System.AppDomain.CurrentDomain.SetupInformation.ApplicationName
ApplicationEnvironment.ApplicationVersion System.Reflection.Assembly.GetEntryAssembly().GetName().Version
ApplicationEnvironment.RuntimeFramework System.Reflection.Assembly.GetEntryAssembly().GetCustomAttribute<TargetFrameworkAttribute>().FrameworkName or System.AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName