Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] .net 8 update #2802

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
48aa1f8
start work o .net 8 update
zarlo Oct 21, 2023
5a3c7ec
Merge branch 'master' into dotnet8
zarlo Oct 21, 2023
0c80faf
some plugs made
zarlo Oct 22, 2023
602ae4e
Merge branch 'master' into dotnet8
zarlo Oct 26, 2023
e0a8b2d
Merge branch 'master' into dotnet8
zarlo Oct 26, 2023
e638469
Merge branch 'master' into dotnet8
zarlo Nov 8, 2023
6efd039
some plugs
zarlo Dec 1, 2023
813969d
Merge remote-tracking branch 'origin/dotnet8' into dotnet8
zarlo Dec 1, 2023
006c7d0
Merge branch 'CosmosOS:master' into dotnet8
zarlo Dec 1, 2023
36bfae1
Merge branch 'master' into dotnet8
zarlo Dec 4, 2023
2586128
Merge branch 'master' into dotnet8
zarlo Dec 7, 2023
dd2f82e
Merge branch 'master' into dotnet8
valentinbreiz Dec 11, 2023
1306c8f
Merge branch 'master' into dotnet8
zarlo Dec 12, 2023
070670e
Merge branch 'master' into dotnet8
MishaProductions Jan 2, 2024
cf94707
Merge branch 'master' into dotnet8
zarlo Mar 18, 2024
8885f69
Merge branch 'master' into dotnet8
zarlo Apr 8, 2024
be67f33
Merge branch 'CosmosOS:master' into dotnet8
zarlo Apr 21, 2024
cdec8cc
more plugs
Apr 22, 2024
6fc4d49
work on .net 8 update
Apr 23, 2024
19a34f0
Update Setup MSBuild action
MishaProductions Jul 10, 2024
06eac0d
Merge branch 'master' into pr/2802
MishaProductions Jul 10, 2024
62c254b
Add additional plugs
MishaProductions Jul 10, 2024
1dff554
Add a few more plugs
MishaProductions Jul 10, 2024
de1b018
Update array plug
MishaProductions Jul 10, 2024
881d88c
Merge branch 'master' into dotnet8
MishaProductions Aug 17, 2024
babd4d7
fix GetSignature
MishaProductions Aug 17, 2024
c9cc678
Merge branch 'master' into dotnet8
MishaProductions Nov 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
path: XSharp

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1.3
uses: microsoft/setup-msbuild@v2.0.0

- name: Nuget - Cache
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions Build/Targets/MSBuildExtension.targets
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>

<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" Version="16.9.0" PrivateAssets="All" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.9.0" PrivateAssets="All" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Build.Framework" Version="17.7.2" PrivateAssets="All" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.7.2" PrivateAssets="All" ExcludeAssets="Runtime" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Build/Targets/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<ApprovalTestsVersion>3.0.22</ApprovalTestsVersion>
<AvaloniaVersion>0.7.0</AvaloniaVersion>
<MicrosoftBuildVersion>16.7.0</MicrosoftBuildVersion>
<MicrosoftBuildVersion>17.7.2</MicrosoftBuildVersion>
<MicrosoftNETFrameworkReferenceAssembliesVersion>1.0.0</MicrosoftNETFrameworkReferenceAssembliesVersion>
<MicrosoftNETTestSdkVersion>16.0.1</MicrosoftNETTestSdkVersion>
<MicrosoftTestPlatformObjectModelVersion>16.0.1</MicrosoftTestPlatformObjectModelVersion>
Expand Down
2 changes: 1 addition & 1 deletion Examples/Basic Terminal Shell/BasicTerminalShell.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<!--<RuntimeIdentifier>cosmos</RuntimeIdentifier>-->
<Platform>cosmos</Platform>
<SupportsX86Intrinsics>false</SupportsX86Intrinsics>
Expand Down
2 changes: 1 addition & 1 deletion Examples/Console Beep Demo/BeepDemo.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>cosmos</RuntimeIdentifier>
</PropertyGroup>

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

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>cosmos</RuntimeIdentifier>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Examples/Guess Number Game/GuessKernel.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>cosmos</RuntimeIdentifier>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Examples/ZMachine Emulator/ZKernel/ZKernel.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>cosmos</RuntimeIdentifier>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Examples/ZMachine Emulator/ZLibrary/ZLibrary.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>

Expand Down
11 changes: 11 additions & 0 deletions Kernel.sln
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Spruce", "..\XSharp\source\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Plugs", "source\Cosmos.Plugs\Cosmos.Plugs.csproj", "{F2948368-61B6-4653-BAEC-C7152CE4980E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DapperExtensions.StrongName", "Resources\Dependencies\DapperExtensions.StrongName\DapperExtensions.StrongName.csproj", "{13ECB940-25D6-40EF-8B11-ABA89EA14991}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -193,6 +195,14 @@ Global
{F2948368-61B6-4653-BAEC-C7152CE4980E}.Release|Any CPU.Build.0 = Release|Any CPU
{F2948368-61B6-4653-BAEC-C7152CE4980E}.Release|x86.ActiveCfg = Release|Any CPU
{F2948368-61B6-4653-BAEC-C7152CE4980E}.Release|x86.Build.0 = Release|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Debug|x86.ActiveCfg = Debug|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Debug|x86.Build.0 = Debug|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Release|Any CPU.Build.0 = Release|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Release|x86.ActiveCfg = Release|Any CPU
{13ECB940-25D6-40EF-8B11-ABA89EA14991}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -216,6 +226,7 @@ Global
{4E9B8F31-AEA0-402D-9B3A-223100F2156D} = {3CD3D9A5-9BC5-4FEB-8D63-4D535C0ABB78}
{0812DD0A-4CEE-4376-B78A-02EBCBAA14C2} = {3CD3D9A5-9BC5-4FEB-8D63-4D535C0ABB78}
{F2948368-61B6-4653-BAEC-C7152CE4980E} = {9A923E6F-FF63-4F02-A4EA-C2D44F9323FD}
{13ECB940-25D6-40EF-8B11-ABA89EA14991} = {3CD3D9A5-9BC5-4FEB-8D63-4D535C0ABB78}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1A1E8F1D-82B3-471F-9B59-0350DEA9203D}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,5 @@ template-install:
@printf "Installing ${GREEN}C# Template packages${DEFAULT}\n"
@-dotnet new uninstall $(THISDIR)/source/templates/csharp/
@printf "If the template was not installed, you can ignore this\n"
@dotnet new -i $(THISDIR)/source/templates/csharp/
@dotnet new install $(THISDIR)/source/templates/csharp/
#TODO: Uninstall
2 changes: 1 addition & 1 deletion Tests/Cosmos.Common.Tests/Cosmos.Common.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Configurations>Debug;Release;TEST</Configurations>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.Common.Tests/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"Microsoft.NET.Test.Sdk": {
"type": "Direct",
"requested": "(, )",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Configurations>Debug;Release;TEST</Configurations>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.Core.Memory.Test/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"Microsoft.NET.Test.Sdk": {
"type": "Direct",
"requested": "(, )",
Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.Core.Tests/Cosmos.Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Configurations>Debug;Release;TEST</Configurations>
</PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions Tests/Cosmos.Core.Tests/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"Microsoft.NET.Test.Sdk": {
"type": "Direct",
"requested": "(, )",
Expand Down Expand Up @@ -390,8 +390,8 @@
},
"System.Data.SqlClient": {
"type": "Transitive",
"resolved": "4.8.5",
"contentHash": "fRqxut4lrndPHrXD+ht1XRmCL3obuKldm4XjCRYS9p5f7FSR7shBxAwTkDrpFMsHC9BhNgjjmUtiIjvehn5zkg==",
"resolved": "4.8.6",
"contentHash": "2Ij/LCaTQRyAi5lAv7UUTV9R2FobC8xN9mE0fXBZohum/xLl8IZVmE98Rq5ugQHjCgTBRKqpXRb4ORulRdA6Ig==",
"dependencies": {
"Microsoft.Win32.Registry": "4.7.0",
"System.Security.Principal.Windows": "4.7.0",
Expand Down Expand Up @@ -1265,7 +1265,7 @@
"SQLitePCLRaw.core": "[2.0.6, )",
"SQLitePCLRaw.lib.e_sqlite3.linux": "[1.1.14, )",
"System.ComponentModel.Annotations": "[5.0.0, )",
"System.Data.SqlClient": "[4.8.5, )",
"System.Data.SqlClient": "[4.8.6, )",
"System.IO.MemoryMappedFiles": "[4.3.0, )",
"System.Reflection.Metadata": "[5.0.0, )"
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.System.Tests/Cosmos.System.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyOriginatorKeyFile>..\..\build\Cosmos.snk</AssemblyOriginatorKeyFile>
<DefineConstants>UNIT_TEST</DefineConstants>
<Configurations>Debug;Release;TEST</Configurations>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.System.Tests/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"ApprovalTests": {
"type": "Direct",
"requested": "[3.0.18, )",
Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.TestRunner.Core/Cosmos.TestRunner.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Configurations>Debug;Release;TEST</Configurations>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.TestRunner.Core/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"Microsoft.NETCore.Platforms": {
"type": "Transitive",
"resolved": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.TestRunner.Full/Cosmos.TestRunner.Full.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<TargetLatestRuntimePatch>True</TargetLatestRuntimePatch>
<Configurations>Debug;Release;TEST</Configurations>
</PropertyGroup>
Expand Down
11 changes: 7 additions & 4 deletions Tests/Cosmos.TestRunner.Full/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"Dapper.StrongName": {
"type": "Transitive",
"resolved": "2.0.90",
Expand Down Expand Up @@ -378,8 +378,8 @@
},
"System.Data.SqlClient": {
"type": "Transitive",
"resolved": "4.8.5",
"contentHash": "fRqxut4lrndPHrXD+ht1XRmCL3obuKldm4XjCRYS9p5f7FSR7shBxAwTkDrpFMsHC9BhNgjjmUtiIjvehn5zkg==",
"resolved": "4.8.6",
"contentHash": "2Ij/LCaTQRyAi5lAv7UUTV9R2FobC8xN9mE0fXBZohum/xLl8IZVmE98Rq5ugQHjCgTBRKqpXRb4ORulRdA6Ig==",
"dependencies": {
"Microsoft.Win32.Registry": "4.7.0",
"System.Security.Principal.Windows": "4.7.0",
Expand Down Expand Up @@ -1389,6 +1389,7 @@
"Cosmos.Core": "[0.1.0-localbuild, )",
"Cosmos.Debug.Kernel": "[0.1.0-localbuild, )",
"Cosmos.IL2CPU": "[0.1.0-localbuild, )",
"IL2CPU.API": "[0.1.0-localbuild, )",
"System.Reflection.TypeExtensions": "[4.7.0, )",
"XSharp": "[0.1.0-localbuild, )"
}
Expand All @@ -1400,6 +1401,8 @@
"Cosmos.Core": "[0.1.0-localbuild, )",
"Cosmos.Core_Asm": "[0.1.0-localbuild, )",
"Cosmos.Debug.Kernel": "[0.1.0-localbuild, )",
"Cosmos.IL2CPU": "[0.1.0-localbuild, )",
"IL2CPU.API": "[0.1.0-localbuild, )",
"IgnoresAccessChecksToGenerator": "[0.5.0, )",
"XSharp": "[0.1.0-localbuild, )"
}
Expand Down Expand Up @@ -1588,7 +1591,7 @@
"SQLitePCLRaw.core": "[2.0.6, )",
"SQLitePCLRaw.lib.e_sqlite3.linux": "[1.1.14, )",
"System.ComponentModel.Annotations": "[5.0.0, )",
"System.Data.SqlClient": "[4.8.5, )",
"System.Data.SqlClient": "[4.8.6, )",
"System.IO.MemoryMappedFiles": "[4.3.0, )",
"System.Reflection.Metadata": "[5.0.0, )"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<PackageDescription>Test adapter for Cosmos kernels.</PackageDescription>
<IsToolProject>True</IsToolProject>
<AppendTargetFrameworkToToolsPackageFolder>False</AppendTargetFrameworkToToolsPackageFolder>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.TestRunner.TestAdapter/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"Microsoft.TestPlatform.ObjectModel": {
"type": "Direct",
"requested": "[17.0.0, )",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Configurations>Debug;Release;TEST</Configurations>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Tests/Cosmos.TestRunner.TestController/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"net8.0": {
"cosmos.debug.kernel": {
"type": "Project"
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Cosmos.TestRunner.UI/Cosmos.TestRunner.UI.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<RuntimeIdentifier>win10-x86</RuntimeIdentifier>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SignAssembly>False</SignAssembly>
<Configurations>Debug;Release;TEST</Configurations>
</PropertyGroup>
Expand Down
Loading
Loading