i had created a c# windows forms application targeting .net framework 4.5. then i decided to target .net framework 4 instead; so i also had to reinstall nuget packages, fix some code because of reduced functionality and then clean and rebuild project.
i wanted to create an installer for my application using visual studio 2013 installer setup project, but after i add the files it detects .net framework 4.5 as dependency and not .net framework 4. also when i try to install using the produced installer on another machine it gives the error that .net framework 4.5 is required. no prerequisites are defined in neither the windows forms project nor the setup project.
how can i fix this dependency issue?
what i did to fix this issue: