gpt4 book ai didi

c# - PostBuildEvent 创建目录

转载 作者:IT王子 更新时间:2023-10-29 04:46:17 25 4
gpt4 key购买 nike

我正在尝试在 Visual Studio 的 PostBuildEvent 中使用以下命令行在构建输出文件夹中创建一个名为 Design 的文件夹

mkdir $(TargetDir)Design  ....Runs Successfully but folder is not created
mkdir "$(TargetDir)Design" ....Runs Successfully but folder is not created
MD $(TargetDir)Design ....Runs Successfully but folder is not created
MD "$(TargetDir)Design" ....Runs Successfully but folder is not created

谁能告诉我我做错了什么

最佳答案

你需要做类似的事情:

if not exist DirToCreate mkdir DirToCreate

关于c# - PostBuildEvent 创建目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10508778/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com