Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ public string RenderDependencies(ResourceType resourceType, string provider, str
});
}

return string.Join(string.Empty, sortedList.Select(resource => resource.Render(this.crmVersion, this.hostSettings.CdnEnabled, applicationPath)));
var crmVersion = this.hostSettings.DebugMode ? DateTimeOffset.UtcNow.ToUnixTimeSeconds() : this.crmVersion;

return string.Join(string.Empty, sortedList.Select(resource => resource.Render(unchecked((int)crmVersion), this.hostSettings.CdnEnabled, applicationPath)));
}

private List<T> AddResource<T>(List<T> resources, T resource)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@
<value>Show Critical Errors on Screen</value>
</data>
<data name="plDebugMode.Help" xml:space="preserve">
<value>Check this box to run the installation in "debug mode". This causes various parts of the application to write more verbose error logs etc. Note: This may lead to performance degradation.</value>
<value>Check this box to run the installation in "debug mode". This causes various parts of the application to write more verbose error logs etc. It also switches the CDV value to a timestamp, meaning the client browser will continuously download new versions of client resources (stylesheets, fonts and javascript files). Note: This may lead to performance degradation.</value>
</data>
<data name="plDebugMode.Text" xml:space="preserve">
<value>Debug Mode</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private Dictionary<string, object> GetConfiguration(PortalSettings portalSetting
var menuStructure = this.personaBarController.GetMenu(portalSettings, user);

settings.Add("applicationPath", Globals.ApplicationPath);
settings.Add("buildNumber", this.hostSettings.CrmVersion.ToString(CultureInfo.InvariantCulture));
settings.Add("buildNumber", this.hostSettings.DebugMode ? DateTimeOffset.UtcNow.ToUnixTimeSeconds() : this.hostSettings.CrmVersion.ToString(CultureInfo.InvariantCulture));
settings.Add("userId", user.UserID);
settings.Add("avatarUrl", Globals.ResolveUrl(Utilities.GetProfileAvatar(user)));
settings.Add("culture", Thread.CurrentThread.CurrentUICulture.Name);
Expand Down
Loading