bomsi / dnmm

MIT License
0 stars 0 forks source link

add alternative win32 library, reference trianlgelib as nuget package #4

Closed mlaskus closed 7 years ago

mlaskus commented 7 years ago

I got it to work.

The trick was to reference the TriangleLib using nuget, instead of as a project reference.

I also created an alternative version of the win32 lib, using the new project format, it makes is easier to hook everything up and you get to use the same tooling for everything.

As an off handed comment, I think this is the wrong approach to doing cross-targeting. There is no need to manually load dlls like this. We can target the application to be built against multiple target frameworks, with a different set of dependencies and then use compile time checks during application composition.

mlaskus commented 7 years ago

I did not push the nuget package to nuget, make sure you're on the latest version of dotnet tooling available, that's 1.1.0.

Then run dotnet pack in the TriangleLib folder and put the nupkg in some directory that you've configured as a nuget repository.