question

Nathankopczynski-1842 avatar image
0 Votes"
Nathankopczynski-1842 asked JackJJun-MSFT answered

C# .NET 4.7.2 - Console Application - publish to folder NOT setup.exe

I am trying to publish a console application to a folder. Visual studio only allows me to create a setup.exe installer that I can not use - how can I get around this? Any suggestions

dotnet-csharp
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You only need most of the files in the release build folder. When you choose "publish to folder", you'd better review carefully what publishing option you have chosen, ClickOnce or any other.

0 Votes 0 ·

I agree that I need the files in the /release folder - that is why I want to publish to a folder. However, the problem is that I don't have the option to publish to folder - I ONLY have the option to create the setup.exe

0 Votes 0 ·
JackJJun-MSFT avatar image JackJJun-MSFT Nathankopczynski-1842 ·

@Nathankopczynski-1842, what is your current visual studio version, vs2019 or vs2022? Could you tell me how do you publish the console app? It will be better for you to attach a picture to describe your problem.

0 Votes 0 ·
Show more comments

1 Answer

JackJJun-MSFT avatar image
1 Vote"
JackJJun-MSFT answered

@Nathankopczynski-1842 , If you want to include the files from the release folder, Please refer to the following steps to do it.

First, Please set the file properties like the following:

128986-image.png


Second, you could right-click your projects and choose publish option.

Third, after clicking the Application Files, you can see we have included the files from the release folder.

128949-image.png



Finally, Please click Publish Now in the right bottom and files in the publish folder.

129020-image.png





If the response is helpful, please click "Accept Answer" and upvote it.


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




image.png (6.9 KiB)
image.png (36.0 KiB)
image.png (7.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.