Skip to content

Commit e117b38

Browse files
committed
Initial commit
0 parents  commit e117b38

122 files changed

Lines changed: 9583 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
2+
Temp/
3+
obj/
4+
classes/
5+
generated/
6+
*.suo
7+
bin/
8+
*_out_*
9+
* Out*
10+
* out*
11+
*.ldb
12+
Thumbs.db
13+
_ReSharper*/
14+
out/
15+
*.lic
16+
*.user
17+
Out/
18+
Out*/
19+
Data/*Out*
20+
TestResults/
21+
*.ide
22+
*.vsmdi
23+
test-results/
24+
node_modules/
25+
*.userprefs
26+
packages/
27+
*.gitattributes
28+
*.pyc
29+
# Built application files
30+
*.apk
31+
*.ap_
32+
33+
# Files for the ART/Dalvik VM
34+
*.dex
35+
36+
# Java class files
37+
*.class
38+
39+
# Generated files
40+
bin/
41+
gen/
42+
out/
43+
44+
# Gradle files
45+
.gradle/
46+
build/
47+
48+
# Local configuration file (sdk path, etc)
49+
local.properties
50+
51+
# Proguard folder generated by Eclipse
52+
proguard/
53+
54+
# Log Files
55+
*.log
56+
57+
# Android Studio Navigation editor temp files
58+
.navigation/
59+
60+
# Android Studio captures folder
61+
captures/
62+
63+
# Intellij
64+
*.iml
65+
.idea/workspace.xml
66+
.idea/tasks.xml
67+
.idea/gradle.xml
68+
.idea/dictionaries
69+
.idea/libraries
70+
71+
# Keystore files
72+
*.jks
73+
74+
# External native build folder generated in Android Studio 2.2 and later
75+
.externalNativeBuild
76+
77+
# Google Services (e.g. APIs or Firebase)
78+
google-services.json
79+
80+
# Freeline
81+
freeline.py
82+
freeline/
83+
freeline_project_description.json
84+
85+
# Compiled class file
86+
*.class
87+
88+
# Log file
89+
*.log
90+
91+
# BlueJ files
92+
*.ctxt
93+
94+
# Mobile Tools for Java (J2ME)
95+
.mtj.tmp/
96+
97+
# Package Files #
98+
*.war
99+
*.ear
100+
*.zip
101+
*.tar.gz
102+
*.rar
103+
104+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
105+
hs_err_pid*
106+
107+
.DS_Store
108+
*.xcuserstate*StyleCop.Cache
109+
*StyleCop.Cache
110+
SDKs/NET/.vs/*

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2003-2017 Aspose Pty Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# GroupDocs.Conversion for Cloud SDKs
2+
This folder contains SDKs for [GroupDocs.Conversion for Cloud](https://products.groupdocs.cloud/conversion/cloud) for various platforms.
3+
4+
# Currently Available SDKs
5+
6+
Directory | Description
7+
--------- | -----------
8+
[.NET SDK](SDKs/NET) | GroupDocs.Conversion for Cloud .NET SDK
9+
10+
To use these SDKs, you will need App SID and App Key which can be looked up at [GroupDocs Cloud Dashboard](https://dashboard.groupdocs.cloud) (free registration in GroupDocs Cloud is required for this).
11+
12+
## Getting Started
13+
14+
```csharp
15+
using System;
16+
using System.Diagnostics;
17+
using GroupDocs.Conversion.Cloud.Sdk;
18+
using GroupDocs.Conversion.Cloud.Sdk.Api;
19+
using GroupDocs.Conversion.Cloud.Sdk.Model.Requests;
20+
21+
namespace Example
22+
{
23+
public class Example
24+
{
25+
public void Main()
26+
{
27+
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud/ (free registration is required).
28+
var configuration = new Configuration
29+
{
30+
AppSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
31+
AppKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
32+
};
33+
34+
var apiInstance = new ConversionApi(configuration);
35+
36+
try
37+
{
38+
var request = new GetAllPossibleConversionsRequest();
39+
40+
// Get supported file formats
41+
var response = ConversionApi.GetAllPossibleConversions(request);
42+
43+
foreach (var entry in response)
44+
{
45+
Debug.Print(string.Format("{0}: {1}", entry.SourceFileType,
46+
string.Join(",", entry.PossibleConversions));
47+
}
48+
}
49+
catch (Exception e)
50+
{
51+
Debug.Print("Exception when calling ConversionApi.GetAllPossibleConversions: " + e.Message);
52+
}
53+
}
54+
}
55+
}
56+
```
57+
58+
# Licensing
59+
All GroupDocs.Conversion for Cloud SDKs are licensed under [MIT License](LICENSE).
60+
61+
# Resources
62+
+ [**Website**](https://www.groupdocs.cloud)
63+
+ [**Product Home**](https://products.groupdocs.cloud/conversion/cloud)
64+
+ [**Documentation**](https://docs.groupdocs.cloud/display/conversioncloud/Home)
65+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/conversion)
66+
+ [**Paid Support Helpdesk**](https://helpdesk.groupdocs.cloud)
67+
+ [**Blog**](https://blog.groupdocs.cloud/category/groupdocs-products/groupdocs-conversion-product-family)

SDKs/NET/.nuget/NuGet.Config

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+
<solution>
4+
<add key="disableSourceControlIntegration" value="true" />
5+
</solution>
6+
</configuration>

SDKs/NET/.nuget/NuGet.exe

4.78 MB
Binary file not shown.

SDKs/NET/.nuget/NuGet.targets

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
5+
6+
<!-- Enable the restore command to run before builds -->
7+
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
8+
9+
<!-- Property that enables building a package from a project -->
10+
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
11+
12+
<!-- Determines if package restore consent is required to restore packages -->
13+
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
14+
15+
<!-- Download NuGet.exe if it does not already exist -->
16+
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
17+
</PropertyGroup>
18+
19+
<ItemGroup Condition=" '$(PackageSources)' == '' ">
20+
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
21+
<!-- The official NuGet package source (https://www.nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
22+
<!--
23+
<PackageSource Include="https://www.nuget.org/api/v2/" />
24+
<PackageSource Include="https://my-nuget-source/nuget/" />
25+
-->
26+
</ItemGroup>
27+
28+
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
29+
<!-- Windows specific commands -->
30+
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
31+
</PropertyGroup>
32+
33+
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
34+
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
35+
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
36+
</PropertyGroup>
37+
38+
<PropertyGroup>
39+
<PackagesProjectConfig Condition=" '$(OS)' == 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config</PackagesProjectConfig>
40+
<PackagesProjectConfig Condition=" '$(OS)' != 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config</PackagesProjectConfig>
41+
</PropertyGroup>
42+
43+
<PropertyGroup>
44+
<PackagesConfig Condition="Exists('$(MSBuildProjectDirectory)\packages.config')">$(MSBuildProjectDirectory)\packages.config</PackagesConfig>
45+
<PackagesConfig Condition="Exists('$(PackagesProjectConfig)')">$(PackagesProjectConfig)</PackagesConfig>
46+
</PropertyGroup>
47+
48+
<PropertyGroup>
49+
<!-- NuGet command -->
50+
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
51+
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
52+
53+
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
54+
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExePath)"</NuGetCommand>
55+
56+
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
57+
58+
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
59+
<NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>
60+
61+
<PaddedSolutionDir Condition=" '$(OS)' == 'Windows_NT'">"$(SolutionDir) "</PaddedSolutionDir>
62+
<PaddedSolutionDir Condition=" '$(OS)' != 'Windows_NT' ">"$(SolutionDir)"</PaddedSolutionDir>
63+
64+
<!-- Commands -->
65+
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)</RestoreCommand>
66+
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
67+
68+
<!-- We need to ensure packages are restored prior to assembly resolve -->
69+
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
70+
RestorePackages;
71+
$(BuildDependsOn);
72+
</BuildDependsOn>
73+
74+
<!-- Make the build depend on restore packages -->
75+
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
76+
$(BuildDependsOn);
77+
BuildPackage;
78+
</BuildDependsOn>
79+
</PropertyGroup>
80+
81+
<Target Name="CheckPrerequisites">
82+
<!-- Raise an error if we're unable to locate nuget.exe -->
83+
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
84+
<!--
85+
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
86+
This effectively acts as a lock that makes sure that the download operation will only happen once and all
87+
parallel builds will have to wait for it to complete.
88+
-->
89+
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
90+
</Target>
91+
92+
<Target Name="_DownloadNuGet">
93+
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
94+
</Target>
95+
96+
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
97+
<Exec Command="$(RestoreCommand)"
98+
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
99+
100+
<Exec Command="$(RestoreCommand)"
101+
LogStandardErrorAsError="true"
102+
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
103+
</Target>
104+
105+
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
106+
<Exec Command="$(BuildCommand)"
107+
Condition=" '$(OS)' != 'Windows_NT' " />
108+
109+
<Exec Command="$(BuildCommand)"
110+
LogStandardErrorAsError="true"
111+
Condition=" '$(OS)' == 'Windows_NT' " />
112+
</Target>
113+
114+
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
115+
<ParameterGroup>
116+
<OutputFilename ParameterType="System.String" Required="true" />
117+
</ParameterGroup>
118+
<Task>
119+
<Reference Include="System.Core" />
120+
<Using Namespace="System" />
121+
<Using Namespace="System.IO" />
122+
<Using Namespace="System.Net" />
123+
<Using Namespace="Microsoft.Build.Framework" />
124+
<Using Namespace="Microsoft.Build.Utilities" />
125+
<Code Type="Fragment" Language="cs">
126+
<![CDATA[
127+
try {
128+
OutputFilename = Path.GetFullPath(OutputFilename);
129+
130+
Log.LogMessage("Downloading latest version of NuGet.exe...");
131+
WebClient webClient = new WebClient();
132+
webClient.DownloadFile("https://www.nuget.org/nuget.exe", OutputFilename);
133+
134+
return true;
135+
}
136+
catch (Exception ex) {
137+
Log.LogErrorFromException(ex);
138+
return false;
139+
}
140+
]]>
141+
</Code>
142+
</Task>
143+
</UsingTask>
144+
</Project>

0 commit comments

Comments
 (0)