8000 Add /t:CompareCliSnapshots and /t:UpdateCliSnapshots by edvilme · Pull Request #48396 · dotnet/sdk · GitHub
[go: up one dir, main page]

Skip to content

Add /t:CompareCliSnapshots and /t:UpdateCliSnapshots #48396

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
Apr 14, 2025
Merged
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
13 changes: 13 additions & 0 deletions test/dotnet.Tests/dotnet.Tests.csproj
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am open to suggestions on what the name should be (or if it should be on this project even), this made sense to me. I also wanted to keep the name simple so it would be fast to type before doing a commit (similar to UpdateXlf)

Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,17 @@

<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />

<Target Name="CompareCliSnapshots">
<ItemGroup>
<SnapshotFiles Include="$(ArtifactsBinDir)redist\$(Configuration)\snapshots\**\*.received.*" />
</ItemGroup>
<Copy SourceFiles="@(SnapshotFiles)" DestinationFolder="$(MSBuildThisFileDirectory)CompletionTests\snapshots\%(RecursiveDir)" SkipUnchangedFiles="true" />
</Target>

<Target Name="UpdateCliSnapshots">
<ItemGroup>
<SnapshotFiles Include="$(MSBuildThisFileDirectory)CompletionTests\snapshots\**\*.received.*" />
</ItemGroup>
<Move SourceFiles="@(SnapshotFiles)" DestinationFiles="@(SnapshotFiles->Replace('received', 'verified'))" />
</Target>
</Project>
0