Skip to content

Commit

Permalink
Updated Json.NET dependency to 12.0.2
Browse files Browse the repository at this point in the history
This commit also updates the Bazel workspace file to not be cluttered
with quite so much cruft surrounding referencing NuGet packages.
  • Loading branch information
jimevans committed May 1, 2019
1 parent a14a793 commit a0fc86c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
17 changes: 2 additions & 15 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,6 @@ net_register_sdk("net472", name = "net_sdk")
dotnet_nuget_new(
name = "json.net",
package = "newtonsoft.json",
version = "11.0.2",
build_file_content = """
package(default_visibility = [ "//visibility:public" ])
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "net_import_library", "core_import_library")
net_import_library(
name = "net45",
src = "lib/net45/Newtonsoft.Json.dll"
)
core_import_library(
name = "netcore",
src = "lib/netstandard2.0/Newtonsoft.Json.dll"
)
"""
version = "12.0.2",
build_file = "//third_party/dotnet/nuget/packages:json.net.bzl"
)
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/WebDriver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/common/WebDriver.Common.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<PackageReference Include="FryProxy" Version="1.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
<PackageReference Include="Moq" Version="4.8.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
</ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions third_party/dotnet/nuget/packages/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports_files(["json.net.bzl"])
12 changes: 12 additions & 0 deletions third_party/dotnet/nuget/packages/json.net.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package(default_visibility = [ "//visibility:public" ])
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "net_import_library", "core_import_library")

net_import_library(
name = "net45",
src = "lib/net45/Newtonsoft.Json.dll"
)

core_import_library(
name = "netcore",
src = "lib/netstandard2.0/Newtonsoft.Json.dll"
)
Binary file not shown.
Binary file not shown.

0 comments on commit a0fc86c

Please sign in to comment.