Skip to content
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

Unhandled Mono AssemblyResolutionException #10

Open
tycomo opened this issue Sep 18, 2019 · 5 comments
Open

Unhandled Mono AssemblyResolutionException #10

tycomo opened this issue Sep 18, 2019 · 5 comments

Comments

@tycomo
Copy link

tycomo commented Sep 18, 2019

Hi there,

I am attempting to build my application and getting the following error with the complete app not being outputted into the dist folder:

Unhandled Exception: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Windows.Forms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
   at Driver.Import(String ra, AssemblyKind kind)
   at Driver.Run(String[] args)
   at Driver.Main(String[] args)
	WasmForm	C:\Users\myuser\.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets	13	

This is using version 1.0.19137.60 and .NET Core 2.1. If there is any additional information I can provide please let me know.

@jjcolumb
Copy link

Same Issue here

@roozbehid
Copy link
Owner

Does the samples work for you?
I retested it and it seems to be working fine...

@jjcolumb
Copy link

jjcolumb commented Oct 8, 2019

Capture

@JayArrowz
Copy link

JayArrowz commented Nov 23, 2019

Workaround in csproj:

    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

@HowardRicketts1
Copy link

Hi

While adding the true got me passed the 'cant resolve assembly: 'System.Windows.Forms' I simply came to another unhandled exception:
13,5): error : Unhandled Exception: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Formats.Asn1, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error : at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error : at Driver.Import(String ra, AssemblyKind kind)
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error : at Driver.Import(String ra, AssemblyKind kind)
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error : at Driver.Import(String ra, AssemblyKind kind)
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error : at Driver.Import(String ra, AssemblyKind kind)
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error : at Driver.Run(String[] args)
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error : at Driver.Main(String[] args)
1> C:\Users\howar_000.nuget\packages\winforms.wasm\1.0.19137.60\build\netstandard2.0\Winforms.Wasm.targets(13,5): error :
1> -----BuildWasm Ended Successfully------
1> Done executing task "BuildWasmTask" -- FAILED.

Any idea how to get past this problem?
Howard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants