Skip to content

System.ServiceModel not found when referencing a .net full dll in net core 2.0 preview #8222

@agonzalezm

Description

@agonzalezm

I have referenced a full .net dll in a net core 2.0 preview project but when i try to use one of their methods i get this exception. I tried to copy System.ServiceMode dll to project folder but didnt work. Is there any solution or workaround?

System.IO.FileNotFoundException occurred
HResult=0x80070002
Message=Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
Source=
StackTrace:
at VMware.Vim.VimClientImpl.Connect()
at VMware.Vim.VimClientImpl.Connect(String server, Nullable1 protocol, Nullable1 port)
at ConsoleApp2.Operations.b__8_0() in c:\users\documents\visual studio 2017\Projects\ConsoleApp2\Program.cs:line 47
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions