我想在我的VS2012 MVC 4 .NET webapp上使用RazorMachine,名为“Haas2013”。
一切正常,直到我碰到一条我实际上称之为RazorMachine的行。
我一直收到这个错误:
error CS1704: An assembly with the same simple name 'haas2013, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null has already been imported.
Try removing one of the
references or sign them to enable side-by-side.
Line 25: RazorMachine rm = new RazorMachine();
-->Error here: Line 26: ITemplate template = rm.ExecuteContent(res.Body);
当查看Debug / Windows / Symbols时,我可以看到我的项目“haas2013.dll”的DLL加载了两次。
haas2013.dll C:\Users\Reinhard\AppData\Local\Temp\Temporary ASP.NET Files\root\6224be98\f18ecea8\assembly\dl3\43249f4b\692c79c0_cd2ace01\haas2013.dll No Yes Symbols loaded. C:\Users\Reinhard\AppData\Local\Temp\Temporary ASP.NET Files\root\6224be98\f18ecea8\assembly\dl3\43249f4b\692c79c0_cd2ace01\haas2013.pdb 29 1.0.0.0 27.03.2013 10:30 05740000-057A0000 [3820] iisexpress.exe: Managed (v4.0.30319)
haas2013.dll E:\Arbeiten\haas2013\haas2013\haas2013\obj\Debug\haas2013.dll No Yes Symbols loaded. E:\Arbeiten\haas2013\haas2013\haas2013\obj\Debug\haas2013.pdb 84 1.0.0.0 27.03.2013 10:30 08F90000-08FF0000 [3820] iisexpress.exe: Managed (v4.0.30319)
这是错误的来源,还是预期的行为?
我正在使用IIS-Express。