Source/NFX/IO/FileSystem/Packaging/LocalInstallation.cs
/// <summary>
/// Updates local installation manifest if changes have been made (Modified=true)
/// </summary>
Updates local installation manifest if changes have been made (Modified=true)
Updates local installation manifest if changes have been made ( Modified = true )
public void EndInstallation()
      {
        if (!m_InstallationStarted) return;
        if (!m_Modified) return;
        var fn = Path.Combine(m_RootPath, ManifestUtils.MANIFEST_FILE_NAME);
        if (File.Exists(fn))
           throw new NFXIOException(StringConsts.LOCAL_INSTALL_PACKAGES_MANIFEST_FILE_NAME_COLLISION_ERROR.Args(fn));
        ((LaconicConfiguration)m_Packages.Configuration).SaveAs(fn);
        m_Modified = false;
        m_InstallationStarted = false;
      }
public void EndInstallation ( ) { if ( ! m_InstallationStarted ) return ; if ( ! m_Modified ) return ; var fn = Path . Combine ( m_RootPath , ManifestUtils . MANIFEST_FILE_NAME ) ; if ( File . Exists ( fn ) ) throw new NFXIOException ( StringConsts . LOCAL_INSTALL_PACKAGES_MANIFEST_FILE_NAME_COLLISION_ERROR . Args ( fn ) ) ; ( ( LaconicConfiguration ) m_Packages . Configuration ) . SaveAs ( fn ) ; m_Modified = false ; m_InstallationStarted = false ; }
Updates local installation manifest if changes have been made (Modified=true)
Updates local installation manifest if changes have been made ( Modified = true )