Maybe the manual compile doesn't work because somehow the "InternalsVisibleTo" assembly attribute on the FParsecCS assembly isn't honoured. Did you include Properties/AssemblyInfo.cs when you compiled FParsecCS?

By on 9/19/2010 8:06 AM ()

I think so, since it's in the csproj file, so xbuild should have caught it. Just to make sure that wasn't the problem, I tried using the FParsec dll that I build in VS, and I got the same error.

I noticed that I wasn't include AssemblyInfo.fs when compiling FParsec, but adding that to the list of files didn't change the error, either.

By on 9/19/2010 12:43 PM ()

To make sure it's really not a problem with the InternalsVisibleTo attribute, could you search & replace "internal with "public" in the FParsecCS sources and see if FParsec still fails to compile? Thanks.

By on 9/19/2010 2:54 PM ()

Hmm. It compiled without any errors after I did that. I wonder what I'm doing wrong when I build normally.

By on 9/21/2010 11:16 AM ()

Maybe it's a compiler issue. You could try to make a simple test case with two trivial assemblies and if you don't get it to work, report it to fsbugs@microsoft.com.

By on 9/22/2010 8:48 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper