You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: documentation/src/main/markdown/packagemgrs/nuget.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,14 @@ This property supports exclusion of dependencies in projects that use PackageRef
30
30
A project might be using a dependency purely as a development harness and you might not want to expose that to projects that will consume the package. You can use the PrivateAssets metadata to control this behavior. [detect_product_short] looks for the PrivateAssets attribute used within PackageReference tags to identify a development dependency. [detect_product_short] will ignore the contents of the tag and only observe the presence of these PrivateAssets to exclude those development related dependencies.
31
31
For packages.config file, [detect_product_short] will look for developmentDependency tags to determine whether to include or exclude a dependency.
32
32
33
-
## Nuget Artifacts Path and Base Intermediate Output Path
34
-
[detect_product_short] supports the ArtifactsPath and BaseIntermediateOutputPath properties provided by Nuget to customise the path in which build artifacts are stored. The default location for storing the artifacts is \obj folder under each project directory in which xml file for the project such as csproj is present.
33
+
## NuGet Artifacts and Base Intermediate Output Paths
34
+
[detect_product_short] supports the ArtifactsPath and BaseIntermediateOutputPath properties provided by NuGet to customize the path in which build artifacts are stored. The default location for storing artifacts is the \obj folder under each project directory, in which XML files for the project such as csproj are present.
35
35
36
-
To simplify the output paths and gather all the artifacts in a common location, the above properties were introduced. To support these properties, [detect_product_short]introduced a property [detect.nuget.artifacts.path](../properties/detectors/nuget.md#nuget-artifacts-path)which you can provide to look for project.assets.json in a custom location.
36
+
To simplify the output paths and gather all the artifacts in a common location, support for the above properties was introduced. To support these properties, [detect_product_short]uses the detect.nuget.artifacts.path property, which allows you to specify a custom project.assets.json location.
37
37
38
-
<notetype="note">[detect_product_short]is aware that these properties can be found in Directory.Build.props file, but to solve the problem of .NET 6 requirement to get the resolved artifacts path, it is required that users provide with appropriate permissions in which artifacts are stored via this property.</note>
38
+
[detect_product_short]will examine all directories in the provided path to find the project.assets.json file for the project being scanned.
39
39
40
-
[detect_product_short] will crawl through all the directories in the provided path to find the project.assets.json file for the project being scanned.
40
+
To avoid requiring .NET 6 to get the resolved artifacts path from the Directory.Build.props file, it is required that the directory specified by the detect.nuget.artifacts.path property have permission set to allow [detect_product_short] access.
0 commit comments