Skip to content

Commit

Permalink
ANNIHILATE .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey authored Oct 3, 2023
1 parent 507c061 commit 619bea8
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 24 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,14 @@ jobs:
if: ${{ steps.dotdotnet.outputs.cache-hit != 'true' }}
with:
dotnet-version: 6.0.201
- name: Install Workloads for .NET 6
if: ${{ steps.dotdotnet.outputs.cache-hit != 'true' }}
run: |
mv global.json notglobal.json
dotnet workload install android ios maccatalyst maui
mv notglobal.json global.json
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v1
if: ${{ steps.dotdotnet.outputs.cache-hit != 'true' }}
with:
dotnet-version: 7.0.102
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v1
if: ${{ steps.dotdotnet.outputs.cache-hit != 'true' }}
with:
dotnet-version: 8.0.100-rc.1.23463.5
- name: Install Workloads for .NET 8
- name: Install Workloads
if: ${{ steps.dotdotnet.outputs.cache-hit != 'true' }}
run: dotnet workload install android ios maccatalyst maui wasm-tools-net6
run: dotnet workload install android ios maccatalyst maui
#- name: Test
# if: ${{ github.repository != 'dotnet/Silk.NET' || !startsWith(github.ref, 'refs/tags/') }}
# # skip Clean, Restore, and Compile as this will build the affect the whole solution.
Expand Down
2 changes: 1 addition & 1 deletion build/nuke/Silk.NET.NUKE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<RootNamespace></RootNamespace>
<NoWarn>CS0649;CS0169</NoWarn>
<NukeRootDirectory>..\..</NukeRootDirectory>
Expand Down
2 changes: 1 addition & 1 deletion build/utilities/android_probe.proj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-android</TargetFramework>
<TargetFramework>net6.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
Expand Down
2 changes: 1 addition & 1 deletion documentation/proposals/Proposal - Windowing 3.0.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
net8.0-macnet8.0-iosnet8.0-android# Summary
# Summary

Cross-platform windowing for Silk.NET rebuilt from the ground-up.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-android</TargetFramework>
<TargetFramework>net6.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-android</TargetFramework>
<TargetFramework>net6.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>android-arm64;android-x86;android-arm;android-x64</RuntimeIdentifiers>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100-rc.1.23463.5",
"version": "7.0.102",
"rollForward": "major"
}
}
6 changes: 3 additions & 3 deletions src/Lab/Experiments/TriangleNET6/TriangleNET6.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0-android;net8.0-ios</TargetFrameworks>
<TargetFrameworks>net6.0;net6.0-android;net6.0-ios</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>preview</LangVersion>
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == '' And '$(TargetFramework)' == 'net6.0'">$(NETCoreSdkRuntimeIdentifier)</RuntimeIdentifiers>
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == '' And '$(TargetFramework)' == 'net8.0-android'">android-arm64;android-x86;android-arm;android-x64</RuntimeIdentifiers>
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == '' And '$(TargetFramework)' == 'net6.0-android'">android-arm64;android-x86;android-arm;android-x64</RuntimeIdentifiers>
<TrimMode>full</TrimMode>
</PropertyGroup>

Expand All @@ -23,7 +23,7 @@
</ItemGroup>

<!-- Android -->
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0-android'">
<ItemGroup Condition="'$(TargetFramework)' != 'net6.0-android'">
<Compile Remove="\MainActivity.cs" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Maths/Silk.NET.Maths.Tests/Silk.NET.Maths.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net6.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<IsPackable>false</IsPackable>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net6.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 619bea8

Please sign in to comment.