-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation and comments to explain what Microsoft.DotNet.Globa…
…lTools.Sdk is used for
- Loading branch information
Nate McMaster
committed
May 1, 2018
1 parent
bde5466
commit a1ff4a7
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
<!-- In MyTool.csproj --> | ||
<Project> | ||
<Sdk Name="Microsoft.NET.Sdk" /> | ||
<Sdk Name="Microsoft.DotNet.GlobalTools.Sdk" /> | ||
|
||
<PropertyGroup> | ||
<PackAsTool>true</PackAsTool> | ||
<GenerateToolShims>true</GenerateToolShims> | ||
</PropertyGroup> | ||
</Project> | ||
``` | ||
|
||
```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` |