diff --git a/Connectors/Tekla/Speckle.Connector.TeklaShared/SpeckleTeklaPanelHost.cs b/Connectors/Tekla/Speckle.Connector.TeklaShared/SpeckleTeklaPanelHost.cs index 57247100..a3a082c6 100644 --- a/Connectors/Tekla/Speckle.Connector.TeklaShared/SpeckleTeklaPanelHost.cs +++ b/Connectors/Tekla/Speckle.Connector.TeklaShared/SpeckleTeklaPanelHost.cs @@ -24,10 +24,12 @@ public SpeckleTeklaPanelHost() this.Text = "Speckle (Beta)"; this.Name = "Speckle (Beta)"; + string version = GetVersion().ToString()[1..]; // removes the 'v' from version + string resourcePath = $"Speckle.Connector.Tekla{version}.Resources.et_element_Speckle.bmp"; using ( Bitmap bmp = new Bitmap( - GetType().Assembly.GetManifestResourceStream("Speckle.Connector.Tekla2024.Resources.et_element_Speckle.bmp") - ?? throw new InvalidOperationException() + GetType().Assembly.GetManifestResourceStream(resourcePath) + ?? throw new InvalidOperationException($"Could not find resource: {resourcePath}") ) ) {