Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbae672f

Browse files
committed
use .NET 6.0 LTS and C# 10
1 parent55abd29 commitbae672f

File tree

9 files changed

+21
-22
lines changed

9 files changed

+21
-22
lines changed

‎.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
-name:Setup .NET
3333
uses:actions/setup-dotnet@v1
34+
with:
35+
dotnet-version:'6.0.x'
3436

3537
-name:Set up Python ${{ matrix.python }}
3638
uses:actions/setup-python@v2

‎.github/workflows/nuget-preview.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525

2626
-name:Setup .NET
2727
uses:actions/setup-dotnet@v1
28+
with:
29+
dotnet-version:'6.0.x'
2830

2931
-name:Set up Python 3.8
3032
uses:actions/setup-python@v2

‎Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project>
22
<PropertyGroup>
33
<VersionPrefix>3.0.0</VersionPrefix>
4-
<AssemblyCopyright>Copyright (c) 2006-2020 The Contributors of the Python.NET Project</AssemblyCopyright>
4+
<AssemblyCopyright>Copyright (c) 2006-2022 The Contributors of the Python.NET Project</AssemblyCopyright>
55
<AssemblyCompany>pythonnet</AssemblyCompany>
66
<AssemblyProduct>Python.NET</AssemblyProduct>
7-
<LangVersion>9.0</LangVersion>
7+
<LangVersion>10.0</LangVersion>
88
<IsPackable>false</IsPackable>
99
</PropertyGroup>
1010
<ItemGroup>
1111
<PackageReferenceInclude="Microsoft.CSharp"Version="4.7.0" />
12-
<PackageReferenceInclude="Microsoft.Net.Compilers.Toolset"Version="3.9.0-3.final">
12+
<PackageReferenceInclude="Microsoft.Net.Compilers.Toolset"Version="4.0.1">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1515
</PackageReference>

‎pythonnet.sln

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio Version16
3-
VisualStudioVersion =16.0.30717.126
2+
# Visual Studio Version17
3+
VisualStudioVersion =17.0.31912.275
44
MinimumVisualStudioVersion =15.0.26124.0
55
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") ="Python.Runtime","src\runtime\Python.Runtime.csproj","{4E8C8FE2-0FB8-4517-B2D9-5FB2D5FC849B}"
66
EndProject
@@ -34,6 +34,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
3434
setup.py=setup.py
3535
EndProjectSection
3636
EndProject
37+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") ="conda.recipe","conda.recipe","{7FD2404D-0CE8-4645-8DFB-766470E2150E}"
38+
ProjectSection(SolutionItems) =preProject
39+
conda.recipe\bld.bat=conda.recipe\bld.bat
40+
conda.recipe\meta.yaml=conda.recipe\meta.yaml
41+
conda.recipe\README.md=conda.recipe\README.md
42+
EndProjectSection
43+
EndProject
3744
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") ="Tools","Tools","{BC426F42-8494-4AA5-82C9-5109ACD97BD1}"
3845
ProjectSection(SolutionItems) =preProject
3946
tools\geninterop\geninterop.py=tools\geninterop\geninterop.py
@@ -80,18 +87,6 @@ Global
8087
{E6B01706-00BA-4144-9029-186AC42FBE9A}.Release|x64.Build.0=Release|x64
8188
{E6B01706-00BA-4144-9029-186AC42FBE9A}.Release|x86.ActiveCfg=Release|x86
8289
{E6B01706-00BA-4144-9029-186AC42FBE9A}.Release|x86.Build.0=Release|x86
83-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Debug|Any CPU.ActiveCfg=Debug|Any CPU
84-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Debug|Any CPU.Build.0=Debug|Any CPU
85-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Debug|x64.ActiveCfg=Debug|Any CPU
86-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Debug|x64.Build.0=Debug|Any CPU
87-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Debug|x86.ActiveCfg=Debug|Any CPU
88-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Debug|x86.Build.0=Debug|Any CPU
89-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Release|Any CPU.ActiveCfg=Release|Any CPU
90-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Release|Any CPU.Build.0=Release|Any CPU
91-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Release|x64.ActiveCfg=Release|Any CPU
92-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Release|x64.Build.0=Release|Any CPU
93-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Release|x86.ActiveCfg=Release|Any CPU
94-
{F9F5FA13-BC52-4C0B-BC1C-FE3C0B8FCCDD}.Release|x86.Build.0=Release|Any CPU
9590
{819E089B-4770-400E-93C6-4F7A35F0EA12}.Debug|Any CPU.ActiveCfg=Debug|Any CPU
9691
{819E089B-4770-400E-93C6-4F7A35F0EA12}.Debug|Any CPU.Build.0=Debug|Any CPU
9792
{819E089B-4770-400E-93C6-4F7A35F0EA12}.Debug|x64.ActiveCfg=Debug|Any CPU

‎src/console/Console.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ProjectSdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
3+
<TargetFrameworks>net472;net6.0</TargetFrameworks>
44
<Platforms>x64;x86</Platforms>
55
<OutputType>Exe</OutputType>
66
<AssemblyName>nPython</AssemblyName>

‎src/embed_tests/Python.EmbeddingTest.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>net472;net6.0</TargetFrameworks>
55
<AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile>
66
<SignAssembly>true</SignAssembly>
77
</PropertyGroup>

‎src/runtime/Python.Runtime.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<TargetFrameworks>netstandard2.0</TargetFrameworks>
44
<Platforms>AnyCPU</Platforms>
5-
<LangVersion>9.0</LangVersion>
5+
<LangVersion>10.0</LangVersion>
66
<RootNamespace>Python.Runtime</RootNamespace>
77
<AssemblyName>Python.Runtime</AssemblyName>
88

‎src/testing/Python.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ProjectSdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
3+
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
66
</PropertyGroup>

‎tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def pytest_configure(config):
5050

5151
# tmpdir_factory.mktemp(f"pythonnet-{runtime_opt}")
5252

53-
fw="net5.0"ifruntime_opt=="netcore"else"netstandard2.0"
53+
fw="net6.0"ifruntime_opt=="netcore"else"netstandard2.0"
5454

5555
check_call(["dotnet","publish","-f",fw,"-o",bin_path,test_proj_path])
5656

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp