Microsoft Visual Studio 2013 - There were compilation errors. Do you want to continue and run the latest successful build?

0

Personal is as follows: I am developing a program Windows Form to desktop in C# using Visual Studio 2013 .

However, sometimes when I click on iniciar/ start it appears some compilation errors of the project being that I have not yet given a build and even if I did, the alert message would appear again.

Whenever this happens, I have to close Visual Studio and open it again. This bothers you a lot because you're programming just thinking that the same thing will happen.

These are the errors I copied when this happens:

Output List:

Erro    12  Unable to copy file "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Erro    11  Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Exceeded retry count of 10. Failed.    GroupManager
Aviso   9   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   8   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   7   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   6   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   5   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   4   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   3   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   2   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   10  Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager
Aviso   1   Could not copy "obj\Debug\GroupManager.exe" to "bin\Debug\GroupManager.exe". Beginning retry 9 in 1000ms. O processo não pode acessar o arquivo 'bin\Debug\GroupManager.exe' porque ele está sendo usado por outro processo.    GroupManager

Program.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GroupManager
{
    static class Program
    {
        /// <summary>
        /// Ponto de entrada principal para o aplicativo.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

Folder Path:

How can I resolve this error?

    
asked by anonymous 08.01.2018 / 13:27

2 answers

1

Some program is using the compiled file (.exe), or the program itself is running. Maybe closing the program window by clicking the X, do not finish the process, just close the window. You can use the task manager to view the running processes, or to close them. Or it can be an antivirus blocking the file or folder.

    
08.01.2018 / 17:14
0

For several actions Visual Studio needs privileges from an Administration account on the machine.

To run it as Administrator, the logged-in user must have such privileges (be included in the local Administrators group on the machine).

Simply locate the Visual Studio shortcut, right-click and select the option Run como ou Administrador or Run as admninistrator , depending on the language of your operating system.

Font

    
08.01.2018 / 15:58