Skip to content
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

Simplify InternalsVisibleTo PublicKey #2575

Merged
merged 1 commit into from Feb 1, 2024

Conversation

WeihanLi
Copy link
Contributor

Use the PublicKey MSBuild property to simplify the PublicKey configuration

https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#internalsvisibleto

In addition to #2300

IMPORTANT

  • If the PR touches the public API, the changes have been approved in a separate issue with the "api-approved" label.
  • The code complies with the Coding Guidelines for C#.
  • The changes are covered by unit tests which follow the Arrange-Act-Assert syntax and the naming conventions such as is used in these tests.
  • If the PR adds a feature or fixes a bug, please update the release notes with a functional description that explains what the change means to consumers of this library, which are published on the website.
  • If the PR changes the public API the changes needs to be included by running AcceptApiChanges.ps1 or AcceptApiChanges.sh.
  • If the PR affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
    • Please also run ./build.sh --target spellcheck or .\build.ps1 --target spellcheck before pushing and check the good outcome

Copy link

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7708828146

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.463%

Totals Coverage Status
Change from base Build 7707766295: 0.0%
Covered Lines: 11945
Relevant Lines: 12130

💛 - Coveralls

@jnyrup
Copy link
Member

jnyrup commented Jan 30, 2024

Does this change anything in the produced dll/nupkg?

@WeihanLi
Copy link
Contributor Author

Does this change anything in the produced dll/nupkg?

It should remain the same as before, would just try to add the PublicKey info from the MSBuild property

@WeihanLi
Copy link
Contributor Author

https://nuget.info/packages/FluentAssertions/6.12.0 net6.0 dll info

1706609921008

new built dll info with pr changes(built with dotnet build -c Release)

image

Copy link
Member

@jnyrup jnyrup left a comment

Choose a reason for hiding this comment

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

I searched to see if defining <PublicKey> would have other effects, but at least I couldn't find any.

And found the implementing PR of this feature: dotnet/sdk#3439

@jnyrup jnyrup merged commit ede5bc6 into fluentassertions:develop Feb 1, 2024
7 checks passed
@WeihanLi WeihanLi deleted the patch-1 branch February 7, 2024 14:32
@jnyrup jnyrup added the building Building and Infrastructure of Fluent Assertions label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Building and Infrastructure of Fluent Assertions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants