Closed Barsonax closed 4 years ago
Yeah, the target framework in the package specs should be fixed. It's probably not critical, but important.
The ungrouped dependency specs are fine though according to the docs. Groups can be specified, but it's optional if they're the same across frameworks anyway. If we choose to do grouping anyway, we should probably go with a single group that doesn't specify a framework to indicate that it's the default. Might as well do that while we're at it.
Note: This only applies to .NET Framework packages (editor, editor plugins, launcher, backend), not PCL packages (core, core plugins, samples). A PCL packages framework folders would only change in the course of #573.
The ungrouped dependency specs are fine though according to the docs.
When you generate a nuspec with dotnet pack
it will always include the groups (even if there is just 1 group) with the corresponding targetframework. Nuget figures out the rest (such as compatibility). Might as well include . netframework 4.7.2.
The version without groups still works ofcourse but might get deprecated at some point.
net472
target framework folders instead of net45
target framework folders.net472
instead of net45
, both in the manager target framework and for framework-dependent content resolve.I implemented a fix for this on my fork of this repository. Since this is my first contribution to this repo, do you prefer doing an external review of my branch or is it preferred that I submit a PR and review through there?
Sorry for the long delay, I'm pretty short on time lately - a Pull Request is probably the best way to go about this 🙂 Better visibility to project contributors for review, and also a good starting point for collaborating on your feature branch as the situation permits.
Summary
Duality now targets .NET 4.7.2 but in the lib folder there is still a net45 map:![image](https://user-images.githubusercontent.com/19387223/62820788-bee2b700-bb69-11e9-8169-013998959a04.png)
I believe this should be changed to net472.
Also dependencies should be in a group (replace netstandard with netframework ofcourse):
And not like this:
Pretty sure the current package structure will confuse nuget as it thinks its still a net45 package and not a net472 package. You also get tons of warnings in visual studio:![image](https://user-images.githubusercontent.com/19387223/62820807-16812280-bb6a-11e9-8073-40c228dbf7ca.png)
I think we should fix this before proceeding with the nuget upgrade #740