Skip to content

Commit 1530b5f

Browse files
committed
Some SDK patches to workaround small issues.
1 parent a02c3e1 commit 1530b5f

File tree

3 files changed

+96
-0
lines changed

3 files changed

+96
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 83171b82c8db3adafd862a7ab480f3c148975831 Mon Sep 17 00:00:00 2001
2+
From: Chris Rummel <[email protected]>
3+
Date: Sun, 4 Apr 2021 00:08:36 -0500
4+
Subject: [PATCH 21/21] Disable check for using both quiet and verbose that
5+
uses a function we don't have.
6+
7+
---
8+
src/BuiltInTools/dotnet-watch/Program.cs | 18 +++++++++---------
9+
1 file changed, 9 insertions(+), 9 deletions(-)
10+
11+
diff --git a/src/BuiltInTools/dotnet-watch/Program.cs b/src/BuiltInTools/dotnet-watch/Program.cs
12+
index 5d0d4c732..2a434243b 100644
13+
--- a/src/BuiltInTools/dotnet-watch/Program.cs
14+
+++ b/src/BuiltInTools/dotnet-watch/Program.cs
15+
@@ -110,15 +110,15 @@ internal static RootCommand CreateRootCommand(Func<CommandLineOptions, Task<int>
16+
new[] { "--verbose", "-v" },
17+
"Show verbose output");
18+
19+
- verbose.AddValidator(v =>
20+
- {
21+
- if (v.FindResultFor(quiet) is not null && v.FindResultFor(verbose) is not null)
22+
- {
23+
- return Resources.Error_QuietAndVerboseSpecified;
24+
- }
25+
-
26+
- return null;
27+
- });
28+
+// verbose.AddValidator(v =>
29+
+// {
30+
+// if (v.FindResultFor(quiet) is not null && v.FindResultFor(verbose) is not null)
31+
+// {
32+
+// return Resources.Error_QuietAndVerboseSpecified;
33+
+// }
34+
+//
35+
+// return null;
36+
+// });
37+
38+
var root = new RootCommand(Description)
39+
{
40+
--
41+
2.18.0
42+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From fd2790ad703ab10eb4f82fc8e5d4565b83333753 Mon Sep 17 00:00:00 2001
2+
From: Chris Rummel <[email protected]>
3+
Date: Sun, 4 Apr 2021 02:36:35 -0500
4+
Subject: [PATCH 22/22] Don't think we need this file.
5+
6+
---
7+
src/Layout/redist/targets/OverlaySdkOnLKG.targets | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/src/Layout/redist/targets/OverlaySdkOnLKG.targets b/src/Layout/redist/targets/OverlaySdkOnLKG.targets
11+
index ab94ba45b..3dc19ea2c 100644
12+
--- a/src/Layout/redist/targets/OverlaySdkOnLKG.targets
13+
+++ b/src/Layout/redist/targets/OverlaySdkOnLKG.targets
14+
@@ -14,7 +14,7 @@
15+
<OverlaySDK Include="$(_DotNetHiveRoot)/**/*" Exclude="$(_DotNetHiveRoot)sdk/**/*"/>
16+
<OverlaySdkFilesFromStage0 Include="$(_DotNetHiveRoot)/sdk/$(Stage0SdkVersion)/Microsoft.NETCoreSdk.BundledCliTools.props" />
17+
<OverlaySdkFilesFromStage0 Include="$(_DotNetHiveRoot)/sdk/$(Stage0SdkVersion)/RuntimeIdentifierGraph.json" />
18+
- <OverlaySdkFilesFromStage0 Include="$(_DotNetHiveRoot)/sdk/$(Stage0SdkVersion)/NETCoreSdkRuntimeIdentifierChain.txt" />
19+
+ <OverlaySdkFilesFromStage0 Include="$(_DotNetHiveRoot)/sdk/$(Stage0SdkVersion)/NETCoreSdkRuntimeIdentifierChain.txt" Condition="'$(DotNetBuildFromSource)' != 'true'" />
20+
<!-- Ignore dotnet-watch files from the SDK since we're building a newer version of it in this repo. -->
21+
<OverlaySdkFilesFromStage0 Include="$(_DotNetHiveRoot)/sdk/$(Stage0SdkVersion)/DotnetTools/**/*" RelativeDestination="DotnetTools"
22+
Exclude="$(_DotNetHiveRoot)/sdk/$(Stage0SdkVersion)/DotnetTools/dotnet-watch/**" />
23+
--
24+
2.18.0
25+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From bbea3466a1201b31e0712c8fbe25353ec91ad64d Mon Sep 17 00:00:00 2001
2+
From: Chris Rummel <[email protected]>
3+
Date: Sun, 4 Apr 2021 09:40:06 -0500
4+
Subject: [PATCH 23/23] Easy workaround for NuGet error.
5+
6+
---
7+
.../OverrideAndCreateBundledNETCoreAppPackageVersion.cs | 5 +++--
8+
1 file changed, 3 insertions(+), 2 deletions(-)
9+
10+
diff --git a/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs b/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs
11+
index c3175a3c1..826e4fc36 100644
12+
--- a/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs
13+
+++ b/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs
14+
@@ -118,9 +118,10 @@ void CheckAndReplaceAttribute(XAttribute attribute)
15+
/// <returns></returns>
16+
private static bool IsSDKServicing(string sdkVersion)
17+
{
18+
- var parsedSdkVersion = NuGet.Versioning.NuGetVersion.Parse(sdkVersion);
19+
+ // var parsedSdkVersion = NuGet.Versioning.NuGetVersion.Parse(sdkVersion);
20+
21+
- return parsedSdkVersion.Patch % 100 != 0;
22+
+ // return parsedSdkVersion.Patch % 100 != 0;
23+
+ return true;
24+
}
25+
}
26+
}
27+
--
28+
2.18.0
29+

0 commit comments

Comments
 (0)