I have an installer project to generate a setup file for my project which is a WPF application combined with some libraries.
The setup project takes longer to build each time I run the build function.
From the output log I noticed that the packing of files happens a lot. And this number doubles each time a build is run.
I tested this with the following line:
Packaging file 'System.IO.dll'...
- During my first test this line occurred over 16000 times.
- During my second test this line occurred over 32000 times.
It explains why my build is so slow for a pretty simple application, but how can I solve this?
Noticed my project file is pretty big too compared to other projects (8000 lines) I suspect this is caused by the same issue.
I found out this issue will be reset when VS is rebooted. When VS is rebooted it will be packing each dll only 1 time. The 2nd build it will be packing each dll twice.
I'm still looking for a permanent solution for this problem.