Upgrade settings file
This commit is contained in:
parent
98347e358d
commit
3f5c104935
@ -1,4 +1,5 @@
|
||||
using Microsoft.AnalysisServices;
|
||||
using BismNormalizer;
|
||||
using Microsoft.AnalysisServices;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@ -20,6 +21,18 @@ namespace AlmToolkit
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException);
|
||||
|
||||
//If new install, see if need to migrate settings file from previous version
|
||||
try
|
||||
{
|
||||
if (Settings.Default.UpgradeRequired)
|
||||
{
|
||||
Settings.Default.Upgrade();
|
||||
Settings.Default.UpgradeRequired = false;
|
||||
Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (args != null && args.Length > 0)
|
||||
{
|
||||
if (args.Length > 1)
|
||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("4.0.0.5")]
|
||||
[assembly: AssemblyFileVersion("4.0.0.5")]
|
||||
[assembly: AssemblyVersion("4.0.0.7")]
|
||||
[assembly: AssemblyFileVersion("4.0.0.7")]
|
||||
|
@ -48,7 +48,6 @@ Global
|
||||
{849693FC-AD82-4323-8A96-D6A0F6D97566}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{849693FC-AD82-4323-8A96-D6A0F6D97566}.Release|x64.Build.0 = Release|Any CPU
|
||||
{3AE5D06F-A054-4AD1-83A9-9F0B8B1FC0B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3AE5D06F-A054-4AD1-83A9-9F0B8B1FC0B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3AE5D06F-A054-4AD1-83A9-9F0B8B1FC0B4}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{3AE5D06F-A054-4AD1-83A9-9F0B8B1FC0B4}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{3AE5D06F-A054-4AD1-83A9-9F0B8B1FC0B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
16
BismNormalizer/BismNormalizer/Settings.Designer.cs
generated
16
BismNormalizer/BismNormalizer/Settings.Designer.cs
generated
@ -12,10 +12,10 @@ namespace BismNormalizer {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.2.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
|
||||
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
public static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
@ -334,5 +334,17 @@ namespace BismNormalizer {
|
||||
this["LastBimFileLocation"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool UpgradeRequired {
|
||||
get {
|
||||
return ((bool)(this["UpgradeRequired"]));
|
||||
}
|
||||
set {
|
||||
this["UpgradeRequired"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,5 +80,8 @@
|
||||
<Setting Name="LastBimFileLocation" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="UpgradeRequired" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
@ -85,6 +85,9 @@
|
||||
<setting name="LastBimFileLocation" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="UpgradeRequired" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</BismNormalizer.Settings>
|
||||
</userSettings>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /></startup>
|
||||
|
Loading…
Reference in New Issue
Block a user