Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 15, 2025

This PR adds a comprehensive .github/copilot-instructions.md file to onboard coding agents to the BCApps repository, enabling them to work more efficiently and reduce the likelihood of build failures or rejected pull requests.

Overview

The BCApps repository is a specialized Microsoft Dynamics 365 Business Central application codebase using the AL (Application Language) and AL-Go framework. This presents unique challenges for coding agents unfamiliar with this ecosystem, as it differs significantly from typical web development or .NET projects.

Key Information Provided

Repository Structure & Scale:

  • 3,290+ AL files, 45MB of source code
  • AL-Go framework (Microsoft's AL development automation)
  • Windows-only development environment
  • 7 buildable AL-Go projects (System Application, Business Foundation, Developer Tools)

Critical Build Requirements:

  • Docker Desktop with Windows containers (not Linux)
  • PowerShell (not bash) for all build operations
  • BCContainerHelper module for Business Central container management
  • Container-based development environment

Build Process Documentation:

# Example: Build System Application
.\build.ps1 -ALGoProject "System Application" -AutoFill

# Example: Setup development environment
.\build\scripts\DevEnv\NewDevEnv.ps1 -ContainerName 'BCApps-Dev'

Common Pitfalls Addressed:

  • Attempting to use standard npm/dotnet build patterns (AL-Go is required)
  • Using bash instead of PowerShell for builds
  • Running Linux containers instead of Windows containers
  • Missing GitHub issue links (PRs are auto-rejected without approved issues)

Benefits for Coding Agents

This documentation will significantly reduce:

  • Time spent exploring the codebase structure
  • Build failures due to incorrect environment setup
  • PR rejections due to missing requirements or validation failures
  • Need for trial-and-error with build commands

The instructions follow the specified format with repository overview, build requirements, project layout, and explicit guidance to trust the instructions rather than searching when the provided information is complete.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: Aleyenda <15276632+Aleyenda@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Your task is to "onboard" this repository to Copilot coding agent by adding a .github/copilot-instructions.md file in the repository that contains information describing how a coding agent seeing it for the first time can work most efficiently. You wi... Add comprehensive Copilot coding agent instructions for BCApps repository Sep 15, 2025
@Copilot Copilot AI requested a review from Aleyenda September 15, 2025 08:52
Copilot finished work on behalf of Aleyenda September 15, 2025 08:52
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.

2 participants