How to compile DayPilot Pro source
Before compilation
Note: Since build 6.4.2774 the assembly signing is disabled in the source project. The shipped DLL is still signed.
In prior releases, you will get the following error message during compilation:
"Cryptographic failure while signing assembly '...\DayPilot.dll' -- 'Error reading key file 'DayPilotStrong.snk' -- The system cannot find the file specified."
Possible solutions:
- In project properties, go to "Signing" tab and uncheck "Sign the assembly".
- Generate your own key using "sn -k DayPilotStrong.snk" command.
Compressing the JavaScript
All JavaScript resources are compressed using ESC before compilation.
The full DayPilot Pro package includes both the original and the compressed version.
Example:
- Source/Resources/Scheduler.js - compressed version
- Source/Resources/Scheduler.src.js - uncompressed version
The ESC command line used for compression:
cscript ESC.wsf -l 4 -ow Calendar.js Calendar.src.js
Bless.map file:
DayPilot
DayPilotCalendar
DayPilotScheduler
DayPilotNavigator
DayPilotMenu
DayPilotBubble
DayPilotMonth
DayPilotDynamic
WebForm_DoCallback
WebForm_InitCallback
__doPostBack
__theFormPostCollection
__theFormPostData
_jsParse
JavaScript modifications
Options:
- recompile DayPilot with modified JavaScript files
- reference modified JavaScript files (compressed or uncompressed) using static references (ResourcesStatic and ResourcesPath properties, see also DayPilot Pro SP1 release notes)