Skip to content

Commit 3826122

Browse files
authored
Use preview langversion and ignore duplicate using warnings (#34346)
1 parent 1395fa8 commit 3826122

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project>
1+
<Project>
22
<Import Project="eng\Common.props" />
33

44
<PropertyGroup>
@@ -111,6 +111,7 @@
111111
<PropertyGroup>
112112
<!-- Ensure API docs are available. -->
113113
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
114+
<NoWarn Condition=" '$(BuildingInsideVisualStudio)' == 'true' ">$(NoWarn);0105</NoWarn>
114115

115116
<!-- For local builds, don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. -->
116117
<WarningsNotAsErrors Condition=" '$(ContinuousIntegrationBuild)' != 'true' ">$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors>

eng/targets/CSharp.Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<LangVersion>10.0</LangVersion>
4+
<LangVersion>preview</LangVersion>
55

66
<!-- Enables Strict mode for Roslyn compiler -->
77
<Features>strict;nullablePublicOnly</Features>

0 commit comments

Comments
 (0)