Skip to content

Commit

Permalink
Switch to C# language version 9.0
Browse files Browse the repository at this point in the history
...and make a small change to verify compilation actually succeeds.
  • Loading branch information
stakx committed Jan 2, 2021
1 parent 3e42500 commit 5f28652
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions buildscripts/common.props
@@ -1,6 +1,7 @@
<Project>

<PropertyGroup>
<LangVersion>9.0</LangVersion>
<NoWarn>$(NoWarn);CS1591;CS3014;CS3003;CS3001;CS3021</NoWarn>
<NoWarn>$(NoWarn);CS0612;CS0618</NoWarn> <!-- TODO: Remove this line once `[Obsolete]` members have been dealt with. -->
<RepositoryType>git</RepositoryType>
Expand Down
1 change: 0 additions & 1 deletion src/Castle.Core.Tests/Castle.Core.Tests.csproj
Expand Up @@ -16,7 +16,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\buildscripts\CastleKey.snk</AssemblyOriginatorKeyFile>
<PublicSign Condition="'$(OS)'=='Unix'">true</PublicSign>
<LangVersion>7.2</LangVersion>
<StartupObject>Program</StartupObject>
</PropertyGroup>

Expand Down
Expand Up @@ -142,7 +142,7 @@ protected virtual Type GenerateType(string name, Type[] interfaces, INamingScope
}
}
var additionalInterfacesContributor = new InterfaceProxyWithoutTargetContributor(namingScope,
(c, m) => NullExpression.Instance)
static (c, m) => NullExpression.Instance)
{ Logger = Logger };
// 3. then additional interfaces
foreach (var @interface in additionalInterfaces)
Expand Down

0 comments on commit 5f28652

Please sign in to comment.