dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.71k stars 1.07k forks source link

`PublishAot` fail with `error: assembler label '' can not be undefined` #34474

Closed Coloryr closed 1 year ago

Coloryr commented 1 year ago

Describe the bug

PublishAOT fail.

To Reproduce

4>D:\Microsoft Visual Studio 2022 Preview\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,IL2121,1701,1702,2008 /fullpaths /nostdlib+ /platform:AnyCPU /errorreport:prompt /warn:7 /define:TRACE;RELEASE;NET;NET7_0;NETCOREAPP;NET5_0_OR_GREATER;NET6_0_OR_GREATER;NET7_0_OR_GREATER;NETCOREAPP1_0_OR_GREATER;NETCOREAPP1_1_OR_GREATER;NETCOREAPP2_0_OR_GREATER;NETCOREAPP2_1_OR_GREATER;NETCOREAPP2_2_OR_GREATER;NETCOREAPP3_0_OR_GREATER;NETCOREAPP3_1_OR_GREATER /errorendlocation /preferreduilang:zh-CN /highentropyva+ /nullable:enable /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.Base.dll /reference:C:\Users\40206\.nuget\packages\avalonia.controls.colorpicker\11.0.2\lib\net6.0\Avalonia.Controls.ColorPicker.dll /reference:C:\Users\40206\.nuget\packages\avalonia.controls.datagrid\11.0.2\lib\net6.0\Avalonia.Controls.DataGrid.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.Controls.dll /reference:C:\Users\40206\.nuget\packages\avalonia.controls.treedatagrid\11.0.0\lib\net5.0\Avalonia.Controls.TreeDataGrid.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.DesignerSupport.dll /reference:C:\Users\40206\.nuget\packages\avalonia.desktop\11.0.2\lib\net6.0\Avalonia.Desktop.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.Dialogs.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.dll /reference:C:\Users\40206\.nuget\packages\avalonia.freedesktop\11.0.2\lib\net6.0\Avalonia.FreeDesktop.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.Markup.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.Markup.Xaml.dll /reference:C:\Users\40206\.nuget\packages\avalonia.markup.xaml.loader\11.0.2\lib\net6.0\Avalonia.Markup.Xaml.Loader.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.Metal.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.MicroCom.dll /reference:C:\Users\40206\.nuget\packages\avalonia.native\11.0.2\lib\net6.0\Avalonia.Native.dll /reference:C:\Users\40206\.nuget\packages\avalonia\11.0.2\ref\net6.0\Avalonia.OpenGL.dll /reference:C:\Users\40206\.nuget\packages\avalonia.remote.protocol\11.0.2\lib\net6.0\Avalonia.Remote.Protocol.dll /reference:C:\Users\40206\.nuget\packages\avalonia.skia\11.0.2\lib\net6.0\Avalonia.Skia.dll /reference:C:\Users\40206\.nuget\packages\avalonia.themes.fluent\11.0.2\lib\net6.0\Avalonia.Themes.Fluent.dll /reference:C:\Users\40206\.nuget\packages\avalonia.themes.simple\11.0.2\lib\net6.0\Avalonia.Themes.Simple.dll /reference:C:\Users\40206\.nuget\packages\avalonia.win32\11.0.2\lib\net6.0\Avalonia.Win32.dll /reference:C:\Users\40206\.nuget\packages\avalonia.x11\11.0.2\lib\net6.0\Avalonia.X11.dll /reference:C:\Users\40206\.nuget\packages\avalonia.avaloniaedit\11.0.1\lib\netstandard2.0\AvaloniaEdit.dll /reference:E:\code\ColorMC\src\ColorMC.Core\obj\Release\net7.0\ref\ColorMC.Core.dll /reference:E:\code\ColorMC\src\ColorMC.Gui\obj\Release\net7.0\ref\ColorMC.Gui.dll /reference:C:\Users\40206\.nuget\packages\communitytoolkit.mvvm\8.2.1\lib\net6.0\CommunityToolkit.Mvvm.dll /reference:C:\Users\40206\.nuget\packages\esprima\3.0.0-rc-03\lib\netstandard2.1\Esprima.dll /reference:C:\Users\40206\.nuget\packages\harfbuzzsharp\2.8.2.3\lib\net6.0\HarfBuzzSharp.dll /reference:C:\Users\40206\.nuget\packages\heijden.dns.portable\2.0.19\lib\netstandard1.3\Heijden.Dns.Portable.dll /reference:C:\Users\40206\.nuget\packages\htmlagilitypack\1.11.51\lib\netstandard2.0\HtmlAgilityPack.dll /reference:C:\Users\40206\.nuget\packages\sharpziplib\1.4.2\lib\net6.0\ICSharpCode.SharpZipLib.dll /reference:C:\Users\40206\.nuget\packages\jint\3.0.0-beta-2050\lib\net6.0\Jint.dll /reference:E:\code\ColorMC\Live2DCSharpSDK\Live2DCSharpSDK.App\obj\Release\net7.0\ref\Live2DCSharpSDK.App.dll /reference:E:\code\ColorMC\Live2DCSharpSDK\Live2DCSharpSDK.Framework\obj\Release\net7.0\ref\Live2DCSharpSDK.Framework.dll /reference:C:\Users\40206\.nuget\packages\microcom.runtime\0.11.0\lib\net5.0\MicroCom.Runtime.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\Microsoft.CSharp.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\Microsoft.VisualBasic.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\Microsoft.VisualBasic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\Microsoft.Win32.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\Microsoft.Win32.Registry.dll" /reference:C:\Users\40206\.nuget\packages\microsoft.win32.systemevents\6.0.0\lib\net6.0\Microsoft.Win32.SystemEvents.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\mscorlib.dll" /reference:C:\Users\40206\.nuget\packages\naudio.core\2.1.0\lib\netstandard2.0\NAudio.Core.dll /reference:C:\Users\40206\.nuget\packages\naudio.winmm\2.1.0\lib\netstandard2.0\NAudio.WinMM.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\netstandard.dll" /reference:C:\Users\40206\.nuget\packages\newtonsoft.json\13.0.3\lib\net6.0\Newtonsoft.Json.dll /reference:C:\Users\40206\.nuget\packages\opentk.core\4.7.7\lib\netstandard2.1\OpenTK.Core.dll /reference:C:\Users\40206\.nuget\packages\opentk.mathematics\4.7.7\lib\netcoreapp3.1\OpenTK.Mathematics.dll /reference:C:\Users\40206\.nuget\packages\opentk.openal\4.7.7\lib\netcoreapp3.1\OpenTK.OpenAL.dll /reference:C:\Users\40206\.nuget\packages\sixlabors.fonts\1.0.0-beta18\lib\netcoreapp3.1\SixLabors.Fonts.dll /reference:C:\Users\40206\.nuget\packages\sixlabors.imagesharp\3.0.1\lib\net6.0\SixLabors.ImageSharp.dll /reference:C:\Users\40206\.nuget\packages\sixlabors.imagesharp.drawing\1.0.0-beta15\lib\netcoreapp3.1\SixLabors.ImageSharp.Drawing.dll /reference:C:\Users\40206\.nuget\packages\skiasharp\2.88.3\lib\net6.0\SkiaSharp.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.AppContext.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Buffers.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Collections.Concurrent.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Collections.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Collections.Immutable.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Collections.NonGeneric.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Collections.Specialized.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ComponentModel.Annotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ComponentModel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ComponentModel.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ComponentModel.TypeConverter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Configuration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Console.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Data.Common.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Data.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.Debug.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.DiagnosticSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.FileVersionInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.Process.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.StackTrace.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.Tools.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.TraceSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.dll" /reference:C:\Users\40206\.nuget\packages\system.drawing.common\6.0.0\lib\net6.0\System.Drawing.Common.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Drawing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Drawing.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Dynamic.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Formats.Asn1.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Formats.Tar.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Globalization.Calendars.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Globalization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Globalization.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.Compression.Brotli.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.Compression.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.Compression.ZipFile.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.FileSystem.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.FileSystem.DriveInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.FileSystem.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.FileSystem.Watcher.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.IsolatedStorage.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.MemoryMappedFiles.dll" /reference:C:\Users\40206\.nuget\packages\system.io.pipelines\6.0.0\lib\net6.0\System.IO.Pipelines.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.Pipes.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.Pipes.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.IO.UnmanagedMemoryStream.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Linq.Expressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Linq.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Linq.Queryable.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Memory.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Http.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Http.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.HttpListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Mail.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.NameResolution.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.NetworkInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Ping.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Quic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Requests.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.ServicePoint.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.Sockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.WebClient.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.WebHeaderCollection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.WebProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.WebSockets.Client.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Net.WebSockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Numerics.Vectors.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ObjectModel.dll" /reference:C:\Users\40206\.nuget\packages\system.reactive\5.0.0\lib\net5.0\System.Reactive.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.DispatchProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.Emit.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.Metadata.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Reflection.TypeExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Resources.Reader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Resources.ResourceManager.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Resources.Writer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.CompilerServices.Unsafe.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Handles.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.InteropServices.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.InteropServices.JavaScript.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.InteropServices.RuntimeInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Intrinsics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Loader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Serialization.Formatters.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Claims.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.Algorithms.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.Cng.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.Csp.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.OpenSsl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Cryptography.X509Certificates.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Principal.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.Principal.Windows.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Security.SecureString.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ServiceModel.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ServiceProcess.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Text.Encoding.CodePages.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Text.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Text.Encoding.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Text.Encodings.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Text.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Text.RegularExpressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Channels.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Overlapped.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Tasks.Dataflow.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Tasks.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Tasks.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Thread.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.ThreadPool.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Threading.Timer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Transactions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Transactions.Local.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.ValueTuple.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Web.HttpUtility.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Windows.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.XDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.XmlDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.XmlSerializer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.XPath.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\System.Xml.XPath.XDocument.dll" /reference:C:\Users\40206\.nuget\packages\tmds.dbus.protocol\0.15.0\lib\net6.0\Tmds.DBus.Protocol.dll /reference:C:\Users\40206\.nuget\packages\tomlyn\0.16.2\lib\net6.0\Tomlyn.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\ref\net7.0\WindowsBase.dll" /debug- /debug:portable /filealign:512 /optimize+ /out:obj\Release\net7.0\win-x64\ColorMC.Launcher.dll /refout:obj\Release\net7.0\win-x64\refint\ColorMC.Launcher.dll /resource:Mp3\sfd.temp,ColorMC.Launcher.Mp3.sfd.temp /resource:Resources\MiSans-Normal.ttf,ColorMC.Launcher.Resources.MiSans-Normal.ttf /target:winexe /warnaserror- /utf8output /win32icon:icon.ico /deterministic+ /langversion:11.0 /analyzerconfig:E:\code\ColorMC\src\.editorconfig /analyzerconfig:obj\Release\net7.0\win-x64\ColorMC.Launcher.GeneratedMSBuildEditorConfig.editorconfig /analyzerconfig:"C:\Program Files\dotnet\sdk\7.0.400-preview.23330.10\Sdks\Microsoft.NET.Sdk\analyzers\build\config\analysislevel_7_default.editorconfig" /analyzer:"C:\Program Files\dotnet\sdk\7.0.400-preview.23330.10\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll" /analyzer:"C:\Program Files\dotnet\sdk\7.0.400-preview.23330.10\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.NetAnalyzers.dll" /analyzer:"C:\Program Files\dotnet\sdk\7.0.400-preview.23330.10\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\ILLink.CodeFixProvider.dll" /analyzer:"C:\Program Files\dotnet\sdk\7.0.400-preview.23330.10\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\ILLink.RoslynAnalyzer.dll" /analyzer:C:\Users\40206\.nuget\packages\avalonia\11.0.2\analyzers\dotnet\cs\Avalonia.Analyzers.dll /analyzer:C:\Users\40206\.nuget\packages\avalonia\11.0.2\analyzers\dotnet\cs\Avalonia.Generators.dll /analyzer:C:\Users\40206\.nuget\packages\communitytoolkit.mvvm\8.2.1\analyzers\dotnet\roslyn4.3\cs\CommunityToolkit.Mvvm.CodeFixers.dll /analyzer:C:\Users\40206\.nuget\packages\communitytoolkit.mvvm\8.2.1\analyzers\dotnet\roslyn4.3\cs\CommunityToolkit.Mvvm.SourceGenerators.dll /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\analyzers/dotnet/cs/Microsoft.Interop.JavaScript.JSImportGenerator.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\analyzers/dotnet/cs/Microsoft.Interop.LibraryImportGenerator.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\analyzers/dotnet/cs/Microsoft.Interop.SourceGeneration.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\analyzers/dotnet/cs/System.Text.Json.SourceGeneration.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.8\analyzers/dotnet/cs/System.Text.RegularExpressions.Generator.dll" Program.cs "obj\Release\net7.0\win-x64\.NETCoreApp,Version=v7.0.AssemblyAttributes.cs" obj\Release\net7.0\win-x64\ColorMC.Launcher.AssemblyInfo.cs /warnaserror+:NU1605,SYSLIB0011
4>ColorMC.Launcher -> E:\code\ColorMC\src\ColorMC.Launcher\bin\Release\net7.0\win-x64\ColorMC.Launcher.dll
4>"C:\Program Files\dotnet\sdk\7.0.400-preview.23330.10\Sdks\Microsoft.DotNet.ILCompiler\build\findvcvarsall.bat" x64
4>Generating native code
4>"C:\Users\40206\.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\7.0.8\tools\\ilc" @"obj\Release\net7.0\win-x64\native\ColorMC.Launcher.ilc.rsp"

The .pubxml file

<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
  <PropertyGroup>
    <Configuration>Release</Configuration>
    <Platform>Any CPU</Platform>
    <PublishDir>..\build_out\net7.0\win-aot\</PublishDir>
    <PublishProtocol>FileSystem</PublishProtocol>
    <_TargetId>Folder</_TargetId>
    <TargetFramework>net7.0</TargetFramework>
    <RuntimeIdentifier>win-x64</RuntimeIdentifier>
    <PublishReadyToRunComposite>true</PublishReadyToRunComposite>
    <SelfContained>true</SelfContained>
    <PublishReadyToRun>false</PublishReadyToRun>
    <TrimMode>partial</TrimMode>
    <PublishTrimmed>true</PublishTrimmed>
      <PublishAot>true</PublishAot>
  </PropertyGroup>
</Project>

Exceptions (if any)

......
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4><unknown>:0: error: assembler label '' can not be undefined
4>Arithmetic operation resulted in an overflow.
4>System.OverflowException: Arithmetic operation resulted in an overflow.
4>   at ILCompiler.DependencyAnalysis.InterfaceDispatchMapNode.EmitDispatchMap(ObjectDataBuilder&, NodeFactory) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/InterfaceDispatchMapNode.cs:line 142
4>   at ILCompiler.DependencyAnalysis.InterfaceDispatchMapNode.GetData(NodeFactory, Boolean ) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/InterfaceDispatchMapNode.cs:line 313
4>   at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String, IReadOnlyCollection`1, NodeFactory, ObjectWritingOptions, IObjectDumper, Logger) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs:line 1018
4>   at ILCompiler.RyuJitCompilation.CompileInternal(String, ObjectDumper) in /_/src/coreclr/tools/aot/ILCompiler.RyuJit/Compiler/RyuJitCompilation.cs:line 103
4>   at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String, ObjectDumper) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs:line 528
4>   at ILCompiler.Program.Run(String[]) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 958
4>   at ILCompiler.Program.Main(String[]) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 1150
4>命令“"C:\Users\40206\.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\7.0.8\tools\\ilc" @"obj\Release\net7.0\win-x64\native\ColorMC.Launcher.ilc.rsp"”已退出,代码为 1。
========== 生成: 3 成功,0 失败,2 最新,0 已跳过 ==========
========= 生成 开始于 14:49,并花费了 04:37.157 分钟 ==========
========== 发布: 0 个成功,1 个失败,0 个已跳过 ==========
========= 发布 开始于 14:49,并花费了 04:37.157 分钟 ==========

Further technical details

Coloryr commented 1 year ago

Can build with net8