I have changed my c# desktop project to setup(.exe) file in the same solution explorer in visual studio.
Q? I have updated my source file project with some content. Is there any means to update (rebuild) .exe file automatically instaed of creating new .exe project?
Naimish MakwanaPosted Apr 1, 2023, 1:17 PM
Yes, you can configure Visual Studio to automatically rebuild the setup project when changes are made to the source code project.
First, right-click on the setup project in the Solution Explorer and select "Properties". In the Properties window, select the "Build" tab.
Next, under the "Dependencies" section, click on the "Add" button and select the name of the source code project from the list of projects. This will ensure that the setup project depends on the source code project and will be rebuilt if changes are made to it.
Finally, under the "Output" section, make sure that the "Output file name" and "Assembly name" are set to the same name as the original setup file. This will ensure that the new setup file overwrites the old one when it is rebuilt.
With these settings in place, any changes made to the source code project should trigger a rebuild of the setup project, resulting in an updated .exe file.
Thanks