Skip to content

Execution with dotnet engine fails if the script has spaces in the name #372

@oleg-shilo

Description

@oleg-shilo

Steps to reproduce:

  1. css "New script4.cs" (e.g. from Botepad++)

Cause:
CSharpCompiler.CompileAssemblyFromFileBatch_with_Build incorrectly formats the build command by not enclosing the project name in the quotation marks:

var cmd = $"build {projectFile.GetFileName()} {config} -o {output} {cliOptions}";

it leads to:   dotnet build New Script4.csproj --configuration Release -o bin

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions