.NET Core 3.0 WPF "Copy Local" Assembly Issue

202 Views Asked by At

I've switched my current WPF application to .NET Core 3.0. Everything works fine, except one thing! I added a project reference to my app, and set the "Copy Local" property to "No" (I want to use it as embedded). And now, my application is compiling, seems to be running, than stop. I created a new .NET Core 3.0 WPF project, linked only one also new project, set the reference and the Copy Local to No, and it is the same.

Is it a bug or need some extra parameter in the project file? Any idea?

Thanks, Zoltan

1

There are 1 best solutions below

0
On

@mm8, trust me, it has sense. :) But never mind, I solved my problem. I replaced the ProjectReference with simple Reference + EmbeddedResource to the dll + AssemblyResolve, and it worked like in the .NET Framework project before.