Skip to content

Commit 2e52378

Browse files
committed
Bump .NET to 7.0
1 parent 5315c35 commit 2e52378

File tree

92 files changed

+133
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+133
-133
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ traversal.
2121
## Recent changes
2222

2323
The main version number is bumped to 3.0 to reflect the recent toolchain updates.
24-
- .NET 6.0 is now the mainly supported target framework
24+
- .NET 7.0 is now the mainly supported target framework
2525
- Visual Studio 2022 is supported
2626

2727
One goal of Graph Engine 3.0 is to bring the system up to date and make it
@@ -51,8 +51,8 @@ Install g++, cmake, and libssl-dev. For example, on Ubuntu, simply run
5151
sudo apt update && sudo apt install g++ cmake libssl-dev
5252
```
5353

54-
Install [.NET SDK x64 6.0][dotnet6-on-linux]. For example, on Ubuntu 22.04, run
55-
`sudo apt update && sudo apt install -y dotnet-sdk-6.0`.
54+
Install [.NET SDK x64 7.0][dotnet-on-linux]. For example, on Ubuntu 22.04, run
55+
`sudo apt update && sudo apt install -y dotnet-sdk-7.0`.
5656
Then, build GraphEngine with the following command:
5757

5858
```shell
@@ -123,6 +123,6 @@ Links
123123

124124
[dotnet-download]: https://dotnet.microsoft.com/
125125

126-
[dotnet6-on-linux]: https://dotnet.microsoft.com/en-us/download/dotnet/6.0
126+
[dotnet-on-linux]: https://dotnet.microsoft.com/en-us/download/dotnet
127127

128128
[license]: LICENSE.md

azure-pipelines-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ steps:
3131
- script: sudo apt update && sudo apt install -y g++ cmake libssl-dev
3232
displayName: 'Install g++ cmake libssl-dev'
3333

34-
- script: sudo apt install -y dotnet-sdk-6.0
35-
displayName: 'Install .NET SDK x64 6.0'
34+
- script: sudo apt install -y dotnet-sdk-7.0
35+
displayName: 'Install .NET SDK x64 7.0'
3636

3737
- bash: tools/build.sh
3838
displayName: 'Build Graph Engine'

cmake/FindDotnet.cmake

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#.rst
22
# FindDotnet
33
# ----------
4-
#
4+
#
55
# Find DotNet executable, and initialize functions for adding dotnet projects.
6-
#
6+
#
77
# Results are reported in the following variables::
8-
#
8+
#
99
# DOTNET_FOUND - True if dotnet executable is found
1010
# DOTNET_EXE - Dotnet executable
1111
# DOTNET_VERSION - Dotnet version as reported by dotnet executable
1212
# NUGET_EXE - Nuget executable (WIN32 only)
1313
# NUGET_CACHE_PATH - Nuget package cache path
14-
#
14+
#
1515
# The following functions are defined to add dotnet/msbuild projects:
16-
#
16+
#
1717
# ADD_DOTNET -- add a project to be built by dotnet.
18-
#
18+
#
1919
# ```
2020
# ADD_DOTNET(<project_file> [RELEASE|DEBUG] [X86|X64|ANYCPU] [NETCOREAPP]
2121
# [CONFIG configuration]
@@ -29,10 +29,10 @@
2929
# [ARGUMENTS additional_build_args...]
3030
# [PACK_ARGUMENTS additional_pack_args...])
3131
# ```
32-
#
33-
# RUN_DOTNET -- Run a project with `dotnet run`. The `OUTPUT` argument represents artifacts
32+
#
33+
# RUN_DOTNET -- Run a project with `dotnet run`. The `OUTPUT` argument represents artifacts
3434
# produced by running the .NET program, and can be consumed from other build steps.
35-
#
35+
#
3636
# ```
3737
# RUN_DOTNET(<project_file> [RELEASE|DEBUG] [X86|X64|ANYCPU] [NETCOREAPP]
3838
# [ARGUMENTS program_args...]
@@ -44,9 +44,9 @@
4444
# [CUSTOM_BUILDPROPS <CustomProp>value</CustomProp>....]
4545
# [SOURCES additional_file_dependencies... ])
4646
# ```
47-
#
47+
#
4848
# ADD_MSBUILD -- add a project to be built by msbuild. Windows-only. When building in Unix systems, msbuild targets are skipped.
49-
#
49+
#
5050
# ```
5151
# ADD_MSBUILD(<project_file> [RELEASE|DEBUG] [X86|X64|ANYCPU] [NETCOREAPP]
5252
# [CONFIG configuration]
@@ -71,14 +71,14 @@
7171
# [OUTPUT_PATH output_path relative to cmake binary output dir]
7272
# [CUSTOM_BUILDPROPS <CustomProp>value</CustomProp>....]
7373
# [SOURCES additional_file_dependencies... ])
74-
#
74+
#
7575
# For all the above functions, `RELEASE|DEBUG` overrides `CONFIG`, `X86|X64|ANYCPU` overrides PLATFORM.
7676
# For Unix systems, the target framework defaults to `netstandard2.0`, unless `NETCOREAPP` is specified.
7777
# For Windows, the project is built as-is, allowing multi-targeting.
7878
#
7979
#
8080
# DOTNET_REGISTER_LOCAL_REPOSITORY -- register a local NuGet package repository.
81-
#
81+
#
8282
# ```
8383
# DOTNET_REGISTER_LOCAL_REPOSITORY(repo_name repo_path)
8484
# ```
@@ -94,7 +94,7 @@
9494
# [ARGUMENTS additional_dotnet_test_args...]
9595
# [OUTPUT_PATH output_path relative to cmake binary output dir])
9696
# ```
97-
#
97+
#
9898
# GEN_DOTNET_PROPS -- Generates a Directory.Build.props file. The created file is populated with MSBuild properties:
9999
# - DOTNET_PACKAGE_VERSION: a version string that can be referenced in the actual project file as $(DOTNET_PACKAGE_VERSION).
100100
# The version string value can be set with PACKAGE_VERSION argument, and defaults to '1.0.0'.
@@ -108,7 +108,7 @@
108108
# [PACKAGE_VERSION version]
109109
# [XML_INJECT xml_injection])
110110
# ```
111-
#
111+
#
112112
# Require 3.5 for batch copy multiple files
113113

114114
cmake_minimum_required(VERSION 3.5.0)
@@ -166,11 +166,11 @@ ENDFUNCTION()
166166
FUNCTION(DOTNET_GET_DEPS _DN_PROJECT arguments)
167167
CMAKE_PARSE_ARGUMENTS(
168168
# prefix
169-
_DN
169+
_DN
170170
# options (flags)
171-
"RELEASE;DEBUG;X86;X64;ANYCPU;NETCOREAPP"
171+
"RELEASE;DEBUG;X86;X64;ANYCPU;NETCOREAPP"
172172
# oneValueArgs
173-
"CONFIG;PLATFORM;VERSION;OUTPUT_PATH"
173+
"CONFIG;PLATFORM;VERSION;OUTPUT_PATH"
174174
# multiValueArgs
175175
"PACKAGE;DEPENDS;ARGUMENTS;PACK_ARGUMENTS;OUTPUT;SOURCES;CUSTOM_BUILDPROPS"
176176
# the input arguments
@@ -181,7 +181,7 @@ FUNCTION(DOTNET_GET_DEPS _DN_PROJECT arguments)
181181
GET_FILENAME_COMPONENT(_DN_projname "${_DN_PROJECT}" NAME)
182182
STRING(REGEX REPLACE "\\.[^.]*$" "" _DN_projname_noext ${_DN_projname})
183183

184-
FILE(GLOB_RECURSE DOTNET_deps
184+
FILE(GLOB_RECURSE DOTNET_deps
185185
${_DN_proj_dir}/*.cs
186186
${_DN_proj_dir}/*.fs
187187
${_DN_proj_dir}/*.vb
@@ -262,8 +262,8 @@ FUNCTION(DOTNET_GET_DEPS _DN_PROJECT arguments)
262262
ENDIF()
263263

264264
IF(_DN_NETCOREAPP)
265-
SET(_DN_BUILD_OPTIONS -f net6.0)
266-
SET(_DN_PACK_OPTIONS /p:TargetFrameworks=net6.0)
265+
SET(_DN_BUILD_OPTIONS -f net7.0)
266+
SET(_DN_PACK_OPTIONS /p:TargetFrameworks=net7.0)
267267
ELSEIF(UNIX)
268268
# Unix builds default to netstandard2.0
269269
SET(_DN_BUILD_OPTIONS -f netstandard2.0)
@@ -312,14 +312,14 @@ ENDMACRO()
312312

313313
MACRO(DOTNET_BUILD_COMMANDS)
314314
IF(${DOTNET_IS_MSBUILD})
315-
SET(build_dotnet_cmds
315+
SET(build_dotnet_cmds
316316
COMMAND ${CMAKE_COMMAND} -E echo "======= Building msbuild project ${DOTNET_PROJNAME} [${DOTNET_CONFIG} ${DOTNET_PLATFORM}]"
317317
COMMAND ${NUGET_EXE} restore -Force ${DOTNET_PROJPATH}
318318
COMMAND ${DOTNET_EXE} msbuild ${DOTNET_PROJPATH} /t:Clean ${DOTNET_BUILD_PROPERTIES} /p:Configuration="${DOTNET_CONFIG}"
319319
COMMAND ${DOTNET_EXE} msbuild ${DOTNET_PROJPATH} /t:Build ${DOTNET_BUILD_PROPERTIES} /p:Configuration="${DOTNET_CONFIG}" ${DOTNET_ARGUMENTS})
320320
SET(build_dotnet_type "msbuild")
321321
ELSE()
322-
SET(build_dotnet_cmds
322+
SET(build_dotnet_cmds
323323
COMMAND ${CMAKE_COMMAND} -E echo "======= Building .NET project ${DOTNET_PROJNAME} [${DOTNET_CONFIG} ${DOTNET_PLATFORM}]"
324324
COMMAND ${DOTNET_EXE} restore ${DOTNET_PROJPATH} ${DOTNET_IMPORT_PROPERTIES}
325325
COMMAND ${DOTNET_EXE} clean ${DOTNET_PROJPATH} ${DOTNET_BUILD_PROPERTIES}
@@ -386,11 +386,11 @@ FUNCTION(RUN_DOTNET DOTNET_PROJECT)
386386
COMMAND ${DOTNET_EXE} clean ${DOTNET_PROJPATH} ${DOTNET_BUILD_PROPERTIES}
387387
COMMAND ${DOTNET_EXE} build --no-restore ${DOTNET_PROJPATH} -c ${DOTNET_CONFIG} ${DOTNET_BUILD_PROPERTIES} ${DOTNET_BUILD_OPTIONS}
388388
# XXX tfm
389-
COMMAND ${DOTNET_EXE} ${DOTNET_OUTPUT_PATH}/net6.0/${DOTNET_PROJNAME}.dll ${DOTNET_ARGUMENTS}
389+
COMMAND ${DOTNET_EXE} ${DOTNET_OUTPUT_PATH}/net7.0/${DOTNET_PROJNAME}.dll ${DOTNET_ARGUMENTS}
390390
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/${DOTNET_PROJNAME}.runtimestamp
391391
WORKING_DIRECTORY ${DOTNET_OUTPUT_PATH})
392392
ADD_CUSTOM_TARGET(
393-
RUN_${DOTNET_PROJNAME}
393+
RUN_${DOTNET_PROJNAME}
394394
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${DOTNET_PROJNAME}.runtimestamp ${DOTNET_RUN_OUTPUT})
395395
ADD_DOTNET_DEPENDENCY_TARGETS(RUN)
396396
ENDFUNCTION()
@@ -401,7 +401,7 @@ FUNCTION(TEST_DOTNET DOTNET_PROJECT)
401401
IF(WIN32)
402402
SET(test_framework_args "")
403403
ELSE()
404-
SET(test_framework_args -f net6.0)
404+
SET(test_framework_args -f net7.0)
405405
ENDIF()
406406

407407
ADD_TEST(NAME ${DOTNET_PROJNAME}
@@ -443,9 +443,9 @@ FUNCTION(GEN_DOTNET_PROPS target_props_file)
443443
# prefix
444444
_DNP
445445
# options (flags)
446-
""
446+
""
447447
# oneValueArgs
448-
"PACKAGE_VERSION;XML_INJECT"
448+
"PACKAGE_VERSION;XML_INJECT"
449449
# multiValueArgs
450450
""
451451
# the input arguments

lib/Trinity.TSL.CodeGen.exe

42 KB
Binary file not shown.

lib/Trinity.dll

47.5 KB
Binary file not shown.

lib/Trinity.lib

0 Bytes
Binary file not shown.

samples/DistributedHashtable/DistributedHashtable.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

samples/Friends/Friends.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

samples/GraphGenerator/GraphGenerator.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

samples/Ping/Ping.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)