Skip to content
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

support for net45 and make baseurl writable for testcase usage #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion Kavenegar.Core/Kavenegar.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Version>1.0.6</Version>

<TargetFrameworks>netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard1.6;netstandard2.0;</TargetFrameworks>
<TargetFrameworks>netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard1.6;netstandard2.0;net45</TargetFrameworks>
<Description>A cross-platform library for the kavenegar sms provider; written in C#</Description>
<RootNamespace>Kavenegar.Core</RootNamespace>
<AssemblyTitle>Kavenegar.Core</AssemblyTitle>
Expand All @@ -26,6 +26,10 @@

</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
<PackageReference Include="Microsoft.Net.Http" Version="2.2.29" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>
Expand Down
25 changes: 25 additions & 0 deletions Kavenegar.Core/Kavenegar.Core.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Kavenegar.Core", "Kavenegar.Core.csproj", "{F6F1C94F-309A-4B1F-A318-B8F0E864E97B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F6F1C94F-309A-4B1F-A318-B8F0E864E97B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F6F1C94F-309A-4B1F-A318-B8F0E864E97B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F6F1C94F-309A-4B1F-A318-B8F0E864E97B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F6F1C94F-309A-4B1F-A318-B8F0E864E97B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E1CF7921-70C3-4D04-BEA0-0174478415F4}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion Kavenegar.Core/KavenegarApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class KavenegarApi
private int _returnCode = 200;
private string _returnMessage = "";
private const string Apipath = "{0}/{1}.{2}";
private const string BaseUrl = "https://api.kavenegar.com/v1";
public static string BaseUrl = "https://api.kavenegar.com/v1";
public KavenegarApi(string apikey)
{
_apikey = apikey;
Expand Down