Skip to content

Commit 3c191f5

Browse files
authored
Improve version content for the PackageReference tag (dotnet#2494)
1 parent 2d39357 commit 3c191f5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/core/tools/csproj.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Item that specifies a NuGet dependency in the project. The `Include` attribute s
9797
```
9898

9999
#### Version
100-
`Version` specifies the version of the package to restore. The element respects the rules of the NuGet versioning scheme.
100+
`Version` specifies the version of the package to restore. The attribute respects the rules of the [NuGet versioning](/nuget/create-packages/dependency-versions#version-ranges) scheme. The default behavior is an exact version match. For example, specifying `Version="1.2.3"` is equivalent to NuGet notation `[1.2.3]` for the exact 1.2.3 version of the package.
101101

102102
#### IncludeAssets, ExcludeAssets and PrivateAssets
103103
`IncludeAssets` attribute specifies what assets belonging to the package specified by `<PackageReference>` should be
@@ -135,7 +135,7 @@ a replacement for the `tools` node in *project.json*.
135135
```
136136

137137
#### Version
138-
`Version` specifies the version of the package to restore. The attribute respect the rules of the NuGet versioning scheme.
138+
`Version` specifies the version of the package to restore. The attribute respects the rules of the [NuGet versioning](/nuget/create-packages/dependency-versions#version-ranges) scheme. The default behavior is an exact version match. For example, specifying `Version="1.2.3"` is equivalent to NuGet notation `[1.2.3]` for the exact 1.2.3 version of the package.
139139

140140
### RuntimeIdentifiers
141141
The `<RuntimeIdentifiers>` element lets you specify a semicolon-delimited list of [Runtime Identifiers (RIDs)](../rid-catalog.md) for the project.
@@ -145,15 +145,13 @@ RIDs enable publishing a self-contained deployments.
145145
<RuntimeIdentifiers>win10-x64;osx.10.11-x64;ubuntu.16.04-x64</RuntimeIdentifiers>
146146
```
147147

148-
149148
### RuntimeIdentifier
150149
The `<RuntimeIdentifier>` element allows you to specify only one [Runtime Identifier (RID)](../rid-catalog.md) for the project. RIDs enable publishing a self-contained deployment.
151150

152151
```xml
153152
<RuntimeIdentifier>ubuntu.16.04-x64</RuntimeIdentifier>
154153
```
155154

156-
157155
### PackageTargetFallback
158156
The `<PackageTargetFallback>` element allows you to specify a set of compatible targets to be used when restoring packages. It's designed to allow packages that use the dotnet [TxM (Target x Moniker)](/nuget/schema/target-frameworks) to operate with packages that don't declare a dotnet TxM. If your project uses the dotnet TxM, then all the packages it depends on must also have a dotnet TxM, unless you add the `<PackageTargetFallback>` to your project in order to allow non-dotnet platforms to be compatible with dotnet.
159157

0 commit comments

Comments
 (0)