Settings.Designer.pas is not updated when editing Settings.settings

Just tried editing Settings.settings and then build/rebuild/rightclick Settings.settings->“Update Settings.Designer.pas”.

It does not update the file.

Hmm, this works for me. can you send me a testcase where this fails, maybe it’s something sopeiifc inside the file or project that is throwing it off…

thanx!

This is Settings.settings after I have added a new property:

<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="HDFMK.ClientSCES.Properties" GeneratedClassName="Settings">
  <Profiles />
  <Settings>
    <Setting Name="CPR_Issuer" Type="System.String" Scope="Application">
      <Value Profile="(Default)">HD-Support ApS</Value>
    </Setting>
    <Setting Name="CPR_IssuerCVR" Type="System.String" Scope="Application">
      <Value Profile="(Default)">16382477</Value>
    </Setting>
    <Setting Name="CPR_SystemName" Type="System.String" Scope="Application">
      <Value Profile="(Default)">HD-EKJ</Value>
    </Setting>
    <Setting Name="CPR_CertName" Type="System.String" Scope="Application">
      <Value Profile="(Default)">HD-SUPPORT</Value>
    </Setting>
    <Setting Name="CPR_CertStoreName" Type="System.Security.Cryptography.X509Certificates.StoreName" Scope="Application">
      <Value Profile="(Default)">My</Value>
    </Setting>
    <Setting Name="CPR_CertStoreLocation" Type="System.Security.Cryptography.X509Certificates.StoreLocation" Scope="Application">
      <Value Profile="(Default)">LocalMachine</Value>
    </Setting>
    <Setting Name="CPR_IsTest" Type="System.Boolean" Scope="Application">
      <Value Profile="(Default)">True</Value>
    </Setting>
    <Setting Name="CPR_CheckOnlyThisCivilNo" Type="System.String" Scope="Application">
      <Value Profile="(Default)"></Value>
    </Setting>

    <Setting Name="CPRDirekte_Username" Type="System.String" Scope="Application">
      <Value Profile="(Default)">3</Value>
    </Setting>
    
  </Settings>
</SettingsFile>

If I right-click and choose: Update Settings.Designer.pas - nothing happens.

Is this the correct way to modify Settings.settings ?

It is a .NET console app. Is this important?

I have just tried with a new console app - and it is the same - nothing happens.

Updates fine for me; new console app, pasted your settings over :(.

//------------------------------------------------------------------------------
// <autogenerated>
//     This Oxygene source code was generated by a tool.
//     Runtime Version: 4.0.30319.42000
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

{$HIDE H7}
{$HIDE W1}
{$HIDE W27}
{$HIDE H11}

namespace ConsoleApplication4.Properties;

type
  [System.Runtime.CompilerServices.CompilerGeneratedAttribute]
  [System.CodeDom.Compiler.GeneratedCodeAttribute('RemObjects.Fire.ManagedHelper.SettingsCodeGeneratorTool', '1.0.0.0')]
  Settings = partial sealed class(System.Configuration.ApplicationSettingsBase)
  private 
  
    class var defaultInstance: Settings := (System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()) as Settings);
    
    class method get_Default: Settings;
    begin
      exit Settings.defaultInstance;
    end;
    
    method get_CPR_Issuer: System.String;
    begin
      exit (self['CPR_Issuer'] as System.String);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('HD-Support ApS')]
    property CPR_Issuer: System.String read get_CPR_Issuer;
    
    method get_CPR_IssuerCVR: System.String;
    begin
      exit (self['CPR_IssuerCVR'] as System.String);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('16382477')]
    property CPR_IssuerCVR: System.String read get_CPR_IssuerCVR;
    
    method get_CPR_SystemName: System.String;
    begin
      exit (self['CPR_SystemName'] as System.String);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('HD-EKJ')]
    property CPR_SystemName: System.String read get_CPR_SystemName;
    
    method get_CPR_CertName: System.String;
    begin
      exit (self['CPR_CertName'] as System.String);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('HD-SUPPORT')]
    property CPR_CertName: System.String read get_CPR_CertName;
    
    method get_CPR_CertStoreName: System.Security.Cryptography.X509Certificates.StoreName;
    begin
      exit (self['CPR_CertStoreName'] as System.Security.Cryptography.X509Certificates.StoreName);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('My')]
    property CPR_CertStoreName: System.Security.Cryptography.X509Certificates.StoreName read get_CPR_CertStoreName;
    
    method get_CPR_CertStoreLocation: System.Security.Cryptography.X509Certificates.StoreLocation;
    begin
      exit (self['CPR_CertStoreLocation'] as System.Security.Cryptography.X509Certificates.StoreLocation);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('LocalMachine')]
    property CPR_CertStoreLocation: System.Security.Cryptography.X509Certificates.StoreLocation read get_CPR_CertStoreLocation;
    
    method get_CPR_IsTest: System.Boolean;
    begin
      exit (self['CPR_IsTest'] as System.Boolean);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('True')]
    property CPR_IsTest: System.Boolean read get_CPR_IsTest;
    
    method get_CPR_CheckOnlyThisCivilNo: System.String;
    begin
      exit (self['CPR_CheckOnlyThisCivilNo'] as System.String);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('')]
    property CPR_CheckOnlyThisCivilNo: System.String read get_CPR_CheckOnlyThisCivilNo;
    
    method get_CPRDirekte_Username: System.String;
    begin
      exit (self['CPRDirekte_Username'] as System.String);
    end;
    
    [System.Configuration.ApplicationScopedSettingAttribute]
    [System.Diagnostics.DebuggerNonUserCodeAttribute]
    [System.Configuration.DefaultSettingValueAttribute('3')]
    property CPRDirekte_Username: System.String read get_CPRDirekte_Username;
    
  public 
  
    class property &Default: Settings read get_Default;
    
  end;
  
end.

I use Water on Win10. Does this matter?

Wait, got it reproduced in my test VM. investigating…

Fixed for vNext