I’ve created a "setup project". In the "Application Folder" of this project, I’ve added all the "primary outputs" to the "application folder". Also the the active solution configuration is set on "Release". The TargetPlatform is on x86 and .Net Framework 4.6.1. After I built this project i can go to the installation software and install my program.
Then when I try to open my installed program I can see my computer is loading, but it doesn’t open.
There is a primary output that is underlined and gives a warning while building this project:
(WARNING: ‘System.IO.Compression.dll’ should be excluded because its source file ‘C:WINDOWSMicrosoft.NetassemblyGAC_MSILSystem.IO.Compressionv4.0_22.214.171.124__b77a5c561934e089System.IO.Compression.dll’ is under Windows System File Protection.)
Anyone knows how to fix this?
Source: Visual Studio Questions