Skip to content

Commit a6992e8

Browse files
authored
Update dotnet-8.md (#1896)
1 parent 63ba54d commit a6992e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/whats-new/dotnet-8.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ For more information, see [.NET 8 Performance Improvements in .NET MAUI](https:/
152152

153153
To upgrade your projects from .NET 7 to .NET 8, install .NET 8 and the .NET MAUI workload with [Visual Studio 17.8+](https://visualstudio.microsoft.com/vs/), or with the [standalone installer](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) and the `dotnet workload install maui` command.
154154

155-
Then, open your *.csproj* file and change the Target Framework Monikers (TFMs) from 7 to 8. The following example shows the TFMs for a .NET 7 project:
155+
Then, open your *.csproj* file and change the Target Framework Monikers (TFMs) from 7 to 8. If you're using a TFM such as `net7.0-ios13.6` be sure to match the platform version or remove it entirely. The following example shows the TFMs for a .NET 7 project:
156156

157157
```xml
158158
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst;net7.0-tizen</TargetFrameworks>
@@ -191,6 +191,8 @@ This can be useful when using ad-hoc builds from the [nightly feed](https://gith
191191

192192
In addition, the `$(ApplicationIdGuid)` build property can be removed from your *.csproj* file in .NET 8. For more information, see [Behavior changes](#behavior-changes).
193193

194+
Prior to building your upgraded app for the first time, delete the `bin` and `obj` folders.
195+
194196
> [!NOTE]
195197
> The project template for a .NET MAUI app in .NET 8 enables the nullable context for the project with the `$(Nullable)` build property. For more information, see [Nullable](/dotnet/csharp/language-reference/compiler-options/language#nullable).
196198

0 commit comments

Comments
 (0)