This project is read-only.
1
Vote

Compilation issue with Script#

description

I was having difficulty getting my script# project to build when calling the constructor on Map() because the element class was not recognized by the compiler.
 
I found when I changed the Map class to use "using" instead of explicit type references, it fixed the problem:
 
for example: this constructor didn't work in my project:
 
public Map(System.Html.Element mapDiv, MapOptions opts)
{
 throw new System.Exception("Imported - Not Implemented");
}
 
but this one did:
 
using System.Html;
...
 
public Map(Element mapDiv, MapOptions opts)
{
 throw new System.Exception("Imported - Not Implemented");
}

comments