Change .xla File with MSBuild

后端 未结 3 1657
离开以前
离开以前 2021-01-13 20:54

I\'m trying to create a build script for my current project, which includes an Excel Add-in. The Add-in contains a VBProject with a file modGlobal with a variable version_N

3条回答
  •  没有蜡笔的小新
    2021-01-13 21:49

    I'm not 100% sure how to do exactly what you have requested. But guessing the goal you have in mind there are a few possibilities.

    1) Make part (or all) of your Globals a separate text file that is distributed with the .XLA I would use this for external references such as the version of the rest of your app. Write this at build time and distribute, and read on the load of the XLA.

    2) I'm guessing your writing the version of the main component (ie: the non XLA part) of your application. If this is tru why store this in your XLA? Why not have the main part of the app allow certain version of the XLA to work. Version 1.1 of the main app could accept calls from Version 7.1 - 8.9 of the XLA.

    3) If you are just looking to update the XLA so it gets included in your version control system or similar (i'm guessing here) maybe just touch the file so it looks like it changed.

    If it's the version of the rest of the app that you are controlling i'd just stick it in a text file and distribute that along with the XLA.

提交回复
热议问题