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

Personal

Is this: I am developing a program Windows Form for desktop in C# using Visual Studio 2013.

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

Every time this happens, I have to close Visual Studio and open it again. This bothers a lot because you will program only thinking that it will happen the same thing.

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:

insert the description of the image here

How can I resolve this error?

Author: sYsTeM, 2018-01-08

2 answers

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

 1
Author: isaque, 2018-01-08 16:14:53

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

To run it as an administrator it is necessary that the logged in user has such privileges (be included in the machine's local administrators gurpo).

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

insert the description of the image here

Source

 0
Author: Leandro Angelo, 2018-01-08 14:58:38