From 1d91a01e2505c8ab5e7f9db1c1eed8ff1f14b836 Mon Sep 17 00:00:00 2001 From: martincostello Date: Tue, 13 Feb 2024 22:00:03 +0000 Subject: [PATCH] Update to ASP.NET Core 9 preview 1 Update to preview 1 of ASP.NET Core 9. --- .vscode/launch.json | 2 +- .vsconfig | 2 +- README.md | 2 +- build.ps1 | 4 ---- global.json | 2 +- src/TodoApp/TodoApp.csproj | 6 +++--- startvscode.cmd | 2 +- tests/TodoApp.Tests/TodoApp.Tests.csproj | 6 +++--- 8 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 154f9ac8..617e9d71 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/src/TodoApp/bin/Debug/net8.0/TodoApp.dll", + "program": "${workspaceFolder}/src/TodoApp/bin/Debug/net9.0/TodoApp.dll", "args": [], "cwd": "${workspaceFolder}/src/TodoApp", "stopAtEntry": false, diff --git a/.vsconfig b/.vsconfig index 76104a4d..3ab89173 100644 --- a/.vsconfig +++ b/.vsconfig @@ -3,7 +3,7 @@ "components": [ "Microsoft.VisualStudio.Component.CoreEditor", "Microsoft.VisualStudio.Workload.CoreEditor", - "Microsoft.NetCore.Component.Runtime.8.0", + "Microsoft.NetCore.Component.Runtime.9.0", "Microsoft.NetCore.Component.SDK", "Microsoft.VisualStudio.Component.Roslyn.Compiler", "Microsoft.VisualStudio.Component.Roslyn.LanguageServices", diff --git a/README.md b/README.md index c130de69..d2376e66 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ with [User Secrets] instead. Compiling the application yourself requires Git and the [.NET SDK](https://www.microsoft.com/net/download/core "Download the .NET SDK") -to be installed (version `8.0.100` or later). +to be installed (version `9.0.100` or later). To build and test the application locally from a terminal/command-line, run the following set of commands: diff --git a/build.ps1 b/build.ps1 index 3ed0048b..7f678744 100755 --- a/build.ps1 +++ b/build.ps1 @@ -12,10 +12,6 @@ param( $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true" $env:NUGET_XMLDOC_MODE = "skip" -if ($null -eq $env:MSBUILDTERMINALLOGGER) { - $env:MSBUILDTERMINALLOGGER = "auto" -} - $Configuration = "Release" $ErrorActionPreference = "Stop" $ProgressPreference = "SilentlyContinue" diff --git a/global.json b/global.json index eba056a1..b207f0ea 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.201", + "version": "9.0.100-preview.1.24101.2", "allowPrerelease": false, "rollForward": "latestMajor" } diff --git a/src/TodoApp/TodoApp.csproj b/src/TodoApp/TodoApp.csproj index 6f55cdab..544552c5 100644 --- a/src/TodoApp/TodoApp.csproj +++ b/src/TodoApp/TodoApp.csproj @@ -2,16 +2,16 @@ true false - $(NoWarn);CA1050 + $(NoWarn);CA1050;CA1515 TodoApp - net8.0 + net9.0 true latest TodoApp - + diff --git a/startvscode.cmd b/startvscode.cmd index abec237b..45ea8f6d 100644 --- a/startvscode.cmd +++ b/startvscode.cmd @@ -11,7 +11,7 @@ SET DOTNET_ROOT(x86)=%~dp0.dotnetcli\x86 SET PATH=%DOTNET_ROOT%;%PATH% :: Sets the Target Framework for Visual Studio Code. -SET TARGET=net8.0 +SET TARGET=net9.0 SET FOLDER=%~1 diff --git a/tests/TodoApp.Tests/TodoApp.Tests.csproj b/tests/TodoApp.Tests/TodoApp.Tests.csproj index 61860e70..6b0a7129 100644 --- a/tests/TodoApp.Tests/TodoApp.Tests.csproj +++ b/tests/TodoApp.Tests/TodoApp.Tests.csproj @@ -1,9 +1,9 @@ false - $(NoWarn);CA1861 + $(NoWarn);CA1515;CA1861 TodoApp - net8.0 + net9.0 @@ -11,7 +11,7 @@ - +