Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/08/19 00:23:12 (5 years ago)
Author:
mkommend
Message:

#2520: Merged 16584, 16585,16594,16595, 16625, 16658, 16659, 16672, 16707, 16729, 16792, 16796, 16797, 16799, 16819, 16906, 16907, 16908, 16933, 16945, 16992, 16994, 16995, 16996, 16997, 17014, 17015, 17017, 17020, 17021, 17022, 17023, 17024, 17029, 17086, 17087, 17088, 17089 into stable.

Location:
stable
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Persistence

  • stable/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableMemberInfo.cs

    r17097 r17105  
    4141    }
    4242    public StorableMemberInfo(StorableAttribute attribute, MemberInfo memberInfo) {
    43       DisentangledName = attribute.Name;
     43      DisentangledName = string.IsNullOrEmpty(attribute.OldName) ? attribute.Name : attribute.OldName;
    4444      DefaultValue = attribute.DefaultValue;
    4545      MemberInfo = memberInfo;
    46       if (!attribute.AllowOneWay)
     46      if (string.IsNullOrEmpty(attribute.OldName) && !attribute.AllowOneWay)
    4747        CheckPropertyAccess(memberInfo as PropertyInfo);
    4848    }
  • stable/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs

    r17097 r17105  
    3434  /// <summary>
    3535  /// Intended for serialization of all custom classes. Classes should have the
    36   /// <c>[StorableClass]</c> attribute set. The default mode is to serialize
     36  /// <c>[StorableType]</c> attribute set. The default mode is to serialize
    3737  /// members with the <c>[Storable]</c> attribute set. Alternatively the
    3838  /// storable mode can be set to <c>AllFields</c>, <c>AllProperties</c>
  • stable/HeuristicLab.Persistence/3.3/Default/Xml/XmlParser.cs

    r17097 r17105  
    288288      }
    289289    }
     290
     291    /// <summary>
     292    /// Checks if the given file can be opened as <see cref="ZipArchive" />.
     293    /// </summary>
     294    /// <param name="filename">The filename.</param>
     295    /// <returns><see langword="true" /> if the file can be opened as <see cref="ZipArchive" />; otherwise, <see langword="false" />.</returns>
     296    public static bool CanOpen(string filename) {
     297      try {
     298        using (FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read)) {
     299          using (ZipArchive zip = new ZipArchive(fs)) {
     300            return true;
     301          }
     302        }
     303      } catch (InvalidDataException) {
     304        return false;
     305      }
     306    }
    290307  }
    291308}
  • stable/HeuristicLab.Persistence/3.3/HeuristicLab.Persistence-3.3.csproj

    r17097 r17105  
    116116  </Target>
    117117  <ItemGroup>
    118     <Reference Include="Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
    119       <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    120     </Reference>
    121     <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    122       <HintPath>..\..\packages\HEAL.Attic.1.0.0-pre02\lib\net461\HEAL.Attic.dll</HintPath>
    123     </Reference>
    124118    <Reference Include="System" />
    125119    <Reference Include="System.configuration" />
     
    129123    <Reference Include="System.Data" />
    130124    <Reference Include="System.Drawing" />
    131     <Reference Include="System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
    132       <HintPath>..\..\packages\System.Drawing.Common.4.5.1\lib\net461\System.Drawing.Common.dll</HintPath>
    133     </Reference>
    134125    <Reference Include="System.IO.Compression" />
    135126    <Reference Include="System.Xml" />
     
    141132    <Compile Include="Auxiliary\TypeNameParser.cs" />
    142133    <Compile Include="Auxiliary\ReflectionTools.cs" />
    143     <None Include="packages.config" />
    144134    <None Include="Plugin.cs.frame" />
    145135    <Compile Include="Core\Configuration.cs" />
     
    311301    <Folder Include="Transformers\" />
    312302  </ItemGroup>
     303  <ItemGroup>
     304    <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     305      <SpecificVersion>False</SpecificVersion>
     306      <HintPath>..\..\bin\HEAL.Attic.dll</HintPath>
     307      <Private>False</Private>
     308    </Reference>
     309  </ItemGroup>
    313310</Project>
  • stable/HeuristicLab.Persistence/3.3/Plugin.cs.frame

    r17097 r17105  
    2929  [Plugin("HeuristicLab.Persistence", "3.3.15.$WCREV$")]
    3030  [PluginFile("HeuristicLab.Persistence-3.3.dll", PluginFileType.Assembly)]
    31   [PluginFile("HEAL.Attic.dll", PluginFileType.Assembly)]
    32   [PluginFile("Google.Protobuf.dll", PluginFileType.Assembly)]
    33   [PluginFile("System.Drawing.Common.dll", PluginFileType.Assembly)]
    3431  [PluginDependency("HeuristicLab.Tracing", "3.3")]
     32  [PluginDependency("HeuristicLab.Attic", "1.0")]
    3533  public class HeuristicLabPersistencePlugin : PluginBase { }
    3634}
Note: See TracChangeset for help on using the changeset viewer.