当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - VB Copy exited with code 1

问题描述:

I have a minecraft custom launcher, so problem is whenI try to compile it in VB 2013 i get

Error 1

The command "copy

C:\Users\Vuzee\Desktop\MCLauncherNET.git\refs\heads\master

C:\Users\Vuzee\Desktop\MCLauncherNET\MCLauncher.net\bin\Debug\commitid.txt"

exited with code 1. MCLauncher.net

So how can i fix it, I googled about it and it says when directory path in not in " "

I have only this copy command:

File.Copy(file, mcDir + Path.DirectorySeparatorChar + "bin" + Path.DirectorySeparatorChar + Path.GetFileName(file));

And even when i delete it i get same error, so i dont know what is a problem

Here is full sourcecode of launcher: https://github.com/Digiex/MCLauncher.NET

网友答案:

FIXED IT

The problem was in prebuild events, there was copy command. I just deleted it and it worked!

分享给朋友:
您可能感兴趣的文章:
随机阅读: