Skip to content

Newlines added to content of <CompileDependsOn> and <CopyAllFilesToSingleFolderForPackageDependsOn> #15

@franklin-ross

Description

@franklin-ross

When a file is added or removed removed, extra newlines are added to certain elements in the csproj file. It also seems to add more and more newlines if there are already newlines in there. For example I recently found over 3000 lines had been added, and I certainly hadn't added or removed that many files, which makes me think something is matching these newlines and then adding them back in twice when writing out to disk, or something similar.

For example:

  <PropertyGroup>
    <CompileDependsOn>

      $(CompileDependsOn);

      WebpackBuild;

    </CompileDependsOn>
    <CleanDependsOn>

      $(CleanDependsOn);

      WebClean

    </CleanDependsOn>
  </PropertyGroup>

and

  <PropertyGroup>
    <!-- Collects all files in ./app/bundled for packaging and deployment, whether they're in the
    project file or not. -->
    <CopyAllFilesToSingleFolderForPackageDependsOn>

      $(CopyAllFilesToSingleFolderForPackageDependsOn);

      CollectBundleOutput;

    </CopyAllFilesToSingleFolderForPackageDependsOn>
    <CopyAllFilesToSingleFolderForMsdeployDependsOn>

      $(CopyAllFilesToSingleFolderForMsdeployDependsOn);

      CollectBundleOutput;

    </CopyAllFilesToSingleFolderForMsdeployDependsOn>
  </PropertyGroup>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions