Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet: support building symbol+source packages without project file #450

Merged
merged 1 commit into from Jun 2, 2014

Conversation

cdrnet
Copy link
Member

@cdrnet cdrnet commented Jun 1, 2014

NuGet supports building symbol/source packages automatically when specifying the project file. However, it is also possible to build such packages manually without a project file but instead a nuspec file, where the symbols and sources are specified explicitly. To my understanding this second approach without a project file is not currently supported with Fake.

The default behavior is unchanged: symbol packages are built if and only if a project file is provided (in this case we generate, as before, first both packages with the project file, then overwrite the normal package using the generated nuspec). If symbol packages should be built with the nuspec file, then specify p.SymbolPackage = NugetSymbolPackage.Nuspec.

I'm not very happy with this design, but it was the best I came up with that does not break existing behavior and does not require introducing a whole new set of NuGetXY-like functions. I happily update the PR if someone has a better idea. Thanks.

NuGet supports building symbol/source packages automatically when
specifying the project file. However, it is also possible to build
such packages manually without a project file but instead a nuspec file,
where the symbols and sources are specified explicitly.

The default behavior is unchanged: symbol packages are built if and only
if a project file is provided (in this case we generate, as before, first
both packages with the project file, then overwrite the normal package
using the generated nuspec). If symbol packages should be built with the
nuspec file, then specify p.Symbols = NugetSymbols.Nuspec.
@forki
Copy link
Member

forki commented Jun 2, 2014

@shiftkey would this work for you too?

@shiftkey
Copy link
Contributor

shiftkey commented Jun 2, 2014

@forki oh man, it just might. Happy to review and test it out if you can wait a few days (currently at a conference)

forki added a commit that referenced this pull request Jun 2, 2014
NuGet: support building symbol+source packages without project file
@forki forki merged commit 6ce571c into fsprojects:master Jun 2, 2014
@cdrnet
Copy link
Member Author

cdrnet commented Jun 2, 2014

Thanks!

@cdrnet cdrnet deleted the nuget-symbolsource branch June 2, 2014 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants