visual studio nmake 复制命令,退出代码为 1
visual studio nmake copy command filed with exit code 1
在我的 NMAKE visual studio 项目的构建命令行中,我有这个:
NMake /NOLOGO /R /F ...
copy D:\myfile $(outdir)..\..\mynewfile.txt
这两个文件都存在于指定位置,但我收到以下构建错误:
2> The system cannot find the file specified.
2>C:\Program Files (x86)\MSBuild\...\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command "NMake /NOLOGO /R ...
2>C:\Program Files (x86)\MSBuild\...\Microsoft.MakeFile.Targets(37,5): error MSB3073: copy D:\myfile ..\..\mynewfile.txt" exited with code 1.
visual studio构建命令行中的复制命令必须始终带有引号,无论路径如何(即是否包含空格)。命令需要是:
copy "D:\myfile" "$(outdir)..\..\mynewfile.txt"
在我的 NMAKE visual studio 项目的构建命令行中,我有这个:
NMake /NOLOGO /R /F ...
copy D:\myfile $(outdir)..\..\mynewfile.txt
这两个文件都存在于指定位置,但我收到以下构建错误:
2> The system cannot find the file specified.
2>C:\Program Files (x86)\MSBuild\...\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command "NMake /NOLOGO /R ...
2>C:\Program Files (x86)\MSBuild\...\Microsoft.MakeFile.Targets(37,5): error MSB3073: copy D:\myfile ..\..\mynewfile.txt" exited with code 1.
visual studio构建命令行中的复制命令必须始终带有引号,无论路径如何(即是否包含空格)。命令需要是:
copy "D:\myfile" "$(outdir)..\..\mynewfile.txt"