Sdk: dotnet pack with `/p` parameters does not work on windows

Created on 20 Oct 2017  路  2Comments  路  Source: dotnet/sdk

Steps to reproduce

From any project directory run
dotnet pack /p:VersionPrefix=9.1.2

Expected behavior

_Successfully created package '/Charlie/bin/Debug/Charlie.9.1.2.nupkg'_

Actual behavior

On Mac

_Successfully created package '/Charlie/bin/Debug/Charlie.9.1.2.nupkg'_

On Windows

_MSBUILD : error MSB1009: Project file does not exist.
Switch: p:VersionPrefix=9.1.2_

Environment data

Mac dotnet --info output:

.NET Command Line Tools (2.0.2)

Product Information:
Version: 2.0.2
Commit SHA-1 hash: a04b4bf512

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.0.2/

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

Windows dotnet --info output:

.NET Command Line Tools (2.0.2)

Product Information:
Version: 2.0.2
Commit SHA-1 hash: a04b4bf512

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.2\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

Most helpful comment

are you using cygwin/mingw? escape the / with another /, or run in powershell or cmd

All 2 comments

are you using cygwin/mingw? escape the / with another /, or run in powershell or cmd

@gulbanana thanks. I am using git bash on windows (mingw).

It does work fine in powershell/cmd.

Also escaping / also did the trick in git bash.

Thanks, closing issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joffreykern picture joffreykern  路  3Comments

dasMulli picture dasMulli  路  3Comments

clairernovotny picture clairernovotny  路  3Comments

noelitoa picture noelitoa  路  3Comments

krwq picture krwq  路  3Comments