Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Running CTA without porting enabled still makes changes to project CS files. #190

@ShanshanHe

Description

@ShanshanHe

Describe the bug

When running CTA.SolutionPort.Run without porting the code (through setting PortCoreConfiguration.PortCode and PortCoreConfiguration.PortProject to False, CTA applies NormalizeWhitespace on the source file root node aggressively and overwrites the source file with the normalized version.

Expected behavior

CTA should not make any modification to the source code when porting is disabled.

Steps to Reproduce

Steps to reproduce the behavior:

  1. On your local CTA dev environment, change PortCode and PortProject here to false
  2. Build CTA and run PortCoreCLI with the following arguments: --solution-path=<path//to//your//test_solution.sln> --use-builtin-rules=True
  3. Check the changes in the source code .cs files in test solution (A easier way to check the change is to have the test solution versioning controlled through git, and check git status after step 2).

Desktop (please complete the following information)

  • OS: Windows
  • Version:10

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