This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Runtime has FrameworkInstallation when compiled to NETFX * Sample app outputs calls in different targets * Run sample on Mono * Execute flag on run.sh * Add sample output to Console readme
- Loading branch information
1 parent
6ad14aa
commit 0bec1b5
Showing
14 changed files
with
597 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
namespace Sentry.PlatformAbstractions.Console | ||
{ | ||
internal static class Program | ||
{ | ||
private static void Main() | ||
{ | ||
System.Console.WriteLine($@"Runtime.Current: | ||
ToString(): {Runtime.Current} | ||
Name: {Runtime.Current.Name} | ||
Version: {Runtime.Current.Version} | ||
Raw: {Runtime.Current.Raw}"); | ||
|
||
#if !NETCOREAPP2_0 && !NETCOREAPP1_1 | ||
System.Console.WriteLine($@" | ||
Runtime.Current.FrameworkInstallation: | ||
ShortName: {Runtime.Current.FrameworkInstallation?.ShortName} | ||
Profile: {Runtime.Current.FrameworkInstallation?.Profile} | ||
Version: {Runtime.Current.FrameworkInstallation?.Version} | ||
ServicePack: {Runtime.Current.FrameworkInstallation?.ServicePack} | ||
Release: {Runtime.Current.FrameworkInstallation?.Release} | ||
ToString(): {Runtime.Current.FrameworkInstallation} | ||
"); | ||
#endif | ||
|
||
System.Console.WriteLine($@"Extension methods on Runtime: | ||
IsMono(): {Runtime.Current.IsMono()} | ||
IsNetCore() {Runtime.Current.IsNetCore()} | ||
IsNetFx(): {Runtime.Current.IsNetFx()} | ||
"); | ||
} | ||
} | ||
} |
Oops, something went wrong.