1

I have a windows forms application through which I am running SSIS packages. I have created SSIS packages and placed .dtsx files in a folder.

Now while I am deploying my solution using click one, how do I include these as application files?

Currently the project publish properties does not show these files even if I include it in my solution.

I cannot include these files as a resource file, because based on the user selection I will be selecting a specific .dtsx file say, entityname_targetname.dtsx as path and file name. Because DTS.Application.LoadPAckage method expects a file name and not a resource name.

  • Refer to the solution in the link below: https://stackoverflow.com/questions/64983717/c-sharp-publish-exe-of-windows-form-application-with-folder-data – Timothy Ayodele Apr 04 '22 at 11:40

1 Answers1

0

After adding it your solution, right click the respective file and choose Properties. Then select appropriate value in "Copy to Output Directory". This will add the files in the folder in which your main executable is placed after ClickOnce deployment.

sameerkn
  • 2,209
  • 1
  • 12
  • 13
  • Thanks for the reply. This is working when executed from the source code. But when published and installed in another machine, Those files are not coming. I have programmatically copied the files to destination folder by copying it from resource file. – Yuva hari hara sudha karthik Mar 17 '15 at 11:56