Skip to content

Commit

Permalink
use System.Environment.OSVersion in .net standard (#7831)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Oct 29, 2020
1 parent 0e994ea commit a8bd859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,8 @@ namespace {{packageName}}.Client
public static String ToDebugReport()
{
String report = "C# SDK ({{{packageName}}}) Debug Report:\n";
{{^netStandard}}
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
{{/netStandard}}
{{#netStandard}}
report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n";
{{/netStandard}}
report += " Version of the API: {{{version}}}\n";
report += " SDK Package Version: {{{packageVersion}}}\n";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ public HttpSigningConfiguration HttpSigningConfiguration
public static String ToDebugReport()
{
String report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 1.0.0\n";
report += " SDK Package Version: 1.0.0\n";

Expand Down

0 comments on commit a8bd859

Please sign in to comment.