带有绝对路径的网络发布不尊重输出

问题描述 投票:0回答:1

Repro

在使用git bash的Windows上:

我创建了一些带有剃须刀页面的ASP网络核心Web应用程序。现在,我想将其发布到目录。

dotnet publish -o C:\temp\myApp

临时目录存在,而MyApp还不存在。

问题

dotnet发布到.. \ currentProjectDirectory \ tempmyApp

为什么会发生?我也尝试过在具有管理员权限的情况下运行git bash,但这没有帮助。

asp.net-core .net-core publish git-bash
1个回答
1
投票

您使用git bash。这意味着您应该使用linux-style路径:

dotnet publish -o /c/temp/myApp
© www.soinside.com 2019 - 2024. All rights reserved.