Skip to content

Commit 39198ee

Browse files
committed
Fix build
Disable warnings so we can build this without extensive customizations. Disable the Hosting sample, which is a dependency of already-disabled System.CommandLine.Hosting project.
1 parent d5bd9ff commit 39198ee

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<PropertyGroup>
88
<NoWarn>$(NoWarn);NU5125;CS0618</NoWarn>
9+
<NoWarn Condition=" '$(DotnetBuildFromSource)' == 'true' ">$(NoWarn);CS8714;CS8765;CS8600;CS8601;CS8602;CS8603;CS8604</NoWarn>
910
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1011
</PropertyGroup>
1112

eng/source-build-patches/0004-Exclude-System.CommandLine.Hosting.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ index 7342c1c..e4a97a0 100644
2020
</PropertyGroup>
2121

2222
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
23+
--- a/samples/HostingPlayground/HostingPlayground.csproj
24+
+++ b/samples/HostingPlayground/HostingPlayground.csproj
25+
@@ -6,6 +6,7 @@
26+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
27+
<LangVersion>8</LangVersion>
28+
<NoWarn>$(NoWarn);CS1591</NoWarn>
29+
+ <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
30+
</PropertyGroup>
31+
32+
<ItemGroup>
2333
--
2434
2.25.2
2535

0 commit comments

Comments
 (0)