Skip to content

Commit

Permalink
Create Directory.Build.props for dotnet list package command (#14601)
Browse files Browse the repository at this point in the history
* Create Directory.Build.props

* Update Directory.Build.props

---------

Co-authored-by: pinzart <[email protected]>
  • Loading branch information
pinzart90 and pinzart authored Nov 20, 2023
1 parent 4b01cef commit 69e9fe9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<PropertyGroup>
<!--
SolutionDir is mostly useful for running the dotnet list package command
Ex. of generating report of all transitive nuget dependencies in powershell:
(dotnet list $pwd\Dynamo.All.sln package - -include-transitive
Ex. of generating report of unique transitive nuget dependencies in powershell:
(dotnet list $pwd\Dynamo.All.sln package - -include-transitive) -match '^.*>' -replace '^ +> ','' -replace '\s+', ' ' | % { $_.Trim() } | % { [string]::Format("{0} {1}",$_.split(" ")[0],$_.split(" ")[1])} | Sort-Object -Unique
Note: The - -include-transitive should have a double dash without a space in between. -->
<SolutionDir>$(MSBuildThisFileDirectory)src\</SolutionDir>
</PropertyGroup>
</Project>

0 comments on commit 69e9fe9

Please sign in to comment.