Skip to content

Commit d75633d

Browse files
committed
updated csproj and changed HTTP Patch functions
1 parent 0bb83d3 commit d75633d

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

WixSharp/Services/InventoryItem/InventoryItemService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public virtual async Task<VariantInventoryRequestResponse> GetVariantInventoryAs
5151
/// <param name="productInventoryItemId">Inventory item id</param>
5252
/// <param name="itemInventoryStatus">The <see cref="ItemInventoryStatus"/> to update.</param>
5353
/// <returns>Returns an empty object..</returns>
54-
public virtual async Task<object> UpdateItemInventoryStatusAsync(string productInventoryItemId,
54+
public virtual async Task<object> UpdateItemInventoryStatusAsync(string productInventoryItemId,
5555
ItemInventoryStatus itemInventoryStatus)
5656
{
5757
var req = PrepareRequest($"inventoryItems/{productInventoryItemId}");
@@ -60,7 +60,7 @@ public virtual async Task<object> UpdateItemInventoryStatusAsync(string productI
6060
itemInventoryStatus
6161
});
6262

63-
return await ExecuteRequestAsync<object>(req, HttpMethod.Patch, content);
63+
return await ExecuteRequestAsync<object>(req, new HttpMethod("Patch"), content);
6464
}
6565

6666
/// <summary>
@@ -79,7 +79,7 @@ public virtual async Task<object> UpdateVariantInventoryStatusAsync(long product
7979
variantInventoryRequest
8080
});
8181

82-
return await ExecuteRequestAsync<object>(req, HttpMethod.Patch, content);
82+
return await ExecuteRequestAsync<object>(req, new HttpMethod("Patch"), content);
8383
}
8484
}
8585
}

WixSharp/WixSharp.csproj

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
3+
<TargetFrameworks>netcoreapp2.1;netstandard1.4;</TargetFrameworks>
44
<AssemblyName>WixSharp</AssemblyName>
55
<RootNamespace>WixSharp</RootNamespace>
66
<Version>0.0.1</Version>
77
</PropertyGroup>
8+
<PropertyGroup>
9+
<Description>WixSharp is a C# and .NET library that helps developers easily authenticate with and manage Wix stores.</Description>
10+
<Authors>Ajay Kumar</Authors>
11+
<Copyright>Prime Penguin</Copyright>
12+
<PackageLicenseUrl>https://raw.githubusercontent.com/PrimePenguin/PrimePenguin.WixSharp/master/LICENSE</PackageLicenseUrl>
13+
<PackageProjectUrl>https://github.com/PrimePenguin/PrimePenguin.WixSharp</PackageProjectUrl>
14+
<RepositoryUrl>https://github.com/PrimePenguin/PrimePenguin.WixSharp</RepositoryUrl>
15+
<PackageTags>wix,ecommerce</PackageTags>
16+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
17+
<PackageIconUrl>https://raw.githubusercontent.com/PrimePenguin/PrimePenguin.WixSharp/master/PrimePenguin.png</PackageIconUrl>
18+
</PropertyGroup>
819
<PropertyGroup>
920
<Description>WixSharp is a C# and .NET library that helps developers easily authenticate with and manage Wix stores.</Description>
1021
<Authors>Prime Penguin</Authors>
@@ -14,5 +25,15 @@
1425
<ItemGroup>
1526
<PackageReference Include="microsoft.extensions.primitives" Version="1.1.0" />
1627
<PackageReference Include="newtonsoft.json" Version="10.0.1" />
28+
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
1729
</ItemGroup>
30+
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
31+
<DefineConstants>NETFRAMEWORK</DefineConstants>
32+
</PropertyGroup>
33+
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^netstandard\d'))">
34+
<DefineConstants>NETSTANDARD</DefineConstants>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^netcoreapp\d'))">
37+
<DefineConstants>NETCORE</DefineConstants>
38+
</PropertyGroup>
1839
</Project>

0 commit comments

Comments
 (0)