给FullTrust的到UNC共享为Visual Studio 2012和.NET 4.0 [英] Give FullTrust to UNC share for Visual Studio 2012 and .Net 4.0

查看:240
本文介绍了给FullTrust的到UNC共享为Visual Studio 2012和.NET 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我试图打开位于UNC共享我得到这个对话框的解决方案:

Everytime I try to open a solution that is located on a UNC share I get this dialog:

我已经使用的Caspol.exe 实用程序,Hanselman的谈<一试href="http://www.hanselman.com/blog/CommentView.aspx?guid=c2eae5a7-1ad7-4828-b363-e6fbb4866335#commentstart"相对=nofollow>此处,但它似乎并没有工作。至少对于一个.net 4项目乳宁在Visual Studio 2012年与我得到这个消息相同的参数运行的.NET版本4 caspol的:

I've tried using the caspol.exe utility that Hanselman talks about here, but it doesn't seem to work. At least not for a .Net 4 project runing in Visual Studio 2012. Running the .NET 4 version of caspol with the same arguments I get this message:

WARNING: The .NET Framework does not apply CAS policy by default. Any settings
shown or modified by CasPol will only affect applications that opt into using
CAS policy.

Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.

我遵循的链接,但似乎没有什么道理给我。

I followed that link but nothing seemed to make sense to me.

要放弃什么,我做一个小范围内,我有我的Mac上运行Windows 7的虚拟机(通过VirtualBox的)。我安装我的Mac上的SMB网络共享我能够从我的虚拟机连接成功。然而试图加载的解决方案不断给我这个错误。我知道我可以取消勾选和负载的一切,但我想知道如何充分信任的位置。

To give a little context about what I'm doing, I have Windows 7 running as VM (via VirtualBox) on my mac. I setup an SMB network share on my mac which I'm able to connect to successfully from my VM. However trying to load the solution keeps giving me this error. I know I can "un-check the box" and load everything but I want to know how to fully trust the location.

推荐答案

您可以禁用此在工具>选项>项目和解决方案>警告用户,当项目位置是不信任?此设置实际上是<一个href="http://connect.microsoft.com/VisualStudio/feedback/details/604282/trusting-network-shares-in-visual-studio-2010-net-4-0">broken在VS 2010中,但它表示为目前固定为2012。

Can you disable this in "Tools>Options>Projects and Solutions>Warn user when project location is not trusted"? This setting was actually broken in VS 2010, but it's indicated as fixed now for 2012.

这篇关于给FullTrust的到UNC共享为Visual Studio 2012和.NET 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆