I am executing File.Exists("//xxx//fs.txt") from visual studio debug version. It runs in +-1s. But same takes more than 7s when executed from a click once published application. Does anybody know why this is happening ?
I am executing File.Exists("//xxx//fs.txt") from visual studio debug version. It runs in +-1s. But same takes more than 7s when executed from a click once published application. Does anybody know why this is happening ?
Hi PaulinL-2368,
According to my understanding, the native image generator (Ngen.exe) is used on the application. Using Ngen.exe means to achieve more disk access by reducing CPU consumption. And to use Ngen.exe, there is no need to load the JIT compiler (mscorjit.dll). But ClickOnce application deployment does not support Ngen. So this may be the reason why the click once application takes more time.
Here is a related document you can refer to.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
@DanielZhang-MSFT Is there a workaround to solve this issue or can you suggest some other installer which solves this issue ?
9 people are following this question.
Insert a node as child ,before or after a node in nested dynamic JSON Node using C#
Visual Studio 2019: Undefined behavior in a C++/CLI wrapper project.
Example for how to get Package Metadata from Azure DevOps Rest-Api Artifacts using c#
How to collapse individual nested grids/stackpanels inside a grid?