我正在尝试在 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/