mirror of
https://github.com/Z3Prover/z3
synced 2026-05-16 07:05:35 +00:00
Bump dotnet example target framework from netcoreapp2.0 to net8.0 (#9531)
- [x] Update `examples/dotnet/dotnet.csproj` target framework from `netcoreapp2.0` to `net8.0` - [x] Update `cmake/modules/FindDotnet.cmake`: replace all `netcoreapp2.0` references (build options, pack options, dll path, test framework args) with `net8.0` - [x] Update `examples/dotnet/CMakeLists.txt`: fix hardcoded output path from `netcoreapp2.0` to `net8.0` - [x] Update `scripts/mk_util.py`: fix generated `.csproj` template from `netcoreapp2.0` to `net8.0` --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
4f40c3d888
commit
bed73a3f43
4 changed files with 8 additions and 8 deletions
|
|
@ -262,8 +262,8 @@ FUNCTION(DOTNET_GET_DEPS _DN_PROJECT arguments)
|
|||
ENDIF()
|
||||
|
||||
IF(_DN_NETCOREAPP)
|
||||
SET(_DN_BUILD_OPTIONS -f netcoreapp2.0)
|
||||
SET(_DN_PACK_OPTIONS /p:TargetFrameworks=netcoreapp2.0)
|
||||
SET(_DN_BUILD_OPTIONS -f net8.0)
|
||||
SET(_DN_PACK_OPTIONS /p:TargetFrameworks=net8.0)
|
||||
ELSEIF(UNIX)
|
||||
# Unix builds default to netstandard2.0
|
||||
SET(_DN_BUILD_OPTIONS -f netstandard2.0)
|
||||
|
|
@ -384,7 +384,7 @@ FUNCTION(RUN_DOTNET DOTNET_PROJECT)
|
|||
COMMAND ${DOTNET_EXE} clean ${DOTNET_PROJPATH} ${DOTNET_BUILD_PROPERTIES}
|
||||
COMMAND ${DOTNET_EXE} build --no-restore ${DOTNET_PROJPATH} -c ${DOTNET_CONFIG} ${DOTNET_BUILD_PROPERTIES} ${DOTNET_BUILD_OPTIONS}
|
||||
# XXX tfm
|
||||
COMMAND ${DOTNET_EXE} ${DOTNET_OUTPUT_PATH}/netcoreapp2.0/${DOTNET_PROJNAME}.dll ${DOTNET_ARGUMENTS}
|
||||
COMMAND ${DOTNET_EXE} ${DOTNET_OUTPUT_PATH}/net8.0/${DOTNET_PROJNAME}.dll ${DOTNET_ARGUMENTS}
|
||||
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/${DOTNET_PROJNAME}.runtimestamp
|
||||
WORKING_DIRECTORY ${DOTNET_OUTPUT_PATH})
|
||||
ADD_CUSTOM_TARGET(
|
||||
|
|
@ -399,7 +399,7 @@ FUNCTION(TEST_DOTNET DOTNET_PROJECT)
|
|||
IF(WIN32)
|
||||
SET(test_framework_args "")
|
||||
ELSE()
|
||||
SET(test_framework_args -f netcoreapp2.0)
|
||||
SET(test_framework_args -f net8.0)
|
||||
ENDIF()
|
||||
|
||||
ADD_TEST(NAME ${DOTNET_PROJNAME}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue