How to improve performance of aspnet_compiler?
Mark Kharitonov
1
Reputation point
The command line is:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v xyz -p D:\_wf\01\69\b\_PublishedWebsites\xyz -fixednames D:\_wf\01\69\b\_PublishedWebsites\xyz_Precompiled
The result is 180 files with the .compiled extension. On the build server this runs for about 28 minutes. Usually we just run the following command:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v temp -p D:\_wf\01\69\b\_PublishedWebsites\xyz
And it takes about 14 minutes. Either way it is very long.
I tried to debug the aspnet_compiler and it seems it compiles each of the relevant files one by one.
Our code is Asp.Net, not Asp.Net Core. Is there any solution to this build performance problem?
I have asked a few related questions on the StackOverflow, but got no satisfactory responses: