问题描述
我是一个Windows 7虚拟机上一台Mac Pro的书
I am running Visual Studio 2010 on a Windows 7 virtual machine inside of Parallels Desktop 8 on a Mac Book Pro.
我试图将T4MVC到一个新的MVC4项目。我安装的NuGet的T4MVC包并立即开始收到此错误...
I'm trying to incorporate T4MVC into a new MVC4 project. I installed the T4MVC package from Nuget and immediately started getting this error...
无法解析包括对文件中的文本:路径'\\ PSF \\首页\\ T4MVC.tt.hooks.t4'必须是本地到这台计算机或部分您信任区。如果您已经下载了这个模板,你可能需要阻止它使用在Windows资源管理器模板文件中的属性页。
我走进了属性菜单的T4MVC.tt.hooks.t4文件,但我找不到任何选项或按钮进行解锁。
I went into the "Properties" menu for the T4MVC.tt.hooks.t4 file, but I could not find any option or button to unblock it.
我的假设是,这个问题有什么做的,我是一个虚拟机上运行,因此我的项目文件不是在受信任位置的事实。但我不知道如何解决这个问题。
My assumption is that this problem has something to do with the fact that I'm running on a virtual machine and therefore My project files are not in a trusted location. But I'm not sure how to fix that.
我一直在寻找周围,但似乎无法找到任何答案。任何帮助将是AP preciated。
I've been searching around but can't seem to find any answers. Any help would be appreciated.
感谢
推荐答案
在 Windows资源管理器,右键单击该文件,并选择属性。在常规选项卡的底部,应该有一个解除阻止按钮。
In Windows Explorer, right click on the file, and choose Properties. At the bottom of the General tab, there should be an "Unblock" button.
这篇关于T4MVC错误 - T4文件被阻止,或以非受信任的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!