Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion ProjectDiff.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectDiff.Tool", "src\ProjectDiff.Tool\ProjectDiff.Tool.csproj", "{9DE43AFB-87B2-4974-B1D8-1BC9E847768E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnet-proj-diff", "src\dotnet-proj-diff\dotnet-proj-diff.csproj", "{9DE43AFB-87B2-4974-B1D8-1BC9E847768E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectDiff.Tests", "test\ProjectDiff.Tests\ProjectDiff.Tests.csproj", "{6BB27096-AC3E-4158-A1A5-19D34EB1822E}"
EndProject
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Heavily inspired by [dotnet-affected](https://github.com/leonardochaia/dotnet-af

```shell
# Install globally
dotnet tool install --global ProjectDiff.Tool
dotnet tool install --global dotnet-proj-diff

# Or install locally
dotnet new tool-manifest # if you don't have one
dotnet tool install ProjectDiff.Tool
dotnet tool install dotnet-proj-diff
```

## Usage
Expand All @@ -28,7 +28,7 @@ Description:
Calculate which projects in a solution has changed since a specific commit

Usage:
ProjectDiff.Tool [options]
dotnet-proj-diff [options]

Options:
-?, -h, --help Show help and usage information
Expand All @@ -46,7 +46,7 @@ Options:
-o, --out, --output Output file, if not set stdout will be used
--ignore-changed-file Ignore changes in specific files. If these files are a part of the build evaluation process they will still be evaluated, however these files will be considered unchanged by the diff process []
--log-level <Critical|Debug|Error|Information|None|Trace|Warning> Set the log level for the command [default: Information]
--msbuild-traversal-version Set the version of the Microsoft.Build.Traversal SDK when using traversal output format []
--msbuild-traversal-version Set the version of the Microsoft.Build.Traversal SDK when using traversal output format
```

The cli should have some sensible defaults, so you can run it without any arguments and get a list of projects that have
Expand Down
4 changes: 2 additions & 2 deletions docs/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
dotnet-version: 9.x

- name: Install dotnet-proj-diff
run: dotnet tool install --global ProjectDiff.Tool
run: dotnet tool install --global dotnet-proj-diff

- name: Run dotnet-proj-diff
run: dotnet-proj-diff <YOUR_SOLUTION_FILE> ${{ github.target_ref }} --output /tmp/diff.slnf
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
dotnet-version: 9.x

- name: Install dotnet-proj-diff
run: dotnet tool install --global ProjectDiff.Tool
run: dotnet tool install --global dotnet-proj-diff

# We need to figure out which commit to use for the diff. We'll hijack nx-set-shas to get the commit SHA of the last successful run of this workflow
- name: Derive appropriate SHAs for base and head for `nx affected` commands
Expand Down
4 changes: 2 additions & 2 deletions pack-and-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
set -e

dotnet pack
dotnet tool uninstall --global ProjectDiff.Tool
dotnet tool install --global --source src/ProjectDiff.Tool/bin/Release ProjectDiff.Tool --prerelease
dotnet tool uninstall --global dotnet-proj-diff
dotnet tool install --global --source src/dotnet-proj-diff/bin/Release dotnet-proj-diff --prerelease
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public sealed class ProjectDiffCommand : RootCommand
private static readonly Option<string?> MicrosoftBuildTraversalVersionOption = new("--msbuild-traversal-version")
{
Description = "Set the version of the Microsoft.Build.Traversal SDK when using traversal output format",
DefaultValueFactory = _ => null,
};

private readonly IConsole _console;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<ToolCommandName>dotnet-proj-diff</ToolCommandName>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RootNamespace>ProjectDiff.Tool</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/ProjectDiff.Tests/ProjectDiff.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\ProjectDiff.Tool\ProjectDiff.Tool.csproj" />
<ProjectReference Include="..\..\src\dotnet-proj-diff\dotnet-proj-diff.csproj" />
</ItemGroup>

</Project>
Loading