Skip to content

Fixes build errors on Windows when project path contains spaces - #196

Merged
Ivanidzo4ka merged 1 commit into
dotnet:masterfrom
tincann:master
May 23, 2018
Merged

Fixes build errors on Windows when project path contains spaces#196
Ivanidzo4ka merged 1 commit into
dotnet:masterfrom
tincann:master

Conversation

@tincann

@tincann tincann commented May 21, 2018

Copy link
Copy Markdown
Contributor

Fixes #191

The problem seemed to be that %~dp0 was used in the batch scripts without proper quoting.

@dnfclas

dnfclas commented May 21, 2018

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@Ivanidzo4ka

Copy link
Copy Markdown
Contributor

@dotnet-bot test Windows_NT Release

@Ivanidzo4ka
Ivanidzo4ka requested a review from eerhardt May 21, 2018 21:23

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tincann for the help, it's much appreciated.

I just have a couple minor comments.

Comment thread src/Native/build.cmd Outdated

set VSCMD_START_DIR="%__currentScriptDir%"

set VSCMD_START_DIR=%__currentScriptDir%

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this set different than the 2 below? For example, the two below have the format set "name=%__currentScriptDir%" where this one doesn't have the surrounding double-quotes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I've added the quotes again (also around the variable for consistency).

Comment thread src/Native/build.proj
<!-- Run script that invokes Cmake to create VS files, and then calls msbuild to compile them -->
<Message Text="$(MSBuildProjectDirectory)\build.cmd $(BuildArgs)" Importance="High"/>
<Exec Command="$(MSBuildProjectDirectory)\build.cmd $(BuildArgs)" />
<Exec Command="&quot;$(MSBuildProjectDirectory)\build.cmd&quot; $(BuildArgs)" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears the unix build has the same issue. Would it be possible to fix the Unix build as well?

@tincann tincann May 22, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly, I have some time in the end of the week. Shall I put this in a new pull request, so the Windows fix can already be put to use now?

@eerhardt eerhardt May 22, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is totally fine with me to create another PR for that.

@tincann tincann changed the title Fixes build errors when project path contains spaces Fixes build errors on Windows when project path contains spaces May 22, 2018

@Ivanidzo4ka Ivanidzo4ka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@Ivanidzo4ka
Ivanidzo4ka merged commit 76393f4 into dotnet:master May 23, 2018
eerhardt pushed a commit to eerhardt/machinelearning that referenced this pull request Jul 27, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants