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

add facility for copying external library version to xll version #114

Merged
merged 1 commit into from
Feb 21, 2017

Conversation

rosecodym
Copy link
Contributor

I had a similar problem to this: https://groups.google.com/forum/#!topic/exceldna/HlVeZUZNcqM Basically, I wanted the .xll generated by ExcelDnaPack to have a version number other than the one from the template .xll. VerPatch (linked from that discussion) worked, but actually figuring out how to integrate it into my workflow was tricky. Patching ExcelDnaPack turned out to be easier.

You can now mark ExternalLibrary elements in the .dna file with UseVersionAsOutputVersion="true" to copy their version resource into the output .xll. If you specify this for more than one ExternalLibrary only the first will be used, and a warning will be emitted. If the version copying fails for some reason (like the source file doesn't have it, e.g. if it's a .dna file), then a warning is emitted.

This seemed like the most straightforward way to do this, but I'm totally open to suggestions for refinements or things I've missed.

You can now mark ExternalLibrary elements in the .dna file with UseVersionAsOutputVersion="true" to copy their version resource into the output .xll. If you specify this for more than one ExternalLibrary only the first will be used, and a warning will be emitted. If the version copying fails for some reason (like the source file doesn't have it, e.g. if it's a .dna file), then a warning is emitted.
@CLAassistant
Copy link

CLAassistant commented Feb 17, 2017

CLA assistant check
All committers have signed the CLA.

@augustoproiete
Copy link
Member

Wow! This looks great! Thank you @rosecodym!

@govert govert merged commit afd4802 into Excel-DNA:master Feb 21, 2017
@govert
Copy link
Member

govert commented Feb 21, 2017

@rosecodym Cool, I've merged it in - thank you very much!

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

4 participants