Unit Test Reference Issue
在Visual Studio中跑單元測試,遇到以下訊息:
Failed to queue test run 'jeffrey @MyMachine 2008-01-17 09:31:03': Test Run deployment issue: The location of the file or directory 'R:\Assembly\Utility.dll' is not trusted.
訊息很明確,R:是一台網路磁碟機,預設來自非本機的.NET Code在使用上會被設限。要解決也很簡單,透過"Microsoft .NET Framework 2.0 Configuration"配置工具新增一條URL Code Group指向file: //\\ShareServerName\SharedFolder\*即可,詳細的說明可以參考MSDN:
英文: http://msdn2.microsoft.com/en-us/library/bs2bkwxc(VS.80).aspx
中文: http://msdn2.microsoft.com/zh-tw/library/bs2bkwxc(VS.80).aspx