简体   繁体   中英

Add reference .NET Framework project to .NET Core project

I have a question about possibilities to add .NET Framework Project to .NET Core project. At my solution, I have main application in .NET Core and i want to extand it by existig own .NET Framework project. I don't have for now any idea how to do this, but I need it. Now i do WCF with which I connect from Core project, but better for my is added to Core by reference. If I add project by reference, I get exception...

Anyone can help me? Thanks

@edit

Could not load file or assembly 'App.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. An attempt was made to load the program in an incorrect format.

.NET Framework 4 .NET Core 2.1

I think you're having a 32-bit / 64-bit conflict. You are somehow missing "platform target" dropdown in project-->properties-->build . Value should be same for both the projects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM