General failure building bootstrapper

I googled a lot on this issue after trying all i just disabled my antivirus(NPAV) and this issue was solved.


When I turn McAfee real-time scan off, it works. I spent 2 hours on figuring this out :(


This happens because The .NET framework version required by the setup project is different than the .NET framework version targeted by the application.

To change verify this:

  1. In Solution Explorer, click the Setup project.
  2. On the View menu, point to Editor, and then click Launch Conditions.
  3. Click .NET Framework.
  4. In the Properties window, change the Version property to the version of the .NET Framework that you want the Setup project to check for and install.

And also you need to Make sure that the Setup.exe program also checks for and installs the correct version of the .NET Framework.

Right click on the setup project -> Properties -> Prerequisites -> Select the correct ones.