diff --git a/uSync.Backoffice.Management.Client/uSyncManifestReader.cs b/uSync.Backoffice.Management.Client/uSyncManifestReader.cs index 32013c60..ed534419 100644 --- a/uSync.Backoffice.Management.Client/uSyncManifestReader.cs +++ b/uSync.Backoffice.Management.Client/uSyncManifestReader.cs @@ -24,10 +24,8 @@ internal sealed class uSyncManifestReader : IPackageManifestReader { public Task> ReadPackageManifestsAsync() { - var entrypoint = JsonObject.Parse(@"{""name"": ""usync.entrypoint"", - ""alias"": ""uSync.EntryPoint"", - ""type"": ""entryPoint"", - ""js"": ""/App_Plugins/uSync/usync.js""}"); + var version = GetuSyncVersion(); + var script = $"/App_Plugins/uSync/usync.js?v={version}"; List manifest = [ new PackageManifest @@ -35,14 +33,19 @@ public Task> ReadPackageManifestsAsync() Id = "uSync", Name = "uSync", AllowTelemetry = true, - Version = GetuSyncVersion(), - Extensions = [ entrypoint!], + Version = version, + Extensions = [ new JsonObject { + ["name"] = "usync.entrypoint", + ["alias"] = "uSync.EntryPoint", + ["type"] = "entryPoint", + ["js"] = script, + }], Importmap = new PackageManifestImportmap { Imports = new Dictionary { - { "@jumoo/uSync", "/App_Plugins/uSync/usync.js" }, - { "@jumoo/uSync/external/signalr", "/App_Plugins/uSync/usync.js" } + { "@jumoo/uSync", script }, + { "@jumoo/uSync/external/signalr", script } } } }