I have inherited a project from a previous developer. After opening and rebuilding it in my copy of VS, a couple of the lines below somehow swapped positions which caused major problems in the release build.
When I traced back the cause I noticed the original developer had tried to force these lines to stay in a fixed order by adding a comment line (see below).
Is there a better way of ensuring these lines always remain in this order?
[assembly: System.Web.UI.WebResource("BS.Web.Controls.AjaxFileUpload.XMLHttpExecutor.js", "application/x-javascript")]
[assembly: System.Web.UI.WebResource("BS.Web.Controls.AjaxFileUpload.XMLHttpExecutor.debug.js", "application/x-javascript")]
[assembly: System.Web.UI.WebResource("BS.Web.Controls.AjaxFileUpload.AjaxFileUpload.debug.js", "application/x-javascript")]
[assembly: System.Web.UI.WebResource("BS.Web.Controls.AjaxFileUpload.AjaxFileUpload.js", "application/x-javascript")]
[assembly: WebResource("BS.Web.Controls.AjaxFileUpload.AjaxFileUpload.css", "text/css", PerformSubstitution = true)]
namespace BS.Web.Controls
{
public delegate void EventAjaxFileUploadOnComplete(object sender, HttpPostedFile file);
public delegate void EventAjaxFileUploadOnAllComplete(object sender);
[RequiredScript(typeof(CommonToolkitScripts))]
[Designer("BS.Web.Controls.AjaxFileUploadDesigner, BS.Web.Controls")]
[ClientCssResource("BS.Web.Controls.AjaxFileUpload.AjaxFileUpload.css")]
[ClientScriptResource("AjaxControlToolkit.AjaxFileUpload", "BS.Web.Controls.AjaxFileUpload.AjaxFileUpload.js")]
// Just a throwaway comment to try and prevent the following reference being swapped with the preceding
[ClientScriptResource("Sys.Net.XMLHttpExecutor", "BS.Web.Controls.AjaxFileUpload.XMLHttpExecutor.js")]
public class AjaxFileUpload : ScriptControlBase
{