csharp-language-server
csharp-language-server copied to clipboard
errors when run app built x86 in x64 window
if i build x64, i can using it without bug, i used --self-contained in x86
csharp-ls: serverEventLoop: crashed with System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid.
Could not load file or assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid.
Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeAssembly.get_DefinedTypes()
at System.Composition.Hosting.ContainerConfiguration.<>c.<WithAssemblies>b__16_0(Assembly a)
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(IEnumerable
1 types, AttributedModelProvider attributeContext)
at System.Composition.Hosting.ContainerConfiguration.CreateContainer()
at Microsoft.CodeAnalysis.Host.Mef.MefHostServices.Create(IEnumerable1 assemblies) at Microsoft.CodeAnalysis.Host.Mef.MSBuildMefHostServices.get_DefaultServices() at CSharpLanguageServer.RoslynHelpers.tryLoadSolutionFromProjectFiles@963.Invoke(Unit unitVar) in D:\DOWNLOAD new\csharp-language-server-0.8.0\csharp-language-server-0.8.0\src\CSharpLanguageServer\RoslynHelpers.fs:line 963 at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation
1 ctxt, TResult result1, FSharpFunc2 part2) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510 at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc
2 firstAction) in D:\a_work\1\s\src\FSharp.Core\async.fs:line 112
System.BadImageFormatException: Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.Framework.dll'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.Framework.dll'
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyBinder, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Microsoft.Build.Locator.MSBuildLocator.<>c__DisplayClass15_0.<RegisterMSBuildPath>g__TryLoadAssembly|3(AssemblyName assemblyName)
at Microsoft.Build.Locator.MSBuildLocator.<>c__DisplayClass15_0.<RegisterMSBuildPath>b__2(AssemblyLoadContext _, AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.GetFirstResolvedAssemblyFromResolvingEvent(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
System.BadImageFormatException: Could not load file or assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyBinder, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Microsoft.Build.Locator.MSBuildLocator.<>c__DisplayClass15_0.<RegisterMSBuildPath>g__TryLoadAssembly|3(AssemblyName assemblyName)
at Microsoft.Build.Locator.MSBuildLocator.<>c__DisplayClass15_0.<RegisterMSBuildPath>b__2(AssemblyLoadContext _, AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.GetFirstResolvedAssemblyFromResolvingEvent(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'
System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'
System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'
System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'
System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'. Format of the executable (.exe) or library (.dll) is invalid.
File name: 'C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\Microsoft.Build.dll'