Updating data files

Hi all,

I have a winforms app that I want to deploy via clickonce, largely because there are 3 large xml data files that will be periodically updated. These files are lookup only, and WILL NOT change on the client.
First, I'm running the RTM of visual studio, not beta or RC in case that makes a difference.
Now, when data is changed in a table on our sql server db, a trigger will force these xml files to be recreated, and then the files must be re-deployed so that the client receives the updated lookups.
I've looked at two ways to do this... Mage, and using MSBuild so that the trigger can just call a batch and have everything done. When using MSBuild, everything works great, and i get the updated data files, however, EVERYTHING, not just the changed data file is coming across. When I use Mage, NOTHING comes across and the application continues on it's merry way as though nothing has changed.
Here are my two commands:
MSBUILD:
msbuild /target:publish /property:ApplicationRevision=%1 /verbosity:q

..if I don't change the revision number, I don't get the updates with MSBuild. The revision number seems key here.

MAGE:

mage -Update OMSClient\OMSClient.exe.manifest
mage -Sign OMSClient\OMSClient.exe.manifest -CertFile OMSClient\cert.pfx -Password "blah"

mage -Update OMSClient\OMSClient.application -Name "OMSClient" -AppManifest OMSClient\OMSClient.exe.manifest -AppCodeBase OMSClient\OMSClient.exe.manifest -Install true -ProviderUrl "insertURl"  -MinVersion none -Version %1
mage -Sign OMSClient\OMSClient.application -CertFile OMSClient\cert.pfx -Password "blah"

... the ProviderURL is set correct in my script as is the password.

Any tips/thoughts Thanks!




Answer this question

Updating data files

  • Updating data files