1

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?

1 Answers1

0

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.

shawnseanshaun
  • 1,071
  • 1
  • 13
  • 25
  • 1
    I did exactly that - my solution has now: logic in .NET Standard class, view in UWP project, and additional console project for other tests - and it works! Thank you! – Iamwrongsooften Apr 22 '20 at 10:47