Skip to content

Commit cb135ec

Browse files
committed
Zip package
1 parent 75b65c1 commit cb135ec

File tree

8 files changed

+161
-4
lines changed

8 files changed

+161
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Total Commander plugin for Azure Blob service
55

66
Prerequisites
77
---------------
8-
- .NET Framework 4.5
9-
- Azure SDK
8+
- .NET Framework 4.0 Client Profile
9+
- Total Commander 8.0+
1010
- To work with Development storage - latest Storage Emulator is required.
1111

1212
Download
@@ -21,7 +21,6 @@ Known issues
2121
---------------
2222
- 64 bit not supported (cannot compile)
2323
- Cannot remove account once added (all blobs will be removed)
24-
- Only Block blobs are supported
2524
- Background copying not supported
2625
- No Progress
2726

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
5+
</startup>
6+
</configuration>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
using System.Collections;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Tomin.TotalCmd.AzureBlob.TestClient
9+
{
10+
class Program
11+
{
12+
static void Main(string[] args)
13+
{
14+
IEnumerator en;
15+
var data = new AzureBlobWfxPlugin().FindFirst("\\", out en);
16+
17+
Console.WriteLine(data.FileName);
18+
}
19+
}
20+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("Tomin.TotalCmd.AzureBlob.TestClient")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("Tomin.TotalCmd.AzureBlob.TestClient")]
13+
[assembly: AssemblyCopyright("Copyright © 2014")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("9f328b00-0a7a-459d-b399-9566bceffda8")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{92A177B8-41A7-4C41-BD8C-BD608F006763}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>Tomin.TotalCmd.AzureBlob.TestClient</RootNamespace>
11+
<AssemblyName>Tomin.TotalCmd.AzureBlob.TestClient</AssemblyName>
12+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="System" />
37+
<Reference Include="System.Core" />
38+
<Reference Include="System.Xml.Linq" />
39+
<Reference Include="System.Data.DataSetExtensions" />
40+
<Reference Include="Microsoft.CSharp" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Xml" />
43+
<Reference Include="TotalCommander.Plugin">
44+
<HintPath>..\..\Build\TotalCommander.Plugin.dll</HintPath>
45+
</Reference>
46+
</ItemGroup>
47+
<ItemGroup>
48+
<Compile Include="Program.cs" />
49+
<Compile Include="Properties\AssemblyInfo.cs" />
50+
</ItemGroup>
51+
<ItemGroup>
52+
<None Include="App.config" />
53+
</ItemGroup>
54+
<ItemGroup>
55+
<ProjectReference Include="..\Tomin.TotalCmd.AzureBlob\Tomin.TotalCmd.AzureBlob.csproj">
56+
<Project>{7269099e-553c-4ec4-8e62-7e639adb70b8}</Project>
57+
<Name>Tomin.TotalCmd.AzureBlob</Name>
58+
</ProjectReference>
59+
</ItemGroup>
60+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
61+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
62+
Other similar extension points exist, see Microsoft.Common.targets.
63+
<Target Name="BeforeBuild">
64+
</Target>
65+
<Target Name="AfterBuild">
66+
</Target>
67+
-->
68+
</Project>

Sources/Tomin.TotalCmd.AzureBlob.sln

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ VisualStudioVersion = 12.0.30501.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tomin.TotalCmd.AzureBlob", "Tomin.TotalCmd.AzureBlob\Tomin.TotalCmd.AzureBlob.csproj", "{7269099E-553C-4EC4-8E62-7E639ADB70B8}"
77
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tomin.TotalCmd.AzureBlob.TestClient", "Tomin.TotalCmd.AzureBlob.TestClient\Tomin.TotalCmd.AzureBlob.TestClient.csproj", "{92A177B8-41A7-4C41-BD8C-BD608F006763}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{ED5765AB-4AFD-497E-A734-E1EF1ED7874E}"
11+
ProjectSection(SolutionItems) = preProject
12+
..\README.md = ..\README.md
13+
EndProjectSection
14+
EndProject
815
Global
916
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1017
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +22,10 @@ Global
1522
{7269099E-553C-4EC4-8E62-7E639ADB70B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
1623
{7269099E-553C-4EC4-8E62-7E639ADB70B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
1724
{7269099E-553C-4EC4-8E62-7E639ADB70B8}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Release|Any CPU.Build.0 = Release|Any CPU
1829
EndGlobalSection
1930
GlobalSection(SolutionProperties) = preSolution
2031
HideSolutionNode = FALSE

Sources/Tomin.TotalCmd.AzureBlob/AzureBlobWfxPlugin.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Tomin.TotalCmd.AzureBlob.Properties;
1818
using System.Threading.Tasks;
1919
using System.Threading;
20+
using System.Globalization;
2021

2122

2223
namespace Tomin.TotalCmd.AzureBlob
@@ -33,6 +34,7 @@ public class AzureBlobWfxPlugin : TotalCommanderWfxPlugin
3334

3435
public AzureBlobWfxPlugin()
3536
{
37+
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
3638
}
3739

3840
public override string PluginName
@@ -260,6 +262,7 @@ public override CustomIconResult GetCustomIcon(ref string remoteName, CustomIcon
260262
return base.GetCustomIcon(ref remoteName, extractIconFlag, out icon);
261263
}
262264

265+
263266
//-- Helpers
264267

265268
private IEnumerable<FindData> GetStorageAccounts()

Sources/Tomin.TotalCmd.AzureBlob/Tomin.TotalCmd.AzureBlob.csproj

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,23 @@
141141
</ItemGroup>
142142
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
143143
<Import Project="..\..\Build\TotalCommander.Plugin.targets" />
144-
<Target Name="AfterBuild">
144+
145+
<PropertyGroup>
146+
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\..\..\Build</MSBuildCommunityTasksPath>
147+
</PropertyGroup>
148+
149+
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>
150+
151+
<Target Name="AfterBuild">
145152
<CallTarget Targets="GenerateTotalCommanderWfxPlugin" />
146153
</Target>
154+
<Target Name="CreateZip" AfterTargets="AfterBuild">
155+
<ItemGroup>
156+
<Binaries Include="$(TargetDir)\**\*.*" Exclude="$(TargetDir)\*.zip" />
157+
</ItemGroup>
158+
<Zip Files="@(Binaries)" WorkingDirectory="$(TargetDir)" ZipFileName="$(TargetDir)$(TargetName).zip" />
159+
160+
</Target>
147161
<PropertyGroup>
148162
<PostBuildEvent>xcopy "$(TargetDir)*" "C:\Program Files\TotalComander\Plugins\wfx\AzureBlob\" /Y /S</PostBuildEvent>
149163
</PropertyGroup>

0 commit comments

Comments
 (0)