diff --git a/src/AzureNamingTool.csproj b/src/AzureNamingTool.csproj index 31988a9..cc829ac 100644 --- a/src/AzureNamingTool.csproj +++ b/src/AzureNamingTool.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 4.2.0 + 4.2.1 true eca63fb9-b7f9-454f-910b-5088ae877085 Linux diff --git a/src/Helpers/ConfigurationHelper.cs b/src/Helpers/ConfigurationHelper.cs index 197a32e..fe03388 100644 --- a/src/Helpers/ConfigurationHelper.cs +++ b/src/Helpers/ConfigurationHelper.cs @@ -478,13 +478,13 @@ public static async Task GetCurrentConfigFileVersionData() string versiondatajson = String.Empty; try { - versiondatajson = await FileSystemHelper.ReadFile("configurationfileversions.json"); + versiondatajson = await FileSystemHelper.ReadFile("configurationfileversions.json", ""); // Check if the user has any version data. This value will be '[]' if not. if (versiondatajson == "[]") { // Create new version data with default values in /settings file ConfigurationFileVersionData? versiondata = new(); - await FileSystemHelper.WriteFile("configurationfileversions.json", JsonSerializer.Serialize(versiondata), "settings/"); + await FileSystemHelper.WriteFile("configurationfileversions.json", JsonSerializer.Serialize(versiondata), ""); versiondatajson = JsonSerializer.Serialize(versiondata); } } @@ -522,13 +522,13 @@ public static async Task> VerifyConfigurationFileVersionData() { // Compare the versions // Resource Types - if (officialversiondata.ResourceTypes != currentversiondata.ResourceTypes) + if (officialversiondata.resourcetypes != currentversiondata.resourcetypes) { versiondata.Add("
Resource Types

The Resource Types Configuration is out of date!

It is recommended that you refresh your resource types to the latest configuration.

To Refresh:
  • Expand the Types section
  • Expand the Configuration section
  • Select the Refresh option

"); } // Resource Locations - if (officialversiondata.ResourceLocations != currentversiondata.ResourceLocations) + if (officialversiondata.resourcelocations != currentversiondata.resourcelocations) { versiondata.Add("
Resource Locations

The Resource Locations Configuration is out of date!

It is recommended that you refresh your resource locations to the latest configuration.

To Refresh:
  • Expand the Locations section
  • Expand the Configuration section
  • Select the Refresh option

"); } @@ -571,14 +571,14 @@ public static async Task UpdateConfigurationFileVersion(string fileName) switch (fileName) { case "resourcetypes": - currentversiondata.ResourceTypes = officialversiondata.ResourceTypes; + currentversiondata.resourcetypes = officialversiondata.resourcetypes; break; case "resourcelocations": - currentversiondata.ResourceLocations = officialversiondata.ResourceLocations; + currentversiondata.resourcelocations = officialversiondata.resourcelocations; break; } // Update the current configuration file version data - await FileSystemHelper.WriteFile("configurationfileversions.json", JsonSerializer.Serialize(currentversiondata), "settings/"); + await FileSystemHelper.WriteFile("configurationfileversions.json", JsonSerializer.Serialize(currentversiondata), ""); } } } diff --git a/src/Models/ConfigurationFileVersionData.cs b/src/Models/ConfigurationFileVersionData.cs index 3752bf4..918e591 100644 --- a/src/Models/ConfigurationFileVersionData.cs +++ b/src/Models/ConfigurationFileVersionData.cs @@ -8,11 +8,11 @@ public class ConfigurationFileVersionData /// /// Gets or sets the resource types. /// - public string ResourceTypes { get; set; } = "0.0.0"; + public string resourcetypes { get; set; } = "0.0.0"; /// /// Gets or sets the resource locations. /// - public string ResourceLocations { get; set; } = "0.0.0"; + public string resourcelocations { get; set; } = "0.0.0"; } } diff --git a/src/programsettings.json b/src/programsettings.json index fbcd685..d322d97 100644 --- a/src/programsettings.json +++ b/src/programsettings.json @@ -1,5 +1,5 @@ { "FeedbackURL": "https://forms.office.com/r/M2EZLg6zKq", "latestNewsEnabled": "false", - "toolVersion":"4.2.0" + "toolVersion":"4.2.1" }