1

「Haas2013」と呼ばれる VS2012 MVC 4 .NET webapp で RazorMachine を使用したいと考えています。

実際に 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 が 2 回ロードされていることがわかります。

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 を使用しています。

4

0 に答える 0