Name: PlatformAbstractions
Owner: ASP.NET
Description: OBSOLETE - used only for 1.0/1.1 patch builds
Created: 2015-10-13 20:12:49.0
Updated: 2018-03-27 07:05:37.0
Pushed: 2018-03-28 09:51:23.0
Size: 106
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
As a result, we're not accepting anymore changes to this project. Please file any new issues on http://github.com/dotnet/cli.
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