Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Error when try to publish it. #10

Open
qcmiao1998 opened this issue Feb 25, 2019 · 0 comments
Open

Error when try to publish it. #10

qcmiao1998 opened this issue Feb 25, 2019 · 0 comments

Comments

@qcmiao1998
Copy link

When I try to run dotnet publish -r win-x64 or run electronic build /target win, it shows the error below:

EXEC : error : Format of the executable (.exe) or library (.dll) is invalid. [D:\Visual Studio 2017\Projects\BlazorElectronExperiment.Sample\SampleApp\SampleApp.csproj]
     at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem, UInt16& dll_characteristics)
     at Mono.Cecil.PE.ImageReader.ReadImage()
     at Mono.Cecil.PE.ImageReader.ReadImage(Disposable`1 stream, String file_name)
     at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
     at Microsoft.AspNetCore.Blazor.Build.RuntimeDependenciesResolver.<>c.<ResolveRuntimeDependenciesCore>b__1_0(String a) in /_/src/Microsoft.AspNetCore.Blazor.Build/Core/RuntimeDependenciesResolver.cs:line 33
     at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()
     at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
     at Microsoft.AspNetCore.Blazor.Build.RuntimeDependenciesResolver.ResolveRuntimeDependenciesCore(String entryPoint, String[] applicationDependencies, String[] monoBclDirectories) in /_/src/Microsoft.AspNetCore.Blazor.Build/Core/RuntimeDependenciesResolver.cs:line 32
     at Microsoft.AspNetCore.Blazor.Build.Cli.Commands.ResolveRuntimeDependenciesCommand.<>c__DisplayClass0_0.<Command>b__0() in /_/src/Microsoft.AspNetCore.Blazor.Build/Cli/Commands/ResolveRuntimeDependenciesCommand.cs:line 44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant