From a1ff4a711a076b1651ae75f1359b91d96bb04c68 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Tue, 1 May 2018 11:10:07 -0700 Subject: [PATCH] Add documentation and comments to explain what Microsoft.DotNet.GlobalTools.Sdk is used for --- modules/BundledPackages/BundledPackages.proj | 5 +++ modules/BundledPackages/module.targets | 4 ++ .../Microsoft.DotNet.GlobalTools.Sdk.nuspec | 1 + .../README.md | 43 +++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 src/Microsoft.DotNet.GlobalTools.Sdk/README.md diff --git a/modules/BundledPackages/BundledPackages.proj b/modules/BundledPackages/BundledPackages.proj index 03c59af93..5b04bc598 100644 --- a/modules/BundledPackages/BundledPackages.proj +++ b/modules/BundledPackages/BundledPackages.proj @@ -15,6 +15,11 @@ RemoveProperties="PublishDir" /> + diff --git a/modules/BundledPackages/module.targets b/modules/BundledPackages/module.targets index 2a5d7754b..1a00e8cf6 100644 --- a/modules/BundledPackages/module.targets +++ b/modules/BundledPackages/module.targets @@ -3,6 +3,10 @@ PreinstallBundledPackages;$(PrepareDependsOn) + Provides additional support to .NET Core teams producing global CLI tools. This package is only intended for internal Microsoft use. $copyright$ + diff --git a/src/Microsoft.DotNet.GlobalTools.Sdk/README.md b/src/Microsoft.DotNet.GlobalTools.Sdk/README.md new file mode 100644 index 000000000..354368374 --- /dev/null +++ b/src/Microsoft.DotNet.GlobalTools.Sdk/README.md @@ -0,0 +1,43 @@ +Microsoft.DotNet.GlobalTools.Sdk +================================ + +Provides additional support to .NET Core teams producing global CLI tools. This package is only intended for internal Microsoft use. + +## Usage +Projects that need to bundle and sign the global CLI tool shim should add this to their .csproj file. This will include files in the .nupkg. + +```xml + + + + + + + true + true + + +``` + +```js +// in global.json +{ + "msbuild-sdks": { + "Microsoft.DotNet.GlobalTools.Sdk": "2.1.0-rtm-12345" + } +} +``` + +### Additional options + +#### `GenerateToolShims` (property) + +A boolean flag. When `true`, tool shims will be generated for each RID listed in `GeneratedShimRuntimeIdentifiers` and included in the .nupkg. + +Default value = `false` + +#### `GeneratedShimRuntimeIdentifiers` (property) + +A semi-colon separate list of RIDs for which to generate and pack the shim. + +Default value = `win-x86;win-x64;osx-x64`