简体   繁体   中英

A project can't reference another project of the same solution - the method or operation not implemented

I would like to use some of methods from my c# console app project ("EPS logic") in UWP project ("EPS view") in same solution.

I tried that to add reference- Calling methods from different Projects in one Solution .

But when I tried to I got two errors:

Cannot add reference to project "EPS Logic"

and

The method or operation is not implemented.

Additionaly I got some warnings like this about all classes from my EPS logic project:

warning DV2002: Class 'SequenceMaker' is not mapped to any Dependency Validation diagram

But I don't know if it's part of that problem. Should I not try to add anything to UWP project in first place?

You will not be able to reference a console app from a UWP project; they are not compatible! If it is really just logic, you should create a .NET Standard class library or a UWP class library and put your logic there. You should be able to reference that just fine.

If you are wanting a console app and a UWP app with shared logic, split that logic out into a .NET Standard class library, then reference that from both the console and UWP 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