You need to pass references to the WebSharper libraries you use. In particular Dictionary.New12 is part of the proxy for System.Collections.Generic.Dictionary which is located in WebSharper.Collections.dll, so you need the following flag:

1
-r c:\Projects\SampleProj\packages\WebSharper\tools\net40\WebSharper.Collections.dll

and you'll probably need a few more depending on what library functions you use.

By on 11/12/2015 1:40 AM ()

Hi Loic thanks for the reply. How do you add the flag, is it supposed to be added on the commandline? The following isn't valid:

WebSharper.exe bundle "x.dll" -o "x" -name "x" -r "my references"

By on 11/12/2015 5:44 AM ()

My bad, the bundle command doesn't use -r for references, it just takes a plain list of dlls. Sorry, I don't use the command line tool much :)

By on 11/12/2015 9:26 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