Mikioo / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Export to the same file with different casing causes problems #306

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If there are 2 classes compiling to the same javascript file, it seems that the 
casing of the output file matters. 
The 2 classes compile to the same javascript file if the output file matches in 
both. 
But if one of the classes has a different case, KAPUT, it seems to delete 
everything else in the javascript file, keeping only one class.

    [JsType(JsMode.Clr, Filename = "~/../dev/resjs/Common.js")]
    public enum DataEditors
    {
        Textbox,
        Textarea,
        ImagePicker,
        ContentEditor,
        DateEditor,
    }

    [JsType(JsMode.Clr, Filename = "~/../dev/resjs/common.js")]
    public enum DataEditorsDeux
    {
        Textbox,
        Textarea,
        ImagePicker,
        ContentEditor,
        DateEditor,
    }

Note the common.js VS Common.js
In my case I had like 20 classes compiling to Common.js
By mistake I added the common.js (lowercase) and it erased everything else, had 
to Camelize it to Common.js and then everything popped back up.

Original issue reported on code.google.com by DanelK...@gmail.com on 31 Jul 2013 at 2:09

GoogleCodeExporter commented 9 years ago
Fixed in skc rev. 35

Original comment by sebastia...@gmail.com on 4 Nov 2013 at 9:28