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 dotnet publish and update project config #21

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

SheepReaper
Copy link
Owner

Refactored the GitHub Actions workflow to use a more streamlined dotnet publish command by referencing predefined publish profiles. This change introduces Default and Aot publishing profiles that centralize common publishing settings and provide a foundation for future publishing scenario diversifications. By leveraging publish profiles, we ensure consistency across our build and release pipelines, while also making the process more maintainable.

In the csproj file, we've refined the project configuration by organizing property groups and incorporating UseRidGraph, preparing for potential platform identifier transitions by external dependencies like Yubico. The .gitignore modification clarifies our stance on keeping .pubxml files version-controlled unless they contain sensitive information.

The addition of Common.props, Aot.pubxml, and Default.pubxml under the PublishProfiles directory encapsulates shared properties and specific configurations for Ahead-of-Time compilation and default publishing scenarios, respectively. This setup paves the way for more targeted build optimizations and aligns with best practices for .NET application deployment.

These changes collectively aim to enhance the build efficiency, clarity in project settings, and adaptability to future .NET platform evolutions.

Refactored the GitHub Actions workflow to use a more streamlined dotnet publish command by referencing predefined publish profiles. This change introduces Default and Aot publishing profiles that centralize common publishing settings and provide a foundation for future publishing scenario diversifications. By leveraging publish profiles, we ensure consistency across our build and release pipelines, while also making the process more maintainable.

In the csproj file, we've refined the project configuration by organizing property groups and incorporating `UseRidGraph`, preparing for potential platform identifier transitions by external dependencies like Yubico. The `.gitignore` modification clarifies our stance on keeping `.pubxml` files version-controlled unless they contain sensitive information.

The addition of `Common.props`, `Aot.pubxml`, and `Default.pubxml` under the PublishProfiles directory encapsulates shared properties and specific configurations for Ahead-of-Time compilation and default publishing scenarios, respectively. This setup paves the way for more targeted build optimizations and aligns with best practices for .NET application deployment.

These changes collectively aim to enhance the build efficiency, clarity in project settings, and adaptability to future .NET platform evolutions.
@SheepReaper SheepReaper merged commit 697d0f9 into main Mar 15, 2024
2 checks passed
@SheepReaper SheepReaper deleted the feature/try-smaller branch March 15, 2024 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant