Rod
Rod

Reputation: 4461

Why isn't the Publish.htm file being created?

I'm trying to create a ClickOnce deployment of a WPF app, using VS 2019. I'm testing it by having it create the Publish.htm file in a website on my machine. Here's what I have in the project's Publish Options tab:

enter image description here

However, when I publish from VS 2019, the publish.htm file does not get created on the website. The web.config file is there, but that's all that's there. Why isn't it creating the publish.htm file?

Upvotes: 0

Views: 699

Answers (2)

Saad khan
Saad khan

Reputation: 1

While Publishing When you choose Public your application with ClickOnce then move to the settings in settings you guys will have 3 options on the top

1:- Application Files 2:-Prerequisites 3:-Options

Move into the 3rd option which is Options. There you will get 4 more options. Move into the 2nd option named as Deployment and there will be CheckBox for automatically generate (Publish.html) check that option. Then you will have the the file named Publish.html automatically created into your's Publish Folder

Upvotes: 0

大陸北方網友
大陸北方網友

Reputation: 3767

If test via iis, you need to fill the Publishing Folder Loaction with the physical path of iis website.

enter image description here

The setting of iis website,

enter image description here

Upvotes: 1

Related Questions