diff --git a/.vs/hass-workstation-service/DesignTimeBuild/.dtbcache.v2 b/.vs/hass-workstation-service/DesignTimeBuild/.dtbcache.v2 index c5ea146..288df20 100644 Binary files a/.vs/hass-workstation-service/DesignTimeBuild/.dtbcache.v2 and b/.vs/hass-workstation-service/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/hass-workstation-service/v16/.suo b/.vs/hass-workstation-service/v16/.suo index a1e6dbc..c4f3939 100644 Binary files a/.vs/hass-workstation-service/v16/.suo and b/.vs/hass-workstation-service/v16/.suo differ diff --git a/Program.cs b/Program.cs index fe433b5..7b3eac7 100644 --- a/Program.cs +++ b/Program.cs @@ -83,12 +83,21 @@ namespace hass_workstation_service Identifiers = "hass-workstation-service", Manufacturer = Environment.UserName, Model = Environment.OSVersion.ToString(), - Sw_version = Assembly.GetExecutingAssembly().GetName().Version.ToString() + Sw_version = GetVersion() }; services.AddSingleton(deviceConfig); services.AddSingleton(); services.AddSingleton(); services.AddHostedService(); }); + static internal string GetVersion() + { + if (!Debugger.IsAttached) + { + return Assembly.GetExecutingAssembly().GetName().Version.ToString(); + } + + return "Debug"; + } } } diff --git a/Properties/PublishProfiles/ClickOnceProfile.pubxml b/Properties/PublishProfiles/ClickOnceProfile.pubxml index e5e4a0c..3587a9a 100644 --- a/Properties/PublishProfiles/ClickOnceProfile.pubxml +++ b/Properties/PublishProfiles/ClickOnceProfile.pubxml @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - 11 + 14 1.0.0.* True Release diff --git a/README.md b/README.md index 3f75f93..ffdee86 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,7 @@ It will try to futher accomplish this goal in the future by: - Being platform independent - Being easy to configure - Using secure communication + +## Deployments + +1. \ No newline at end of file diff --git a/hass-workstation-service.csproj b/hass-workstation-service.csproj index 8697e1d..f9071a9 100644 --- a/hass-workstation-service.csproj +++ b/hass-workstation-service.csproj @@ -5,6 +5,11 @@ dotnet-hass_workstation_service-C65C2EBE-1977-4C24-AC6B-6921877E1390 hass_workstation_service WinExe + Sleevezipper + https://github.com/sleevezipper/hass-workstation-service + false + 1.0.* + false