Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oleg-shilo opened this issue May 21, 2024 · 0 comments
Open

Comments

@oleg-shilo
Copy link
Owner

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
oleg-shilo added a commit that referenced this issue May 21, 2024
  Issue #372: Execution with dotnet engine fails if the script has spaces in the name
oleg-shilo added a commit that referenced this issue May 21, 2024
### CLI
- Issue #371: Location of script file Unable to get correct results in hosted script
- Issue #372: Execution with dotnet engine fails if the script has spaces in the name

### CSScriptLib
- Issue #371: Location of script file Unable to get correct results in hosted script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant