0

I have a WPF application under the .Net framework 4.5 and a web app under the DNX Core. I want to share some code between those two apps.

I tried to create a "portable classe library" ... with no result. I tried to do it with a nuget package ... with no result (and too complex to dispatch modifications)

Thanks for your propositions

Tom
  • 38
  • 7

1 Answers1

0

Normally when creating a portable class Library, you can be compatible with .NET 4.5 and Dnx project. The only problem is that .Net 4.5 relies on csproj when your Dnx project relies on project.json.

Thus you won't have it out of the box, check out your options here: What are my options for sharing code between DNX / ASP.NET 5 projects (project.json / xproj) and other C# projects (csproj) within a single solution?

Note that this solution will probably not work in the next version of dotnet core if they finally remove the project.json...

Community
  • 1
  • 1
Ouarzy
  • 3,015
  • 1
  • 16
  • 19