Skip to content

Commit f332ce1

Browse files
committed
Use C# version 9.0
Which we need for `record`s, and OmniSharp forces us to use.
1 parent f22259e commit f332ce1

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

PowerShellEditorServices.Common.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<VersionSuffix>preview.1</VersionSuffix>
55
<Company>Microsoft</Company>
66
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
7+
<LangVersion>9.0</LangVersion>
78
<PackageTags>PowerShell;editor;development;language;debugging</PackageTags>
89
<PackageLicenseUrl>https://raw.githubusercontent.com/PowerShell/PowerShellEditorServices/master/LICENSE</PackageLicenseUrl>
910
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

src/PowerShellEditorServices.Hosting/PowerShellEditorServices.Hosting.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), PowerShellEditorServices.Common.props))\PowerShellEditorServices.Common.props" />
23

34
<PropertyGroup>
45
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
56
<AssemblyName>Microsoft.PowerShell.EditorServices.Hosting</AssemblyName>
6-
<LangVersion>latest</LangVersion>
77
</PropertyGroup>
88

99
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">

src/PowerShellEditorServices/PowerShellEditorServices.csproj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@
77
<Description>Provides common PowerShell editor capabilities as a .NET library.</Description>
88
<TargetFrameworks>netstandard2.0</TargetFrameworks>
99
<AssemblyName>Microsoft.PowerShell.EditorServices</AssemblyName>
10-
<LangVersion>Latest</LangVersion>
1110
<Configurations>Debug;Release</Configurations>
1211
</PropertyGroup>
1312

14-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
15-
<LangVersion>latest</LangVersion>
16-
<CheckForOverflowUnderflow></CheckForOverflowUnderflow>
17-
</PropertyGroup>
18-
19-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
20-
<LangVersion>latest</LangVersion>
21-
</PropertyGroup>
22-
2313
<ItemGroup>
2414
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
2515
<_Parameter1>Microsoft.PowerShell.EditorServices.Hosting</_Parameter1>

test/PowerShellEditorServices.Test.E2E/PowerShellEditorServices.Test.E2E.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), PowerShellEditorServices.Common.props))\PowerShellEditorServices.Common.props" />
23

34
<PropertyGroup>
45
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>

0 commit comments

Comments
 (0)