Changeset 12721 for branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering
- Timestamp:
- 07/10/15 16:38:17 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/HeuristicLab.Problems.Instances.Orienteering-3.3.csproj
r11305 r12721 10 10 <RootNamespace>HeuristicLab.Problems.Instances.Orienteering</RootNamespace> 11 11 <AssemblyName>HeuristicLab.Problems.Instances.Orienteering-3.3</AssemblyName> 12 <TargetFrameworkVersion>v4. 0</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 <TargetFrameworkProfile /> 14 15 </PropertyGroup> 15 16 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 21 22 <ErrorReport>prompt</ErrorReport> 22 23 <WarningLevel>4</WarningLevel> 24 <Prefer32Bit>false</Prefer32Bit> 23 25 </PropertyGroup> 24 26 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 29 31 <ErrorReport>prompt</ErrorReport> 30 32 <WarningLevel>4</WarningLevel> 33 <Prefer32Bit>false</Prefer32Bit> 31 34 </PropertyGroup> 32 35 <PropertyGroup> … … 38 41 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> 39 42 <DebugSymbols>true</DebugSymbols> 40 <OutputPath> bin\x64\Debug\</OutputPath>43 <OutputPath>..\..\bin\</OutputPath> 41 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 42 45 <DebugType>full</DebugType> … … 44 47 <ErrorReport>prompt</ErrorReport> 45 48 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 49 <Prefer32Bit>false</Prefer32Bit> 46 50 </PropertyGroup> 47 51 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> 48 <OutputPath> bin\x64\Release\</OutputPath>52 <OutputPath>..\..\bin\</OutputPath> 49 53 <DefineConstants>TRACE</DefineConstants> 50 54 <Optimize>true</Optimize> … … 53 57 <ErrorReport>prompt</ErrorReport> 54 58 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 59 <Prefer32Bit>false</Prefer32Bit> 55 60 </PropertyGroup> 56 61 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 57 62 <DebugSymbols>true</DebugSymbols> 58 <OutputPath> bin\x86\Debug\</OutputPath>63 <OutputPath>..\..\bin\</OutputPath> 59 64 <DefineConstants>DEBUG;TRACE</DefineConstants> 60 65 <DebugType>full</DebugType> … … 62 67 <ErrorReport>prompt</ErrorReport> 63 68 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 69 <Prefer32Bit>false</Prefer32Bit> 64 70 </PropertyGroup> 65 71 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 66 <OutputPath> bin\x86\Release\</OutputPath>72 <OutputPath>..\..\bin\</OutputPath> 67 73 <DefineConstants>TRACE</DefineConstants> 68 74 <Optimize>true</Optimize> … … 71 77 <ErrorReport>prompt</ErrorReport> 72 78 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 79 <Prefer32Bit>false</Prefer32Bit> 73 80 </PropertyGroup> 74 81 <ItemGroup> 75 <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">76 <SpecificVersion>False</SpecificVersion>77 <HintPath>..\..\HeuristicLab.PluginInfrastructure\3.3\ICSharpCode.SharpZipLib.dll</HintPath>78 </Reference>79 82 <Reference Include="System" /> 83 <Reference Include="System.IO.Compression" /> 80 84 </ItemGroup> 81 85 <ItemGroup> -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/Plugin.cs.frame
r11307 r12721 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 24 24 namespace HeuristicLab.Problems.Instances.Orienteering { 25 [Plugin("HeuristicLab.Problems.Instances.Orienteering", "3.3.1 0.$WCREV$")]25 [Plugin("HeuristicLab.Problems.Instances.Orienteering", "3.3.11.$WCREV$")] 26 26 [PluginFile("HeuristicLab.Problems.Instances.Orienteering-3.3.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/Properties/AssemblyInfo.cs.frame
r11258 r12721 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 27 27 // set of attributes. Change these attribute values to modify the information 28 28 // associated with an assembly. 29 [assembly: AssemblyTitle("HeuristicLab.Problems.Instances.Orienteering -3.3")]29 [assembly: AssemblyTitle("HeuristicLab.Problems.Instances.Orienteering")] 30 30 [assembly: AssemblyDescription("")] 31 31 [assembly: AssemblyConfiguration("")] 32 32 [assembly: AssemblyCompany("HEAL")] 33 33 [assembly: AssemblyProduct("HeuristicLab")] 34 [assembly: AssemblyCopyright("(c) 2002-201 4HEAL")]34 [assembly: AssemblyCopyright("(c) 2002-2015 HEAL")] 35 35 [assembly: AssemblyTrademark("")] 36 36 [assembly: AssemblyCulture("")] … … 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3.1 0.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.11.$WCREV$")] -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/SchildeInstanceProvider.cs
r11323 r12721 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using System.IO; 25 using System.IO.Compression; 25 26 using System.Linq; 26 27 using System.Reflection; 27 28 using System.Text.RegularExpressions; 28 29 using HeuristicLab.Problems.Instances.Types; 29 using ICSharpCode.SharpZipLib.Zip;30 30 31 31 namespace HeuristicLab.Problems.Instances.Orienteering { … … 54 54 if (String.IsNullOrEmpty(instanceArchiveName)) yield break; 55 55 56 using (var instanceStream = new Zip InputStream(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) {57 foreach (var entry in GetZipContents(instanceStream).OrderBy(x => x)) {56 using (var instanceStream = new ZipArchive(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) { 57 foreach (var entry in instanceStream.Entries.Select(x => x.Name).OrderBy(x => x)) { 58 58 yield return new OPDataDescriptor(Path.GetFileNameWithoutExtension(entry), GetInstanceDescription(), entry); 59 59 } … … 64 64 var instanceArchiveName = GetResourceName(FileName + @"\.zip"); 65 65 var parser = new SchildeParser(); 66 using (var instancesZipFile = new Zip File(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) {66 using (var instancesZipFile = new ZipArchive(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) { 67 67 var entry = instancesZipFile.GetEntry(descriptor.InstanceIdentifier); 68 using (var stream = instancesZipFile.GetInputStream(entry)) {68 using (var stream = entry.Open()) { 69 69 parser.Parse(stream); 70 70 var instance = LoadInstance(parser); … … 109 109 .SingleOrDefault(x => Regex.Match(x, @".*\.Data\." + fileName).Success); 110 110 } 111 protected IEnumerable<string> GetZipContents(ZipInputStream zipFile) { 112 ZipEntry entry; 113 while ((entry = zipFile.GetNextEntry()) != null) { 114 yield return entry.Name; 115 } 116 } 111 117 112 protected virtual string GetInstanceDescription() { 118 113 return "Embedded instance of plugin version " + Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true).Cast<AssemblyFileVersionAttribute>().First().Version + "."; -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/SchildeParser.cs
r11319 r12721 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab.
Note: See TracChangeset
for help on using the changeset viewer.