Nuget package naming MVC4

Nuget package naming MVC4

Rogier21Rogier21 Posts: 3Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hello all,

I am using the MVC4 nuget package which works fine (except for some CSS errors).

But is it possible to trim down the package a bit? I think the following files can be removed:
~/Scripts/DataTables-1.9.4/docs
~/Scripts/DataTables-1.9.4/extras (?)
~/Scripts/DataTables-1.9.4/media/js/jquery.js

Is the content folder also needed for normal operation?

But the biggest request is, is it possible to change the directory names so the version number is in the Datatables file instead in the directory?
~/Scripts/DataTables-1.9.4/media/js/jquery.js
becomes:
~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables-1.9.4.min.js

Because MVC4 can use bundeling on filenames but not on directories with automatic version numbering.

Thanks!

Replies

  • allanallan Posts: 63,391Questions: 1Answers: 10,450 Site admin
    The DataTables nuget package isn't maintained as part of the DataTables project. You might want to get in touch with the nuget package maintainer: http://nuget.org/profiles/mcintyre321 .

    Allan
  • LuchianLuchian Posts: 4Questions: 0Answers: 0
    Actually, Allan, I believe you are quoting a different (nuget) project - the Mvc.JQuery.Datatables.

    What Rogier21 is referring to, is the https://github.com/DataTables/DataTables, one. And this is the one that, when used in an Mvc4 project, could take advantage of the {version} naming oncvention on the file name (instead of the folder name).
    Thank you.
  • LuchianLuchian Posts: 4Questions: 0Answers: 0
    And btw, I would suggest:
    ~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.min.js
    becomes:
    ~/Scripts/DataTables/media/js/jquery.dataTables-1.9.4.min.js
  • allanallan Posts: 63,391Questions: 1Answers: 10,450 Site admin
    The current verso naming is actually quite useful in many cases as you can update by simply copy the new file in - no renaming required. Advantages and disadvantages.

    If I get a significant amount of feedback about this requesting the change I will look at it, but not something that will be taken lightly, as a lot of projects already rely on this file structure.

    Allan
This discussion has been closed.