You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release-notes/9.0/known-issues.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,27 @@ You may encounter the following known issues, which may include workarounds, mit
4
4
5
5
## .NET WPF
6
6
7
-
#### 1. Usage of incorrect types as DynamicResource
8
-
In earlier previews (or .NET 8 and before), applications that attempted to use a `DynamicResource` with incorrect types, and referenced the same from a library, would silently fail by swallowing the exception. However, with the introduction of DynamicResource optimization [here](https://github.com/dotnet/wpf/pull/5610), this behavior has changed. The same implementation will now result in a `XamlParseException` being thrown, potentially causing the application to crash.
7
+
### 1. Usage of incorrect types as DynamicResource
8
+
In earlier previews (or .NET 8 and before), applications that attempted to use a `DynamicResource` with incorrect types, and referenced the same from a library, would silently fail by swallowing the exception. However, with the introduction of DynamicResource optimization [here](https://github.com/dotnet/wpf/pull/5610), this behavior has changed.
9
+
The same implementation will now result in a `XamlParseException` being thrown, potentially causing the application to crash.
Developers can prevent this crash by updating the resource with the correct value types. However, for those who need to maintain the previous behavior, an **opt-out switch** is being provided in the .NET 9 RC1 release. This switch allows applications to revert to the unoptimized `DynamicResource` usage.
21
22
22
23
23
-
####2. Incorrect rendering of applications launched with dark theme
24
+
### 2. Incorrect rendering of applications launched with dark theme
24
25
Applications using library-based themes might encounter incorrect rendering of the dark theme due to the implementation of the `Fluent` theme. This could result in incorrect resource settings for windows, such as background and accent colors, which may appear transparent.
25
26
26
-
####Available Workaround:
27
+
### Available Workaround
27
28
This issue occurs only when starting the application with the dark theme enabled. To ensure correct rendering, the resources can be reloaded. This reloading process can be implemented by hooking into a window event, such as `ContentRendered`.
28
29
29
30
The implementation for the same would look something like this -
The behavior will be **fixed in .NET 9 RC1** release.
43
+
44
+
## .NET SDK
45
+
46
+
### .NET 9.0.100-RC.1 will fail when used with 17.11
47
+
48
+
There is an incompatible dependency between a file loaded from the SDK and the dependencies that Visual Studio includes.
49
+
50
+
`
51
+
NETSDK1060 Error reading assets file: Error loading lock file '...\obj\project.assets.json' : Could not load file or assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
52
+
`
53
+
54
+
This behavior will be **fixed in an upcoming Visual Studio 17.11.x** release
0 commit comments