Add MSBuild CI/CD workflow for automated builds - #331028
Conversation
This workflow automates the build process using MSBuild for the main branch on push and pull request events.
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a GitHub Actions workflow to build the repository on Windows using MSBuild, enabling CI checks on pushes and pull requests to main.
Changes:
- Introduces a new
MSBuildGitHub Actions workflow triggered onpush/pull_requesttomain - Restores NuGet packages and builds with
msbuildusing aReleaseconfiguration - Sets minimal workflow permissions (
contents: read)
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| env: | ||
| # Path to the solution file relative to the root of the project. | ||
| SOLUTION_FILE_PATH: . |
|
|
||
| - name: Restore NuGet packages | ||
| working-directory: ${{env.GITHUB_WORKSPACE}} | ||
| run: nuget restore ${{env.SOLUTION_FILE_PATH}} |
| working-directory: ${{env.GITHUB_WORKSPACE}} | ||
| # Add additional options to the MSBuild command line here (like platform or verbosity level). | ||
| # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference | ||
| run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} |
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Add MSBuild to PATH | ||
| uses: microsoft/setup-msbuild@v1.0.2 |
|
|
||
| - name: Add MSBuild to PATH | ||
| uses: microsoft/setup-msbuild@v1.0.2 | ||
|
|
|
guuruu8 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This workflow automates the build process using MSBuild for the main branch on push and pull request events.
.github/workflows/msbuild.yml