Browse Source

Add Mono and .NetCore support for Linux (#149)

Add .net4.5.2 and .netcore configurations. Exclude test project from release config. Fix typo in SimpleTest.csproj config. Add instructions for Linux and Mono users. Make README.md more succinct. Fix for review comments
pull/154/head
poornas 8 years ago
committed by Dee Koder
parent
commit
1d8dcb9439
  1. 23
      FileUploader/FileUploader.csproj
  2. 14
      Minio.Core/Minio.Core.csproj
  3. 15
      Minio.Examples/Minio.Client.Examples.Core/Minio.Client.Examples.Core.csproj
  4. 23
      Minio.Examples/Minio.Client.Examples.Net452/Minio.Client.Examples.Net452.csproj
  5. 34
      Minio.Examples/Program.cs
  6. 7
      Minio.Functional.Tests/Minio.Functional.Tests.csproj
  7. 120
      Minio.Functional.Tests/Properties/delResources.resx
  8. 21
      Minio.Net452/Minio.Net452.csproj
  9. 24
      Minio.Tests/Minio.Tests.csproj
  10. 146
      Minio.sln
  11. 42
      README.md
  12. 25
      SimpleTest/SimpleTest.csproj
  13. 32
      mono_install.sh

23
FileUploader/FileUploader.csproj

@ -32,6 +32,29 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net4.5.2|AnyCPU'">
<OutputPath>bin\net4.5.2\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.netcore|AnyCPU'">
<OutputPath>bin\.netcore\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.net4.5.2|AnyCPU'">
<OutputPath>bin\.net4.5.2\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />

14
Minio.Core/Minio.Core.csproj

@ -15,6 +15,20 @@
<OutputPath>..\..\core\lib\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='.net4.5.2|AnyCPU'">
<OutputPath>..\..\core\lib\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='.netcore|AnyCPU'">
<OutputPath>..\..\core\lib\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='net4.5.2|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='net4.5.2|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='net4.5.2|x86'" />
<ItemGroup>
<Compile Include="..\Minio\ApiEndpoints\BucketOperations.cs" Link="ApiEndpoints\BucketOperations.cs" />
<Compile Include="..\Minio\ApiEndpoints\IBucketOperations.cs" Link="ApiEndpoints\IBucketOperations.cs" />

15
Minio.Examples/Minio.Client.Examples.Core/Minio.Client.Examples.Core.csproj

@ -1,18 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp1.0</TargetFramework>
<TargetFramework>netcoreapp1.1</TargetFramework>
<AssemblyName>MinioCoreTest</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>MinioCoreTest</PackageId>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<RuntimeFrameworkVersion>1.0.3</RuntimeFrameworkVersion>
<RuntimeIdentifiers>win10-x64;ubuntu.16.04-x64;linuxmint.17.3-x64</RuntimeIdentifiers>
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='net4.5.2|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='net4.5.2|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='net4.5.2|x86'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='.netcore|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='.net4.5.2|AnyCPU'" />
<ItemGroup>
<Compile Include="..\Cases\BucketExists.cs" Link="Cases\BucketExists.cs" />
<Compile Include="..\Cases\CopyObject.cs" Link="Cases\CopyObject.cs" />

23
Minio.Examples/Minio.Client.Examples.Net452/Minio.Client.Examples.Net452.csproj

@ -31,6 +31,29 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net4.5.2|AnyCPU'">
<OutputPath>bin\net4.5.2\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.netcore|AnyCPU'">
<OutputPath>bin\.netcore\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.net4.5.2|AnyCPU'">
<OutputPath>bin\.net4.5.2\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />

34
Minio.Examples/Program.cs

@ -60,25 +60,35 @@ namespace Minio.Examples
String endPoint = null;
String accessKey = null;
String secretKey = null;
bool enableHTTPS = false;
if (Environment.GetEnvironmentVariable("SERVER_ENDPOINT") != null)
{
endPoint = Environment.GetEnvironmentVariable("SERVER_ENDPOINT");
accessKey = Environment.GetEnvironmentVariable("ACCESS_KEY");
secretKey = Environment.GetEnvironmentVariable("SECRET_KEY");
if (Environment.GetEnvironmentVariable("ENABLE_HTTPS") != null)
enableHTTPS = Environment.GetEnvironmentVariable("ENABLE_HTTPS").Equals("1");
}
else
{
endPoint = "play.minio.io:9000";
accessKey = "Q3AM3UQ867SPQQA43P2F";
secretKey = "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG";
enableHTTPS = true;
}
#if NET452
endPoint = ConfigurationManager.AppSettings["Endpoint"];
accessKey = ConfigurationManager.AppSettings["AccessKey"];
secretKey = ConfigurationManager.AppSettings["SecretKey"];
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12;
#endif
#if NETCOREAPP1_0
endPoint = "play.minio.io:9000";
accessKey = "Q3AM3UQ867SPQQA43P2F";
secretKey = "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG";
#endif
// WithSSL() enables SSL support in Minio client
var minioClient = new Minio.MinioClient(endPoint, accessKey, secretKey).WithSSL();
MinioClient minioClient = null;
if (enableHTTPS)
minioClient = new Minio.MinioClient(endPoint, accessKey, secretKey).WithSSL();
else
minioClient = new Minio.MinioClient(endPoint, accessKey, secretKey);
try
{

7
Minio.Functional.Tests/Minio.Functional.Tests.csproj

@ -1,9 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.0</TargetFramework>
<RuntimeIdentifiers>
ubuntu.16.04-x64;linuxmint.17.3-x64;win10-x64
</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
@ -11,5 +15,4 @@
<PackageReference Include="MSTest.TestFramework" Version="1.1.11" />
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
</ItemGroup>
</Project>

120
Minio.Functional.Tests/Properties/delResources.resx

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

21
Minio.Net452/Minio.Net452.csproj

@ -33,6 +33,27 @@
<DefineConstants Condition=" !$(DefineConstants.Contains(';NET')) ">$(DefineConstants);$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</DefineConstants>
<DefineConstants Condition=" $(DefineConstants.Contains(';NET')) ">$(DefineConstants.Remove($(DefineConstants.LastIndexOf(";NET"))));$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net4.5.2|AnyCPU'">
<OutputPath>bin\net4.5.2\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.netcore|AnyCPU'">
<OutputPath>bin\.netcore\</OutputPath>
<DefineConstants>TRACE;NET452</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.net4.5.2|AnyCPU'">
<OutputPath>bin\.net4.5.2\</OutputPath>
<DefineConstants>TRACE;NET452</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>

24
Minio.Tests/Minio.Tests.csproj

@ -34,6 +34,30 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'testexclude|AnyCPU'">
<OutputPath>bin\testexclude\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net4.5.2|AnyCPU'">
<OutputPath>bin\net4.5.2\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.netcore|AnyCPU'">
<OutputPath>bin\.netcore\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.net4.5.2|AnyCPU'">
<OutputPath>bin\.net4.5.2\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">

146
Minio.sln

@ -6,6 +6,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C8111804-63DA-4E74-9C1F-FEC46632A33B}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
mono_install.sh = mono_install.sh
README.md = README.md
EndProjectSection
EndProject
@ -152,14 +153,34 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Notification", "Notificatio
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
.net4.5.2|Any CPU = .net4.5.2|Any CPU
.net4.5.2|x64 = .net4.5.2|x64
.net4.5.2|x86 = .net4.5.2|x86
.netcore|Any CPU = .netcore|Any CPU
.netcore|x64 = .netcore|x64
.netcore|x86 = .netcore|x86
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
testexclude|Any CPU = testexclude|Any CPU
testexclude|x64 = testexclude|x64
testexclude|x86 = testexclude|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..net4.5.2|Any CPU.ActiveCfg = .net4.5.2|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..net4.5.2|Any CPU.Build.0 = .net4.5.2|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..net4.5.2|x64.ActiveCfg = .net4.5.2|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..net4.5.2|x64.Build.0 = .net4.5.2|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..net4.5.2|x86.ActiveCfg = .net4.5.2|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..net4.5.2|x86.Build.0 = .net4.5.2|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..netcore|Any CPU.ActiveCfg = .netcore|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..netcore|x64.ActiveCfg = .netcore|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..netcore|x64.Build.0 = .netcore|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..netcore|x86.ActiveCfg = .netcore|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}..netcore|x86.Build.0 = .netcore|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.Debug|x64.ActiveCfg = Debug|Any CPU
@ -172,6 +193,22 @@ Global
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.Release|x64.Build.0 = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.Release|x86.ActiveCfg = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.Release|x86.Build.0 = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.testexclude|Any CPU.ActiveCfg = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.testexclude|Any CPU.Build.0 = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.testexclude|x64.ActiveCfg = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.testexclude|x64.Build.0 = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.testexclude|x86.ActiveCfg = Release|Any CPU
{04E6286A-50DA-444B-B663-6D7386D4CC4A}.testexclude|x86.Build.0 = Release|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..net4.5.2|Any CPU.ActiveCfg = .net4.5.2|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..net4.5.2|x64.ActiveCfg = .net4.5.2|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..net4.5.2|x64.Build.0 = .net4.5.2|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..net4.5.2|x86.ActiveCfg = .net4.5.2|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..net4.5.2|x86.Build.0 = .net4.5.2|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..netcore|Any CPU.ActiveCfg = .netcore|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..netcore|x64.ActiveCfg = .netcore|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..netcore|x64.Build.0 = .netcore|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..netcore|x86.ActiveCfg = .netcore|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}..netcore|x86.Build.0 = .netcore|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Debug|x64.ActiveCfg = Debug|Any CPU
@ -179,11 +216,27 @@ Global
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Debug|x86.ActiveCfg = Debug|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Debug|x86.Build.0 = Debug|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Release|Any CPU.Build.0 = Release|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Release|x64.ActiveCfg = Release|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Release|x64.Build.0 = Release|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Release|x86.ActiveCfg = Release|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.Release|x86.Build.0 = Release|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.testexclude|Any CPU.ActiveCfg = testexclude|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.testexclude|Any CPU.Build.0 = testexclude|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.testexclude|x64.ActiveCfg = testexclude|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.testexclude|x64.Build.0 = testexclude|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.testexclude|x86.ActiveCfg = testexclude|Any CPU
{040B2A3E-8003-4460-80CF-6262DDDAE89D}.testexclude|x86.Build.0 = testexclude|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..net4.5.2|Any CPU.ActiveCfg = .net4.5.2|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..net4.5.2|Any CPU.Build.0 = .net4.5.2|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..net4.5.2|x64.ActiveCfg = .net4.5.2|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..net4.5.2|x64.Build.0 = .net4.5.2|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..net4.5.2|x86.ActiveCfg = .net4.5.2|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..net4.5.2|x86.Build.0 = .net4.5.2|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..netcore|Any CPU.ActiveCfg = .netcore|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..netcore|x64.ActiveCfg = .netcore|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..netcore|x64.Build.0 = .netcore|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..netcore|x86.ActiveCfg = .netcore|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}..netcore|x86.Build.0 = .netcore|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.Debug|x64.ActiveCfg = Debug|Any CPU
@ -196,6 +249,23 @@ Global
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.Release|x64.Build.0 = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.Release|x86.ActiveCfg = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.Release|x86.Build.0 = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.testexclude|Any CPU.ActiveCfg = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.testexclude|Any CPU.Build.0 = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.testexclude|x64.ActiveCfg = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.testexclude|x64.Build.0 = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.testexclude|x86.ActiveCfg = Release|Any CPU
{DB799B77-2362-4D6E-B1EA-16111E78CEF5}.testexclude|x86.Build.0 = Release|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..net4.5.2|Any CPU.ActiveCfg = .net4.5.2|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..net4.5.2|x64.ActiveCfg = .net4.5.2|x64
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..net4.5.2|x64.Build.0 = .net4.5.2|x64
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..net4.5.2|x86.ActiveCfg = .net4.5.2|x86
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..net4.5.2|x86.Build.0 = .net4.5.2|x86
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..netcore|Any CPU.ActiveCfg = .netcore|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..netcore|Any CPU.Build.0 = .netcore|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..netcore|x64.ActiveCfg = .netcore|x64
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..netcore|x64.Build.0 = .netcore|x64
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..netcore|x86.ActiveCfg = .netcore|x86
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}..netcore|x86.Build.0 = .netcore|x86
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.Debug|x64.ActiveCfg = Debug|Any CPU
@ -208,6 +278,23 @@ Global
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.Release|x64.Build.0 = Release|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.Release|x86.ActiveCfg = Release|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.Release|x86.Build.0 = Release|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.testexclude|Any CPU.ActiveCfg = Release|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.testexclude|Any CPU.Build.0 = Release|Any CPU
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.testexclude|x64.ActiveCfg = Release|x64
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.testexclude|x64.Build.0 = Release|x64
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.testexclude|x86.ActiveCfg = Release|x86
{2B75EC53-17EB-461C-A9DD-4823CF2A2E9B}.testexclude|x86.Build.0 = Release|x86
{EB17557B-4797-4883-83FF-C9E11581E3F3}..net4.5.2|Any CPU.ActiveCfg = .net4.5.2|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..net4.5.2|Any CPU.Build.0 = .net4.5.2|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..net4.5.2|x64.ActiveCfg = .net4.5.2|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..net4.5.2|x64.Build.0 = .net4.5.2|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..net4.5.2|x86.ActiveCfg = .net4.5.2|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..net4.5.2|x86.Build.0 = .net4.5.2|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..netcore|Any CPU.ActiveCfg = .netcore|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..netcore|x64.ActiveCfg = .netcore|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..netcore|x64.Build.0 = .netcore|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..netcore|x86.ActiveCfg = .netcore|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}..netcore|x86.Build.0 = .netcore|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
@ -221,6 +308,23 @@ Global
{EB17557B-4797-4883-83FF-C9E11581E3F3}.Release|x64.Build.0 = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.Release|x86.ActiveCfg = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.Release|x86.Build.0 = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.testexclude|Any CPU.ActiveCfg = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.testexclude|Any CPU.Build.0 = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.testexclude|x64.ActiveCfg = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.testexclude|x64.Build.0 = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.testexclude|x86.ActiveCfg = Release|Any CPU
{EB17557B-4797-4883-83FF-C9E11581E3F3}.testexclude|x86.Build.0 = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..net4.5.2|Any CPU.ActiveCfg = .net4.5.2|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..net4.5.2|Any CPU.Build.0 = .net4.5.2|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..net4.5.2|x64.ActiveCfg = .net4.5.2|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..net4.5.2|x64.Build.0 = .net4.5.2|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..net4.5.2|x86.ActiveCfg = .net4.5.2|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..net4.5.2|x86.Build.0 = .net4.5.2|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..netcore|Any CPU.ActiveCfg = .netcore|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..netcore|x64.ActiveCfg = .netcore|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..netcore|x64.Build.0 = .netcore|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..netcore|x86.ActiveCfg = .netcore|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}..netcore|x86.Build.0 = .netcore|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.Debug|x64.ActiveCfg = Debug|Any CPU
@ -233,6 +337,23 @@ Global
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.Release|x64.Build.0 = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.Release|x86.ActiveCfg = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.Release|x86.Build.0 = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.testexclude|Any CPU.ActiveCfg = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.testexclude|Any CPU.Build.0 = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.testexclude|x64.ActiveCfg = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.testexclude|x64.Build.0 = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.testexclude|x86.ActiveCfg = Release|Any CPU
{BEB7AAD6-D26D-4DB2-91C6-916D2EF0C13B}.testexclude|x86.Build.0 = Release|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..net4.5.2|Any CPU.ActiveCfg = .net4.5.2|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..net4.5.2|x64.ActiveCfg = .net4.5.2|x64
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..net4.5.2|x64.Build.0 = .net4.5.2|x64
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..net4.5.2|x86.ActiveCfg = .net4.5.2|x86
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..net4.5.2|x86.Build.0 = .net4.5.2|x86
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..netcore|Any CPU.ActiveCfg = .netcore|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..netcore|Any CPU.Build.0 = .netcore|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..netcore|x64.ActiveCfg = .netcore|x64
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..netcore|x64.Build.0 = .netcore|x64
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..netcore|x86.ActiveCfg = .netcore|x86
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}..netcore|x86.Build.0 = .netcore|x86
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.Debug|Any CPU.Build.0 = Debug|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.Debug|x64.ActiveCfg = Debug|Any CPU
@ -245,6 +366,23 @@ Global
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.Release|x64.Build.0 = Release|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.Release|x86.ActiveCfg = Release|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.Release|x86.Build.0 = Release|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.testexclude|Any CPU.ActiveCfg = Release|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.testexclude|Any CPU.Build.0 = Release|Any CPU
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.testexclude|x64.ActiveCfg = Release|x64
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.testexclude|x64.Build.0 = Release|x64
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.testexclude|x86.ActiveCfg = Release|x86
{54F8F8A7-B4DA-49AE-831F-5C867E58C936}.testexclude|x86.Build.0 = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..net4.5.2|Any CPU.ActiveCfg = Debug|Any CPU
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..net4.5.2|x64.ActiveCfg = Release|x64
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..net4.5.2|x64.Build.0 = Release|x64
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..net4.5.2|x86.ActiveCfg = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..net4.5.2|x86.Build.0 = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..netcore|Any CPU.ActiveCfg = Release|Any CPU
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..netcore|Any CPU.Build.0 = Release|Any CPU
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..netcore|x64.ActiveCfg = Release|x64
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..netcore|x64.Build.0 = Release|x64
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..netcore|x86.ActiveCfg = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}..netcore|x86.Build.0 = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
@ -257,6 +395,12 @@ Global
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.Release|x64.Build.0 = Release|x64
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.Release|x86.ActiveCfg = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.Release|x86.Build.0 = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.testexclude|Any CPU.ActiveCfg = Release|Any CPU
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.testexclude|Any CPU.Build.0 = Release|Any CPU
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.testexclude|x64.ActiveCfg = Release|x64
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.testexclude|x64.Build.0 = Release|x64
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.testexclude|x86.ActiveCfg = Release|x86
{9A754E7C-2D22-4AD7-BF1A-CA731920C8D4}.testexclude|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

42
README.md

@ -110,15 +110,51 @@ namespace FileUploader
```
## Running Minio Client Examples
* Clone this repository.
#### On Windows
* Clone this repository and open the Minio.Sln in Visual Studio 2017.
* Build the project to produce the Minio.Examples console app.
* Enter your credentials and bucket name, object name etc.in Minio.Examples/Program.cs
Uncomment the example test cases such as below in Program.cs to run an example.
```cs
//Cases.MakeBucket.Run(minioClient, bucketName).Wait();
```
* Run the Minio.Client.Examples.NET452 or Minio.Client.Examples.NetCore project from Visual Studio
#### On Linux (Ubuntu 16.04 and above)
##### Setting up Mono and .NETCore on Linux
<blockquote> NOTE: minio-dotnet requires mono 5.0.1 stable release and .NET Core 1.0 SDK to build on Linux. </blockquote>
* Install [.NETCore](https://www.microsoft.com/net/core#linuxredhat) and [Mono](http://www.mono-project.com/download/#download-lin) for your distro. See sample script to install .NETCore and Mono for Ubuntu Xenial [mono_install.sh](https://github.com/minio/minio-dotnet/blob/master/mono_install.sh)
```
$ ./mono_install.sh
```
##### Running Minio.Examples
* Clone this project
```
$ git clone https://github.com/minio/minio-dotnet && cd minio-dotnet
```
* Move into Minio.Examples directory and enter your credentials and bucket name, object name etc.
* Enter your credentials and bucket name, object name etc. in Minio.Examples/Program.cs
Uncomment the example test cases such as below in Program.cs to run an example.
```cs
//Cases.MakeBucket.Run(minioClient, bucketName).Wait();
```
* To run .NET4.5.2 example,
```
$ mono nuget.exe restore
$ msbuild /p:Configuration=.net4.5.2 /t:Clean
$ msbuild /p:Configuration=.net4.5.2
$ ./Minio.Examples/Minio.Client.Examples.Net452/bin/.net4.5.2/Minio.Client.Examples.Net452.exe
```
* To run .NetCore example,
```
$ dotnet msbuild /p:Configuration=.netcore
$ cd Minio.Examples/Minio.Client.Examples.Core
$ dotnet restore
$ dotnet run
```
#### Bucket Operations
* [MakeBucket.cs](https://github.com/minio/minio-dotnet/blob/master/Minio.Examples/Cases/MakeBucket.cs)

25
SimpleTest/SimpleTest.csproj

@ -32,9 +32,32 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net4.5.2|AnyCPU'">
<OutputPath>bin\net4.5.2\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.netcore|AnyCPU'">
<OutputPath>bin\.netcore\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.net4.5.2|AnyCPU'">
<OutputPath>bin\.net4.5.2\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Configuration" />
<Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Net.Http" />

32
mono_install.sh

@ -0,0 +1,32 @@
#!/bin/bash
#
# Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Download and install Mono and .NETCore for Ubuntu 16.04
main() {
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
sudo apt-get update
sudo apt-get install -yq dotnet-dev-1.0.4
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update
sudo apt-get install -yq mono-complete
sudo apt-get install -yq ca-certificates-mono
sudo apt-get install -yq mono-xsp4
}
main
Loading…
Cancel
Save