Skip to content

Update global-json.md #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 4, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 54 additions & 9 deletions docs/core/tools/global-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Global.json reference
keywords: .NET, .NET Core
author: aL3891
manager: wpickett
ms.date: 06/20/2016
ms.date: 09/01/2016
ms.topic: article
ms.prod: .net-core
ms.technology: .net-core-technologies
Expand All @@ -14,30 +14,75 @@ ms.assetid: e1ac9659-425f-4486-a376-c12ca942ead8

# Global.json reference

* [projects/sources](#projects)
* [packages](#packages)

<a name="projects"></a>
## projects
Type: String[]

Specifies what folders the build system should search for projects when resolving dependencies. The build system will only search top level child folders.
Specifies which folders the build system should search for projects when resolving dependencies. The build system will only search top-level child folders.

For example:

```json
{
"projects": [ "src", "test" ]
}
```

<a name="packages"></a>
## packages
Type: String[]
Type: String

The folder to store packages.
The location to store packages.

For example:
```json
{
"packages": "packages-dir"
}
```

## sdk
Type: Object

Specifies information about the SDK.

### version
Type: String

The version of the SDK to use.

For example:

```json
{
"sdk": {
"version": "1.0.0-preview2-003121"
}
}
```

### architecture
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this valid on non-Windows platforms? Or is it simply ignored?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question @BillWagner. @blackdwarf?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, really.

Type: String

Specifies which processor architecture to target. Supported values: `x86` or `x64`.

For example:
```json
{
"sdk": {
"architecture": "x86"
}
}
```

### runtime
Type: String

Determines which runtime to target. Supported values: `clr` or `coreclr`.

For example:
```json
{
"sdk": {
"runtime": "clr"
}
}
```