Skip to content

auto generate list of Microsoft models in .gitignore of fscps.fsctpl #69

@FH-Inway

Description

@FH-Inway

FSC-PS uses the approach where the AOSService folder of a D365FSCM environment is used as folder of the Git repository. This requires to .gitignore all the contents of the folder that are Microsoft standard. It includes a list of all the standard modules: https://github.com/fscpscollaborative/fscps.fsctpl/blob/9558c71b42cd8ba61f8b9939b4bfda9431e16721/.gitignore#L76-L243

This long list often becomes outdated when Microsoft adds new modules. For the initial setup of a repository on a development environment, this could be covered by keeping the .gitignore file current with the modules of the latest D365FSCM version. However, after the initial setup, if a new version is installed on the environment, the .gitignore might not contain new modules added by that version.

Currently, the logic to update the FSC-PS files in a repository does not seem to cover the .gitignore file. It might also not be easy to update the file, since it is often customized to exclude additional files that are specific to a repository.

Instead, a PowerShell script (or maybe a cmdlet as part of fscps.tools, though that would require installing the module on a development environment) should be provided that could generate/update the list of modules in .gitignore. For the update part, the script would need to be able to differentiate Microsoft from custom modules. The logic of the -ExcludeMicrosoftModels parameter of the d365fo.tools cmdlet Get-D365Model might help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions