I have a solution in Visual Studio 2013 with many different projects. One of them is C# screensaver, built as Windows Application (file extension ".exe"). Now i want that screensaver to be packed into a visual studio setup project. But in the setup project i can only include the "primary output" of the C# project so that the output file is packed unchanged into the msi file. Is there a way to change the file extension (it has to be .scr) either in the C# project settings or in the Setup itself? When i change the filename via batch/MSBuild order in the postbuild event the "primary output" for the setup cant be found anymore. The strange thing is: there is already an option in the setup that says "TargetName", but it is greyed and i cant change it in the IDE and i also cant find the option in the project file of the setup project. Thanks for any help!
Edit 1:
Is it possible that there is abolutely NO solution for simply renaming an output file to include it in a setup??