forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
2,883 additions
and
165 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
Binary file not shown.
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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> | ||
<supportedRuntime version="v2.0.50727" /> | ||
</startup> | ||
</configuration> |
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,12 @@ | ||
namespace System.Diagnostics.Contracts | ||
{ | ||
public static class Contract | ||
{ | ||
[Conditional("DEBUG")] | ||
[Conditional("CONTRACTS_FULL")] | ||
public static void Assert(bool condition, string? userMessage) | ||
{ | ||
|
||
} | ||
} | ||
} |
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,17 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace System.Linq | ||
{ | ||
public static class Enumerable2 | ||
{ | ||
public static IEnumerable<T> Append<T>(this IEnumerable<T> collection, T item) // https://github.com/iamandylamb/IEnumerable.Append/blob/master/src/Extension.cs | ||
{ | ||
if (collection == null) | ||
{ | ||
throw new ArgumentNullException("Collection should not be null"); | ||
} | ||
|
||
return collection.Concat(Enumerable.Repeat(item, 1)); | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
36 changes: 36 additions & 0 deletions
36
src/FDELauncher/dotnet-core-uninstall/LocalizableStrings.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
45 changes: 45 additions & 0 deletions
45
...uncher/dotnet-core-uninstall/Shared/BundleInfo/Versioning/WindowsDesktopRuntimeVersion.cs
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,45 @@ | ||
using System; | ||
|
||
namespace Microsoft.DotNet.Tools.Uninstall.Shared.BundleInfo.Versioning | ||
{ | ||
internal class WindowsDesktopRuntimeVersion : BundleVersion, IComparable, IComparable<WindowsDesktopRuntimeVersion>, IEquatable<WindowsDesktopRuntimeVersion> | ||
{ | ||
public override BundleType Type => BundleType.WindowsDesktopRuntime; | ||
public override BeforePatch BeforePatch => new MajorMinorVersion(Major, Minor); | ||
|
||
public WindowsDesktopRuntimeVersion() { } | ||
|
||
public WindowsDesktopRuntimeVersion(string value) : base(value) { } | ||
|
||
public int CompareTo(object obj) | ||
{ | ||
return CompareTo(obj as WindowsDesktopRuntimeVersion); | ||
} | ||
|
||
public int CompareTo(WindowsDesktopRuntimeVersion? other) | ||
{ | ||
return other == null ? 1 : SemVer.CompareTo(other.SemVer); | ||
} | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
return Equals(obj as WindowsDesktopRuntimeVersion); | ||
} | ||
|
||
public bool Equals(WindowsDesktopRuntimeVersion? other) | ||
{ | ||
return other != null && | ||
base.Equals(other); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return HashCode.Combine(base.GetHashCode()); | ||
} | ||
|
||
public override Bundle ToBundle(BundleArch arch, string uninstallCommand, string displayName) | ||
{ | ||
return new Bundle<WindowsDesktopRuntimeVersion>(this, arch, uninstallCommand, displayName); | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/FDELauncher/dotnet-core-uninstall/Shared/Utils/RuntimeInfo.cs
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,31 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// https://github.com/dotnet/cli-lab/blob/1.5.255402/src/dotnet-core-uninstall/Shared/Utils/RuntimeInfo.cs | ||
|
||
using System; | ||
|
||
namespace Microsoft.DotNet.Tools.Uninstall.Shared.Utils | ||
{ | ||
internal static class RuntimeInfo | ||
{ | ||
static RuntimeInfo() | ||
{ | ||
switch (Environment.OSVersion.Platform) | ||
{ | ||
case PlatformID.Win32NT: | ||
RunningOnWindows = true; | ||
break; | ||
case PlatformID.Unix: | ||
RunningOnLinux = true; | ||
break; | ||
case PlatformID.MacOSX: | ||
RunningOnOSX = true; | ||
break; | ||
} | ||
} | ||
|
||
public static readonly bool RunningOnWindows; | ||
public static readonly bool RunningOnOSX; | ||
public static readonly bool RunningOnLinux; | ||
} | ||
} |
Oops, something went wrong.