-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET9 MAUI sample App build crash on C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7) #44919
Comments
@Redth @jonathanpeppers seen this before? |
I would guess this file is malformed?
But the error message doesn't contain the file path to easily check. You could handle |
My guess is it's related to: dotnet/maui#25832 |
I tried with I noticed the errors occurs on a randomly, if I launch successive I tried specific workload_id to install, all failed : Some more detail with this command |
`********************************************************************** PS C:\WINDOWS\system32> dotnet --info Environnement d'exécution : Charges de travail .NET installées : [aspire] [ios] [maccatalyst] [maui-windows] Configuré pour utiliser loose manifests lors de l’installation de nouveaux manifestes. Host: .NET SDKs installed: .NET runtimes installed: Other architectures found: Environment variables: global.json file: Learn more: Download .NET: |
Describe the bug
Impossible to build MAUI .NET9 default sample project in RELEASE for some (or all?) platforms.
Remark : it was working in DEBUG build (past 3 days) but today not working in DEBUG too!!
To Reproduce
Simply create a new MAUI .NET9 with the sample project checked.
Build in Release for windows/ios/android platforms.
Exception
Further technical details
Visual Studio 17.12.0 or Visual Studio 17.13.0.Preview 1
in case of some UTF8 etc... but it is clean and ANSI.
It seems to be more an internal issue!?
1>------ Build started: Project: LiDi.MobileApp, **Configuration: Release Any CPU** ------ 1>LiDi.MobileApp -> D:\Projects\LiDi\LiDi-master-net9\LiDi.MobileApp\bin\Release\net9.0-ios\iossimulator-x64\LiDi.MobileApp.dll 1>LiDi.MobileApp -> D:\Projects\LiDi\LiDi-master-net9\LiDi.MobileApp\bin\Release\net9.0-android\LiDi.MobileApp.dll 1>LiDi.MobileApp -> D:\Projects\LiDi\LiDi-master-net9\LiDi.MobileApp\bin\Release\net9.0-maccatalyst\maccatalyst-x64\LiDi.MobileApp.dll 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: The "ResolveRuntimePackAssets" task failed unexpectedly. 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1. 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at System.Xml.XmlTextReaderImpl.Throw(Exception e) 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos) 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options) 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at Microsoft.NET.Build.Tasks.ResolveRuntimePackAssets.AddRuntimePackAssetsFromManifest(List
1 runtimePackAssets, String runtimePackRoot, String runtimeListPath, ITaskItem runtimePack, Boolean runtimePackAlwaysCopyLocal, HashSet1 profiles) 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at Microsoft.NET.Build.Tasks.ResolveRuntimePackAssets.ExecuteCore() 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Execute() 1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(494,7): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() 1>Done building project "LiDi.MobileApp.csproj" -- FAILED. 1>Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink 1>Optimizing assemblies for size. This process might take a while.
The text was updated successfully, but these errors were encountered: