CS1703: An assembly with the same identity 'mscorlib

686 views
Skip to first unread message

bentayloruk

unread,
Aug 8, 2010, 5:13:04 PM8/8/10
to nhaml-users
Hi All,

I am referencing NHaml 2, Beta 3 from a .NET 4 class library. I am
then using the TemplateEngine, with default TemplateOptions to try and
compile a very simple Haml file. On doing so, I get the following
exception:

CS1703: An assembly with the same identity 'mscorlib, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' has already been
imported. Try removing one of the duplicate references.

I have had a Google and not been able to find anything on this. Am I
doing something wrong? Is it not supported with .NET 4?

Any help would be appreciated!

Cheers,

Ben

Tim Hoolihan

unread,
Aug 19, 2010, 11:19:40 AM8/19/10
to nhaml-users
Did you ever get an answer on this? Having the same problem

Tim Hoolihan

unread,
Aug 19, 2010, 12:27:18 PM8/19/10
to nhaml-users
I built from src on github and the error went away...

http://github.com/NHaml/NHaml

Simon

unread,
Aug 20, 2010, 7:33:07 AM8/20/10
to nhaml-users

Matt Ellis

unread,
Sep 1, 2010, 1:15:22 PM9/1/10
to nhaml-users
Any idea how to work around this error? I've hit CS1703 using Spark in
a test project - the nunit gui loads up its local copy of
nunit.core.dll and then loads up a second copy when loading the test
assembly. Spark then invokes the csc compiler with a reference to all
assemblies loaded into the current AppDomain. The two references to
nunit.core.dll cause the CS1703 and it all goes terribly wrong...

Any ideas what changed to workaround this?

Thanks
Matt

On Aug 20, 12:33 pm, Simon <simon.cr...@gmail.com> wrote:
> try the new downloadhttp://code.google.com/p/nhaml/downloads/list
Reply all
Reply to author
Forward
0 new messages