Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# VS 2010中的T4模板找不到Metada文件SubSonic.Core.dll_C#_Visual Studio 2010_Subsonic3_T4 - Fatal编程技术网

C# VS 2010中的T4模板找不到Metada文件SubSonic.Core.dll

C# VS 2010中的T4模板找不到Metada文件SubSonic.Core.dll,c#,visual-studio-2010,subsonic3,t4,C#,Visual Studio 2010,Subsonic3,T4,我使用亚音速3来生成DAL。此外,我正在使用T4模板从DAL生成BO。亚音速的T4模板工作正常,但当我运行模板时,会出现以下错误: Compiling transformation: Metadata file 'SubSonic.Core.dll' could not be found 我已在我的设置中导入了亚音速。包括以下文件: <#@ assembly name="SubSonic.Core.dll" #> 编辑2:-我已经通过添加解决了这个问题,正如在回答我的问题时所建议

我使用亚音速3来生成DAL。此外,我正在使用T4模板从DAL生成BO。亚音速的T4模板工作正常,但当我运行模板时,会出现以下错误:

Compiling transformation: Metadata file 'SubSonic.Core.dll' could not be found
我已在我的
设置中导入了亚音速。包括以下文件:

<#@ assembly name="SubSonic.Core.dll" #>
编辑2:-我已经通过添加
解决了这个问题,正如在回答我的问题时所建议的,但那是在VS2008中。不知道为什么在VS 2010中不起作用


编辑3:-将SubSonic.Core.dll安装到GAC,重新启动VS,仍然收到异常错误。本该睡觉的。

在我的头撞在墙上很长一段时间后,我在GAC中安装了SubSonic.Core.dll。然后我从中删除了.dll

<#@ assembly name="SubSonic.Core.dll" #> 

改成

<#@ assembly name="SubSonic.Core" #>


现在工作正常。

@Henk有一个链接指向我从哪里得到第一个解决方案的问题。它实际上是说“SubSonc.Core.dll”,还是说“SubSonic.Core.dll”?
<#@ assembly name="SubSonic.Core" #>