0

I have a WPF application which i publish in intranet, the thing is i published the application 20 times till now, so i have 20 folders and the size of the build becomes more, i manually delete and leave only 2 latest versions, but is there a way to only have latest version to be published?

Right now i save in folder and then copy to inetpub\wwwroot, but if i had to send the files directly using Visual Studio, i have speed issues due to weak intranet lines in some branches.

enter image description here

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
krishna
  • 241
  • 1
  • 5
  • 18

2 Answers2

0

but is there a way to only have latest version to be published?

You are already only publishing the latest version each time you publish.

The older versions don't magically disappear when you publish a new version though. You'll have to remove them manually one way or another:

Can ClickOnce be configured to delete off old published directories?

mm8
  • 163,881
  • 10
  • 57
  • 88
0

Actually when u publish only current and previous version source are there in application files,Visual studio publishing tool doesnt delete the older versions in published folder ,so we are seeing too many folders .Just delete everything in publish folder before publsihing and you will have only two folders current and previous version.

krishna
  • 241
  • 1
  • 5
  • 18