0

I'm trying to find a vb.net method that returns the path to the directory where project files labelled as 'Data Files' are stored: which is valid for ClickOnce applications during development and after the app has been Published?

I've found 'ClickOnce: How to Dynamically Detect Data Directory Between Debug, Release, and Publish' dated 2006. It doesn't feel right. Surly Microsoft will have provided a more elegant solution during the past 11 years.

Thanks for your help,

Tod.

Visual Vincent
  • 18,045
  • 5
  • 28
  • 75
Tod Lewis
  • 36
  • 8
  • `Surly Microsoft will have provided a more elegant solution during the past 11 years` - I wouldn't get my hopes up. To me ClickOnce has always been a mess and I don't get why people (still) use it. :) – Visual Vincent Sep 09 '17 at 11:13
  • Thanks Vincent - for me it's because I know no better! I've fired up Visual Studio and it kinda leads you towards ClickOnce. As an amateur, the automatic versioning/updating mechanism is useful. What other methods could I use? – Tod Lewis Sep 10 '17 at 08:29
  • There's the regular [**Setup Project**](https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2017InstallerProjects) which lets you create an MSI installer. As for automatic versioning: https://stackoverflow.com/a/356694 (the post mentions VS 2008, but this works in any Visual Studio version) – Visual Vincent Sep 10 '17 at 14:26

0 Answers0