JsonPoke.MSBuild 1.0.9

JsonPoke and JsonPeek build tasks:
Usage :
JSON Poke:
   1. <JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JValue="Empty-FromTest1" JPath="Project.Name">
2 a. <JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JArray="@(TestArray1)" JPath="Project.TestArray" Metadata="MyProp;Identity">
2 b. <JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JArray="t11.txt;t22.txt" JPath="Project.TestArray1">
3. <JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JObject="@(BuildNumber)" JPath="Project.TestObject" Metadata="Major;Minor;Build">
{ "Name": "P1",  "OutputFile": "P1.json",    "Variables": [  "Var1", "Var2" ]},
{  "Name": "P2", "OutputFile": "P2.json",    "Variables": [  "Var1", "Var2"  ] } ] }
   <JsonPeek JPath="$.Projects" JsonContent="$(JsonContent)">    
     <Output TaskParameter="Result" ItemName="TestProjects" />
   <Message Text="Project.IncludedLibraryVariableSetIds[?(@.Name == 'Lib-69')].Value : @(Lib69Value)" />
   <Message Text="Project values: %(TestProjects.Name)" />

Install-Package JsonPoke.MSBuild -Version 1.0.9
dotnet add package JsonPoke.MSBuild --version 1.0.9
<PackageReference Include="JsonPoke.MSBuild" Version="1.0.9">
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JsonPoke.MSBuild --version 1.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JsonPoke.MSBuild, 1.0.9"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

1.0.2: Added JPath derived from Newtonsoft.json http://james.newtonking.com/archive/2014/02/01/json-net-6-0-release-1-%E2%80%93-jsonpath-and-f-support
         1.0.4 : Fixing JSONPeek to return ITaskItem[] Result as output
         Upgrade to this version, Need change from .Value to .Result
         1.0.5 : Support for JsonContent and JsonInputPath.
         Upgrade to this version needs change from FullFilePath and JsonFile to one JsonInputPath property
         1.0.6 : JsonPeek enhancements:
         a. Returing Result as array if JPath points to an array.
         b. Returning Meaningfull object that simple strings, so support for batching: If the Result Item is an object, then we are exposing all attributes as metadata on the Result item. For Array of simple values like array of strings, "Value" metadata is exposed, so that %(array.Value) will work
1.0.7 : JsonPoke: Support for setting Objects and Object array via JObject and JArray, along with Metadata properties.
1.0.9 : JsonPeek : Support Json Array as input json


This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JsonPoke.MSBuild:

Package Downloads
Exports your octopus deploy project as JSON and masks the time and other passwords.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.9 25,044 7/20/2017
1.0.8 809 3/15/2017
1.0.7 2,619 12/15/2014
1.0.6 1,158 11/12/2014
1.0.5 837 11/11/2014
1.0.4 1,114 11/4/2014
1.0.3 735 10/2/2014
1.0.2 714 9/24/2014
1.0.1 692 9/24/2014
1.0.0 683 9/24/2014