如何解决NCover的管理权限相关错误 [英] how to solve administrative permissions related error for NCover
本文介绍了如何解决NCover的管理权限相关错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行Mymath时,使用NCover的c#应用程序如下所示:
C:\ Program Files \ NCover> ncover.console D:\ Mymath \ Mymath \ bin \ Debug \ Mymath.exe
我得到以下输出:
NCover无法将文件写入"C:\ Program Files \ NCover \ coverage.nccov"
因为它可以在没有管理权限的情况下运行.
请让我知道解决方案.
解决方案
在打开命令提示符之前,请执行以下操作
1.开始->所有程序->配件->右键单击命令提示符,单击运行方式..",然后选择管理员
然后运行命令
使用以下命令行:
C:\> ncover.console.exe//x"c:\ coverage.nccov" D:\ Mymath \ Mymath \ bin \ Debug \ Mymath.exe
Hi,
While i am running Mymath , a c# application using NCover as shown below:
C:\Program Files\NCover>ncover.console D:\Mymath\Mymath\bin\Debug\Mymath.exe
I got below output:
NCover is unable to write a file to 'C:\Program Files\NCover\coverage.nccov'
because it it running without administrative permissions.
Please let me know solution for this.
解决方案
before opening your command prompt do the following things
1. Start --> All Programs --> Accessories --> right click command prompt click on Run as.. and select administrator
and then run your command
Use the following command line :
C:\>ncover.console.exe //x "c:\coverage.nccov" D:\Mymath\Mymath\bin\Debug\Mymath.exe
这篇关于如何解决NCover的管理权限相关错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文