I have an ASP.NET web forms application (using VS2013, targeting .NET4.5). I've added the use strict
directive to the top of my .js
files to enforce Javascript hygiene.
However, I'm having trouble finding documentation of where in the build process use strict
is enforced. It doesn't seem like something that would be integrated into csc.exe
, as it's all about Javascript. It also appears to be occurring before my post-build events.
Can anyone point me to some documentation this?
To clarify, I am not asking for documentation on the Javascript feature, I am asking when the build process for my web application is checking this. I am getting build errors for violations of "use strict", but I am not sure when in the pipeline this is happening. Is pre-scanning for strict violations a feature of ASP.NET projects?
Solution
I had Microsoft AJAX Minifier enabled on the project, and when I turned it off, I stopped getting the Javascript errors.
Another great reason to use the AJAX Minifier!