Skip to content

Commit 6417e98

Browse files
authored
Upgrade to .NET Core 3.1 (#725)
1 parent 1f3d46b commit 6417e98

19 files changed

Lines changed: 38 additions & 48 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- uses: actions/checkout@v1
2020
with:
2121
submodules: true
22-
- uses: actions/setup-dotnet@v1
22+
- uses: actions/setup-dotnet@v1.4.0
2323
with:
24-
dotnet-version: '3.0.100'
24+
dotnet-version: '3.1.100'
2525
- name: Set Mono Version
2626
if: matrix.os == 'macos-latest'
2727
run: echo ::add-path::/Library/Frameworks/Mono.framework/Versions/6.4.0/bin
@@ -38,12 +38,14 @@ jobs:
3838
with:
3939
name: packages
4040
path: Package/Release/Packages
41-
- name: Test
42-
run: |
43-
Write-Host ${env:DOTNET_ROOT}
44-
./make.ps1 -frameworks net45,netcoreapp3.0 test-all
45-
env:
46-
# Work around https://github.com/actions/setup-dotnet/issues/29
47-
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/3.0.100/x64
41+
- name: Test (net45)
42+
run: ./make.ps1 -frameworks net45 test-all
43+
shell: pwsh
44+
- name: Test (netcoreapp2.1)
45+
# TODO: figure out how to test on other OSs
46+
if: matrix.os == 'windows-latest'
47+
run: ./make.ps1 -frameworks netcoreapp2.1 test-all
48+
shell: pwsh
49+
- name: Test (netcoreapp3.1)
50+
run: ./make.ps1 -frameworks netcoreapp3.1 test-all
4851
shell: pwsh
49-
# TODO: figure out how to also test on netcoreapp2.1

Build/steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ steps:
3131
version: '2.1.x'
3232

3333
- task: DotNetCoreInstaller@1
34-
displayName: Install .NET Core 3.0 SDK for build
34+
displayName: Install .NET Core 3.1 SDK for build
3535
inputs:
3636
packageType: 'sdk'
37-
version: '3.0.100'
37+
version: '3.1.100'
3838

3939
# Set Mono version on macOS
4040
- ${{ if eq(parameters.os, 'macOS') }}:

Documentation/building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Building IronPython3
22

3-
To build IronPython3 you will need the .NET SDK (minimum 4.5), a [.NET Core SDK (minimum 3.0)](https://dotnet.microsoft.com/download/visual-studio-sdks) and if building on Linux/macOS you will need [Mono](https://mono-project.com).
3+
To build IronPython3 you will need the .NET SDK (minimum 4.5), a [.NET Core SDK (minimum 3.1)](https://dotnet.microsoft.com/download/visual-studio-sdks) and if building on Linux/macOS you will need [Mono](https://mono-project.com).
44

55
See [Getting the Sources](getting-the-sources.md) for information on getting the source for IronPython3.
66

77
## Building from Visual Studio
88

9-
Visual Studio 16.0(2019) or above is required to build IronPython3.
9+
Visual Studio 16.4(2019) or above is required to build IronPython3.
1010

1111
* Open `c:\path\to\ironpython3\IronPython.sln` solution file
1212
* Select the configuration options (Release,Debug, etc)

Package/nuget/IronPython.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<dependency id="Microsoft.Win32.Registry" version="4.5.0" />
2929
<dependency id="DynamicLanguageRuntime" version="[1.2.3-alpha0]" />
3030
</group>
31-
<group targetFramework="netcoreapp3.0">
32-
<dependency id="Microsoft.Win32.Registry" version="4.6.0" />
31+
<group targetFramework="netcoreapp3.1">
32+
<dependency id="Microsoft.Win32.Registry" version="4.7.0" />
3333
<dependency id="DynamicLanguageRuntime" version="[1.2.3-alpha0]" />
3434
</group>
3535
</dependencies>

Src/IronPython.Modules/IronPython.Modules.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net45;netcoreapp2.1;netcoreapp3.0;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net45;netcoreapp2.1;netcoreapp3.1;netstandard2.0</TargetFrameworks>
55
<BaseAddress>885063680</BaseAddress>
66
<CodeAnalysisRuleSet>..\..\IronPython.ruleset</CodeAnalysisRuleSet>
77
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
@@ -37,8 +37,8 @@
3737
<PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />
3838
</ItemGroup>
3939

40-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.0' ">
41-
<PackageReference Include="Microsoft.Win32.Registry" Version="4.6.0" />
40+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
41+
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
4242
</ItemGroup>
4343

4444
<Import Project="$(AfterTargetFiles)" />

Src/IronPython.SQLite/IronPython.SQLite.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net45;netcoreapp2.1;netcoreapp3.0;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net45;netcoreapp2.1;netcoreapp3.1;netstandard2.0</TargetFrameworks>
55
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
66
<SQLiteCommon>SQLITE_DEBUG;TRUE;WIN32;_MSC_VER;SQLITE_ASCII;SQLITE_MEM_POOL;SQLITE_ENABLE_COLUMN_METADATA;SQLITE_OS_WIN;SQLITE_SYSTEM_MALLOC;VDBE_PROFILE_OFF</SQLiteCommon>
77
<SQLiteCommonOmit>SQLITE_OMIT_AUTHORIZATION;SQLITE_OMIT_DEPRECATED;SQLITE_OMIT_GET_TABLE;SQLITE_OMIT_INCRBLOB;SQLITE_OMIT_LOOKASIDE;SQLITE_OMIT_SHARED_CACHE;SQLITE_OMIT_UTF16;SQLITE_OMIT_WAL</SQLiteCommonOmit>

Src/IronPython.Wpf/DynamicXamlReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information.
44

5-
#if NETCOREAPP3_0
5+
#if NETCOREAPP3_1
66

77
using System;
88
using System.Xaml;

Src/IronPython.Wpf/IronPython.Wpf.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<TargetFrameworks>net45</TargetFrameworks>
7-
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);netcoreapp3.0</TargetFrameworks>
7+
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);netcoreapp3.1</TargetFrameworks>
88
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
99
<BaseAddress>885063680</BaseAddress>
1010
<StoreInDLLs>true</StoreInDLLs>

0 commit comments

Comments
 (0)