Skip to content

Commit e497105

Browse files
downgrade to sdk preview.5 (#4)
* downgrade to sdk preview.5 * Update main.yml * Update ARM.yml * tests updated to NET10.0 * Update main.yml * Update pipeline.yml --------- Co-authored-by: Ashish Aggarwal <ashish.aggarwal@autodesk.com>
1 parent dd2b802 commit e497105

7 files changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/ARM.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v5
1818

1919
- name: Setup .NET
20-
uses: actions/setup-dotnet@v1
20+
uses: actions/setup-dotnet@v5
2121
with:
22-
dotnet-version: '6.0.x'
22+
dotnet-version: '10.0.x'
2323

2424
- name: Clean previous install
2525
run: |

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
mono-version: latest
4343

4444
- name: Checkout code
45-
uses: actions/checkout@v2
45+
uses: actions/checkout@v5
4646

4747
- name: Setup .NET
48-
uses: actions/setup-dotnet@v1
48+
uses: actions/setup-dotnet@v5
4949
with:
50-
dotnet-version: '6.0.x'
50+
dotnet-version: '10.0.100-preview.5.25277.114'
5151

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

Directory.Build.props

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,13 @@
44
<AssemblyCopyright>Copyright (c) 2006-2022 The Contributors of the Python.NET Project</AssemblyCopyright>
55
<AssemblyCompany>pythonnet</AssemblyCompany>
66
<AssemblyProduct>Python.NET</AssemblyProduct>
7-
<LangVersion>10.0</LangVersion>
7+
<LangVersion>12.0</LangVersion>
88
<IsPackable>false</IsPackable>
99
<FullVersion>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)version.txt").Trim())</FullVersion>
1010
<VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix>
1111
<VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix>
1212
</PropertyGroup>
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
15-
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.0.1">
16-
<PrivateAssets>all</PrivateAssets>
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
18-
</PackageReference>
19-
<PackageReference Include="NonCopyableAnalyzer" Version="0.7.0">
20-
<PrivateAssets>all</PrivateAssets>
21-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
22-
</PackageReference>
2315
</ItemGroup>
2416
</Project>

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "10.0.100-preview.5.25277.114",
4+
"rollForward": "disable"
5+
}
6+
}

pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ deployment:
3939
- ./pythonnet/runtime/Python.Runtime.dll
4040
-
4141
type: customized
42-
allow_branches: dynamo_py3
42+
allow_branches: testnet
4343
scripts:
44-
- dotnet pack --no-build --configuration Release --version-suffix preview-%BUILD_DATE% --output "Release-Preview"
44+
- dotnet pack --no-build --configuration Release --version-suffix test-%BUILD_DATE% --output "Release-Preview"
4545
- dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key %API_KEY% "Release-Preview/**/*.nupkg"
4646
- dotnet nuget push --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key %API_KEY% "Release-Preview/**/*.snupkg"

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
<Project Sdk="Microsoft.NET.Sdk">
22

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

src/module_tests/Python.ModuleTest.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>net472;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net472;net10.0</TargetFrameworks>
55
<AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile>
66
<SignAssembly>true</SignAssembly>
77
</PropertyGroup>

0 commit comments

Comments
 (0)