Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Can we remove the use of If DEBUG where possible? #335

Description

Any chance we could remove these:

#if DEBUG
Path = path;
#else
Path = @"..";
#endif

There are just a few places where the CTS switches behavior based on configuration. I think it would be much more clean if this path here was passed as ".." from where CTS is used in WebTemplateStudio and WindowsTemplateStudio. Or maybe if it were a command line default "..", and the path was used for development of the CLI.

Do you accept PRs?

There is similar behavior a few more places, where I think a command line option could switch the behavior closing the gap between Debug and Release configurations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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