PrecompileBeforePublish using Msbuild

前端 未结 3 1864
悲哀的现实
悲哀的现实 2021-02-01 23:50

We are using Windows Azure to host our application on a Cloud Service and use Powershell to build and package the website using msbu

3条回答
  •  有刺的猬
    2021-02-02 00:36

    I think, your problem is not pre-compilation and I see, you have done precompiling well.

    I think your project is too big (Check your final bin directory size) IIS read every dll, and debug symbols and load them in to memory before running any line of code.

    If your project size too big, and your virtual environment resorces are low, magnetic disk, low ram, low cpu, so there is no magic in it.

    Recommendations:

    1. Try to reduce size of the project output. (Removing debug symbols can be an option).
    2. Remove all not used references... (Both .net and 3rd Party) (edit, added)
    3. Scale up your environment configuration.

    Regards...

提交回复
热议问题