dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

Enable building on Linux #461

Closed AArnott closed 4 years ago

AArnott commented 4 years ago

It would be nice if we could build this repo on non-Windows operating systems.

The UAP target is giving us trouble, but the irony is we don't need anything special for that target. We just need the TFM to show up in the nuget package and we need it to change which .cs files are included in the compilation. We might be able to hack a UAP target but without the UAP .targets imports so it builds anywhere. See https://github.com/dotnet/sdk/issues/11753#issuecomment-643384066

AArnott commented 4 years ago

I guess we'd want to run tests after building anyway, and that would of course need to run on Windows. So, not really a great goal.