Repository navigation
[Suggestion] Support for multiple projects with deliverable output - #116
Conversation
Allows for multiple projects in the src folder, each can be released as a nuget package Nuget packaging now automatically infers dependencies based on paket settings.
* For dependencies between projects in the same solution, a nuget dependency to the generated package for the projects are added to the nuspec * For projects with Exe output type, All files in the relevant bin folder are added to the nuget package, no dependencies. Cause dealing with dependencies in a deploy situation is not really fun.
Changed how libdirs are resolved for generating API docs with the new bin folder hierarchy.
|
already looks much better. |
|
In a way, I quite like the simplicity of dropping everything in a single What do others think about this? /cc @forki @pblasucci @sergey-tihon ? |
|
I also like an approach with single The one drawback that I see is the case when you want to build >1 NuGet package from the repo. In this case you probably want to build binaries to each package to different directories. |
|
Personally, I'm a fan of the single Perhaps something that complicated is beyond the scope of Scaffold? After all, the original intent was to provide a quickly running, high-quality baseline. I always imagined some level of ad hoc tweaking would be done (esp. once you fall outside the typical use cases). |
|
For my current setup I enjoy some advantages from separate bin folders (particularly CI server download single sub proj output as zip), but I really don't have strong feelings about this anyway. The only practical issue here is to decide what files to put in what nuget package. In my opinion having multiple packages is not really a strange pattern. NancyFx does it, simple.data does it, the new Xunit does it: Core package and addition packages for different feature sets. The most important thing to me is to have a sensible default that can easily be tweaked. That way I can base my projects on scaffold, modify them, and later keep up to date by pulling in new changes. |
|
I'm happy to leave the decision to others here - though I'm a bit worried about the increasing complexity of ProjectScaffold... (Not that I would have any good solution to this.) EDIT That said, I see why this would be useful in some scenarios. I'm just not sure what is the best default (and how to best provide alternatives to the default). |
|
Now that Paket supports packing, I suppose quite a bit of the code here is redundant. If not, I am entering a infrastructure maintenance period this week, and I have time to have a go. |
|
I planned to do this, but I'd prefer if you could do it since we need more
|
Conflicts: build.template docs/tools/generate.template nuget/FSharp.ProjectTemplate.nuspec
|
Ok, then I will have a go. |
Conflicts: build.template nuget/FSharp.ProjectTemplate.nuspec paket.dependencies
|
You're right, its a case of windows guy running stuff on linux, forgetting cAsINg matters.. |
|
Is this again the API limit thing? |
|
Yep. But seems it's only happening on TravisCI
|
|
Ok, can you go through and give some feedback on this PR when you have the time? |
|
Any feedback on what is missing before this one can be merged? |
There was a problem hiding this comment.
nope, It's all in the Fake helper, so this one can go
|
can you please rebase and squash this? |
There was a problem hiding this comment.
how about making this a simple value. Like let binaries =
|
Regarding rebasing and squashing: Will rebase and squash break my own downstream projects (already based on the code in this PR) once this is merged and I pull changes from master |
|
ok then forget the rebase ;-) |
|
forgot a question mark there, it was genuinely meant as a question, as to what will happen to my downstream projects if I rebase? I don't know.. |
|
no. It's fine. please just correct the last two minor things. then I'll merge it. |
|
Minor stuff fixed. Don't understand quite why the travis build fails. |
|
Looks like the directory doesn't exist |
|
tries to find this directory:
Notise the home between src and bin |
|
weird. It seems directoryInfo "src"
|> subDirectories Is returning an extra sub directory: |
|
wow. sounds like an issue in FAKE. can you explicitly exlude it for now? |
|
Finally 🎉 |
|
Good work. Thanks |
[Suggestion] Support for multiple projects with deliverable output
Following up #101
Managed to clean up and simplify quite a bit.