Skip to content

Commit 7373846

Browse files
Known issue for net10-p4 MAUI build break (#9888)
1 parent c037a2a commit 7373846

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

release-notes/10.0/known-issues.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,22 @@ You may encounter some known issues, which may include workarounds, mitigations,
77
Starting in .NET 10 Preview 2, installing the ASP.NET Core Runtime Hosting Bundle for Windows on ARM64 when a earlier version of the hosting bundle was previously installed breaks IIS hosting. This causes problems for both IIS and IIS express on ARM64 machines after attempting to update the hosting bundle. Fortunately, **you can work around this issue by uninstalling all hosting bundles and reinstalling the .NET 10 Preview 2 hosting bundle.**
88

99
See [the GitHub issue](https://github.com/dotnet/aspnetcore/issues/60764) for more details.
10+
11+
### MAUI applications may fail to build in Visual Studio
12+
13+
MAUI applications built in Visual Studio or with `MSBuild.exe` may fail with an error like `C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.CSharp.CurrentVersion.targets(238,5): error : The application to execute does not exist: 'C:\Program Files\dotnet\sdk\10.0.100-preview.4.25258.110\Roslyn\binfx\csc.dll'`.
14+
15+
### Available Workaround
16+
17+
Add the following to a `Directory.Build.props` file that is imported in all MAUI projects, or directly in each affected MAUI project:
18+
19+
```xml
20+
<PropertyGroup Label="">
21+
<!-- Work around .NET 10-preview4 MAUI issue.
22+
Remove when building with .NET SDK 10.0.100-preview.5 or later that
23+
includes https://github.com/dotnet/roslyn/pull/78402 -->
24+
<RoslynCompilerType>FrameworkPackage</RoslynCompilerType>
25+
</PropertyGroup>
26+
```
27+
28+
The behavior will be **fixed in the .NET 10 preview 5** release. The workaround should be removed after that release.

0 commit comments

Comments
 (0)