New powershell cmdlet: Export-DatabaseDocumentation
I would like the option of creating my documentation outside of a database artifact. I would rather it not be embedded in a nuget or zip file with the deployment files. Currently the object created by New-DatabaseDocumentation can only be passed to New-DatabaseBuildArtifact. It would be great to just pass it to a new export cmdlet so it can be saved to disk.
-
Andy Cater commented
Sure I could extract the docs from the nuget or zip artifact but i don't want them in the artifact to begin with and I don't really want to mess around with this if it could be offered as part of the tool set. I was thinking this would easy for you to do which is why I am asking for it instead of hacking it to make it work how I want. Since you are already able to place the doco in a nuget or zip file most of your development work should already be done.
-
AdminRichard Macaskill (Admin, Redgate) commented
It's been a while but I'm pretty sure I've done this previously by having build step in TeamCity to unpack the nuget package to disk. Think it was something like this
https://stackoverflow.com/questions/16587291/extracting-nupkg-files-using-command-line
Let me know if this doesn't help and I'll see if I can find my old build definition.
-
Andy Cater commented
Yes but I want to run this on our corp build server and asking to install a desktop app on it will probably be hard. I am also not sure what kind license concerns there would be with doing this. Since you already have New-DatabaseDocumentation and other export cmdlets I was surprised to see this not already implemented.
-
@Andy - have you considered using the SQL Doc command line instead?