Skip to content

Universal Apps compatibility #754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions RestSharp.UAP/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RestSharp")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
32 changes: 32 additions & 0 deletions RestSharp.UAP/Properties/RestSharp.rd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains Runtime Directives, specifications about types your application accesses
through reflection and other dynamic code patterns. Runtime Directives are used to control the
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
library does not do any reflection, then you generally do not need to edit this file. However,
if your library reflects over types, especially types passed to it or derived from its types,
then you should write Runtime Directives.

The most common use of reflection in libraries is to discover information about types passed
to the library. Runtime Directives have three ways to express requirements on types passed to
your library.

1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
Use these directives to reflect over types passed as a parameter.

2. SubTypes
Use a SubTypes directive to reflect over types derived from another type.

3. AttributeImplies
Use an AttributeImplies directive to indicate that your library needs to reflect over
types or methods decorated with an attribute.

For more information on writing Runtime Directives for libraries, please visit
http://go.microsoft.com/fwlink/?LinkID=391919
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Library Name="RestSharp">

<!-- add directives for your library here -->
</Library>
</Directives>
343 changes: 343 additions & 0 deletions RestSharp.UAP/RestSharp.UAP.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{7D7F4D91-9EB4-4F01-8490-B5B2B12C9E64}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RestSharp</RootNamespace>
<AssemblyName>RestSharp</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<PlatformTarget>ARM</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<PlatformTarget>ARM</PlatformTarget>
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<PlatformTarget>x64</PlatformTarget>
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<PlatformTarget>x86</PlatformTarget>
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\restsharp\authenticators\HttpBasicAuthenticator.cs">
<Link>Authenticators\HttpBasicAuthenticator.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\IAuthenticator.cs">
<Link>Authenticators\IAuthenticator.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Authenticators\JwtAuthenticator.cs">
<Link>Authenticators\JwtAuthenticator.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\NtlmAuthenticator.cs">
<Link>Authenticators\NtlmAuthenticator.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Authenticators\OAuth1Authenticator.cs">
<Link>Authenticators\OAuth1Authenticator.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\OAuth2Authenticator.cs">
<Link>Authenticators\OAuth2Authenticator.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\extensions\CollectionExtensions.cs">
<Link>Authenticators\OAuth\Extensions\CollectionExtensions.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\extensions\OAuthExtensions.cs">
<Link>Authenticators\OAuth\Extensions\OAuthExtensions.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\extensions\StringExtensions.cs">
<Link>Authenticators\OAuth\Extensions\StringExtensions.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\extensions\TimeExtensions.cs">
<Link>Authenticators\OAuth\Extensions\TimeExtensions.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\HttpPostParameter.cs">
<Link>Authenticators\OAuth\HttpPostParameter.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\HttpPostParameterType.cs">
<Link>Authenticators\OAuth\HttpPostParameterType.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\OAuthParameterHandling.cs">
<Link>Authenticators\OAuth\OAuthParameterHandling.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\OAuthSignatureMethod.cs">
<Link>Authenticators\OAuth\OAuthSignatureMethod.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\OAuthSignatureTreatment.cs">
<Link>Authenticators\OAuth\OAuthSignatureTreatment.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\OAuthTools.cs">
<Link>Authenticators\OAuth\OAuthTools.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\OAuthType.cs">
<Link>Authenticators\OAuth\OAuthType.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\OAuthWebQueryInfo.cs">
<Link>Authenticators\OAuth\OAuthWebQueryInfo.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\OAuthWorkflow.cs">
<Link>Authenticators\OAuth\OAuthWorkflow.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\WebPair.cs">
<Link>Authenticators\OAuth\WebPair.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\WebPairCollection.cs">
<Link>Authenticators\OAuth\WebPairCollection.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\WebParameter.cs">
<Link>Authenticators\OAuth\WebParameter.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\oauth\WebParameterCollection.cs">
<Link>Authenticators\OAuth\WebParameterCollection.cs</Link>
</Compile>
<Compile Include="..\restsharp\authenticators\SimpleAuthenticator.cs">
<Link>Authenticators\SimpleAuthenticator.cs</Link>
</Compile>
<Compile Include="..\restsharp\deserializers\DeserializeAsAttribute.cs">
<Link>Deserializers\DeserializeAsAttribute.cs</Link>
</Compile>
<Compile Include="..\restsharp\deserializers\DotNetXmlDeserializer.cs">
<Link>Deserializers\DotNetXmlDeserializer.cs</Link>
</Compile>
<Compile Include="..\restsharp\deserializers\IDeserializer.cs">
<Link>Deserializers\IDeserializer.cs</Link>
</Compile>
<Compile Include="..\restsharp\deserializers\JsonDeserializer.cs">
<Link>Deserializers\JsonDeserializer.cs</Link>
</Compile>
<Compile Include="..\restsharp\deserializers\XmlAttributeDeserializer.cs">
<Link>Deserializers\XmlAttributeDeserializer.cs</Link>
</Compile>
<Compile Include="..\restsharp\deserializers\XmlDeserializer.cs">
<Link>Deserializers\XmlDeserializer.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Enum.cs">
<Link>Enum.cs</Link>
</Compile>
<Compile Include="..\restsharp\extensions\MiscExtensions.cs">
<Link>Extensions\MiscExtensions.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Extensions\MonoHttp\Helpers.cs">
<Link>Extensions\MonoHttp\Helpers.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Extensions\MonoHttp\HtmlEncoder.cs">
<Link>Extensions\MonoHttp\HtmlEncoder.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Extensions\MonoHttp\HttpUtility.cs">
<Link>Extensions\MonoHttp\HttpUtility.cs</Link>
</Compile>
<Compile Include="..\restsharp\extensions\ReflectionExtensions.cs">
<Link>Extensions\ReflectionExtensions.cs</Link>
</Compile>
<Compile Include="..\restsharp\extensions\ResponseExtensions.cs">
<Link>Extensions\ResponseExtensions.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Extensions\ResponseStatusExtensions.cs">
<Link>Extensions\ResponseStatusExtensions.cs</Link>
</Compile>
<Compile Include="..\restsharp\extensions\StringExtensions.cs">
<Link>Extensions\StringExtensions.cs</Link>
</Compile>
<Compile Include="..\restsharp\extensions\XmlExtensions.cs">
<Link>Extensions\XmlExtensions.cs</Link>
</Compile>
<Compile Include="..\RestSharp\FileParameter.cs">
<Link>FileParameter.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Http.Async.cs">
<Link>Http.Async.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Http.cs">
<Link>Http.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Http.Sync.cs">
<Link>Http.Sync.cs</Link>
</Compile>
<Compile Include="..\RestSharp\HttpCookie.cs">
<Link>HttpCookie.cs</Link>
</Compile>
<Compile Include="..\RestSharp\HttpFile.cs">
<Link>HttpFile.cs</Link>
</Compile>
<Compile Include="..\RestSharp\HttpHeader.cs">
<Link>HttpHeader.cs</Link>
</Compile>
<Compile Include="..\RestSharp\HttpParameter.cs">
<Link>HttpParameter.cs</Link>
</Compile>
<Compile Include="..\RestSharp\HttpResponse.cs">
<Link>HttpResponse.cs</Link>
</Compile>
<Compile Include="..\RestSharp\IHttp.cs">
<Link>IHttp.cs</Link>
</Compile>
<Compile Include="..\RestSharp\IHttpFactory.cs">
<Link>IHttpFactory.cs</Link>
</Compile>
<Compile Include="..\RestSharp\IHttpResponse.cs">
<Link>IHttpResponse.cs</Link>
</Compile>
<Compile Include="..\RestSharp\IRestClient.cs">
<Link>IRestClient.cs</Link>
</Compile>
<Compile Include="..\RestSharp\IRestRequest.cs">
<Link>IRestRequest.cs</Link>
</Compile>
<Compile Include="..\RestSharp\IRestResponse.cs">
<Link>IRestResponse.cs</Link>
</Compile>
<Compile Include="..\RestSharp\Parameter.cs">
<Link>Parameter.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestClient.Async.cs">
<Link>RestClient.Async.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestClient.cs">
<Link>RestClient.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestClient.Sync.cs">
<Link>RestClient.Sync.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestClientExtensions.cs">
<Link>RestClientExtensions.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestRequest.cs">
<Link>RestRequest.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestRequestAsyncHandle.cs">
<Link>RestRequestAsyncHandle.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestResponse.cs">
<Link>RestResponse.cs</Link>
</Compile>
<Compile Include="..\RestSharp\RestResponseCookie.cs">
<Link>RestResponseCookie.cs</Link>
</Compile>
<Compile Include="..\restsharp\serializers\DotNetXmlSerializer.cs">
<Link>Serializers\DotNetXmlSerializer.cs</Link>
</Compile>
<Compile Include="..\restsharp\serializers\ISerializer.cs">
<Link>Serializers\ISerializer.cs</Link>
</Compile>
<Compile Include="..\restsharp\serializers\JsonSerializer.cs">
<Link>Serializers\JsonSerializer.cs</Link>
</Compile>
<Compile Include="..\restsharp\serializers\SerializeAsAttribute.cs">
<Link>Serializers\SerializeAsAttribute.cs</Link>
</Compile>
<Compile Include="..\restsharp\serializers\XmlSerializer.cs">
<Link>Serializers\XmlSerializer.cs</Link>
</Compile>
<Compile Include="..\RestSharp\SharedAssemblyInfo.cs">
<Link>SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\restsharp\validation\Require.cs">
<Link>Validation\Require.cs</Link>
</Compile>
<Compile Include="..\restsharp\SimpleJson.cs">
<Link>SimpleJson.cs</Link>
</Compile>
<Compile Include="..\restsharp\validation\Validate.cs">
<Link>Validation\Validate.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Content Include="Properties\RestSharp.rd.xml" />
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Loading