Ошибка визуал студио исполняемый файл не существует

Like others here, (I upvoted a couple other answers) I tried multiple things for days and days, with no luck. In my case, a simple uninstall and reinstall of VS2019 didn’t solve the problem. For me, the issue started with the VS2019 16.9.3 update, when suddenly projects that built fine before reported compile errors. The bizarre errors involved not being able to find references that were clearly there. I have a large solution with about 60 projects, of which 40 were .NET Framework 4.5.2, and 20 were .NET Core, a mix of 2.x, 3.x, and a few 5.x. At first, the compile errors affected both .NET Framework apps and .NET Core apps. I was not having this problem on my home computer, nor were my coworkers having this problem.

First, I updated all the .NET Framework apps in my solution from Framework 4.5.2 to 4.7.2. This seemed to solve it for the .NET Framework apps. However, the .NET Core apps still had ridiculous build errors, «System» not found, «NUnit» not found after creating a new test project using the NUnit3 VS template.

I tried tracking down potential NuGet configuration issues; I tried shortening the Win10 PATH statement, and nothing helped. Then, after the first uninstall/reinstall of VS2019 failed to make a difference, here is what I did that led to a successful result:

  • Removed all NuGet packages from the computer, using Package Manager Console, see instructions here: https://learn.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders
    I used command: «dotnet nuget locals all -clear»

  • Uninstalled VS2019, using the «Microsoft Visual Studio Installer» app

  • Uninstalled VS2017, using the «Microsoft Visual Studio Installer» app

  • Note: DO NOT uninstall the «Microsoft Visual Studio Installer» app yet!

  • Uninstalled all other prior VS versions (I had some crud from 2010 and even 2008) using Apps & features

  • Ran the VS «InstallCleanup.exe» tool described here:
    https://learn.microsoft.com/en-us/visualstudio/install/remove-visual-studio?view=vs-2019

  • Removed the «Microsoft Visual Studio Installer» app using Apps & features

  • Uninstalled all .NET SDKs and APIs, using —all option with the .NET Uninstall Tool
    see https://learn.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool?
    and https://devblogs.microsoft.com/dotnet/announcing-the-net-core-uninstall-tool-1-0/tabs=macos

  • Uninstalled any & all remaining VS-related items showing in Apps & features, including some very old SDKs and Toolkits that were somehow on the «developer clone» PC my company issues

  • Downloaded and (re)installed the VS Installer tool

  • Using the VS Installer tool, reinstalled VS 2019

  • Reinstalled the VS extensions I use (I had captured my list of installed VS Extensions in screenshots before starting all this)

  • Rebooted once more…

After all this, all the issues that weren’t working, all the «Are you missing a using directive or an assembly reference» errors were now gone! Naturally, the needed steps will vary, based on your computer, and some of the steps I did may not have been truly necessary. After several unproductive days of nothing fixing the issue, it was time to go all-in. What a relief to have Visual Studio «just work» again!

Перейти к контенту

I am fairly new to C#..

I am using Visual Studio 12, the source I am using was last edited in VS 12.. But my problem is that it’s throwing me this error:
enter image description here

First of all, my computer username isn’t Martin, it is Administratoring — The creator of this project is Martin.. So that’s where I guess it’s coming from, but I don’t know how to fix this.

I have tried editing in Project > Properties > Build > Output Path — And it still doesn’t work. I am not too familiar with C#, and I’ve spent some time searching up for a solution but can’t find it anywhere.. Probably because I don’t know what I should be searching up (I’ve tried searching keywords and quotes from the error, but still nothing)

asked Dec 13, 2013 at 10:03

Reverb's user avatar

ReverbReverb

9132 gold badges12 silver badges17 bronze badges

0

Try these:

  1. Make sure that output path of project is correct (Project > Properties > Build > Output path)

  2. Go in menu to Build > Configuration Manager, and check if your main/entry project has checked Build. If not, check it.

phuclv's user avatar

phuclv

35.9k13 gold badges146 silver badges455 bronze badges

answered Dec 13, 2013 at 10:10

Dibin's user avatar

DibinDibin

1,4981 gold badge15 silver badges18 bronze badges

3

For those with this kind of problem — another solution:
Pay attention also to Warnings when you build solution. For example, I had referenced a dll built with higher version of .NET (4.5.2) than my main project (4.5)
After I referenced a dll built with 4.0 build process was successful.

answered Oct 28, 2016 at 6:58

Neno's user avatar

NenoNeno

7073 gold badges20 silver badges33 bronze badges

1

Please try with the steps below:

  1. Right click on the Visual Studio Project — Properties — Debug — (Start Action section) — select «Start project» radio button.
  2. Right click on the Visual Studio Project — Properties — Debug — (Enable Debuggers section) — mark «Enable the Visual Studio hosting process»
  3. Save changes Ctrl + Shift + S) and run the project again.

P.S. I experienced the same problem when I was playing with the options to redirect the console input / output to text file and have selected the option Properties — Debug — (Start Action section) — Start external program. When I moved the Solution to another location on my computer the problem occurred because it was searching for an absolute path to the executable file. Restoring the Visual Studio Project default settings (see above) fixed the problem. For your reference I am using Visual Studio 2013 Professional.

Philipp M's user avatar

Philipp M

1,8677 gold badges27 silver badges38 bronze badges

answered Aug 9, 2014 at 17:13

Ivaylo Botusharov's user avatar

I had the same problem and unfortunately non of above answers worked for me . the solution that worked for me is :

right click on your startup project and select Properties — Debug and change «start external program: » to the correct path

Done!

answered Dec 30, 2015 at 10:45

Shima.Y's user avatar

Shima.YShima.Y

3634 gold badges9 silver badges18 bronze badges

0

Application Property

Switch Target framework to 4.5.2 or something higher and bring it back to your original version (example: 4.5) then when you build, it will work.

answered Jan 3, 2020 at 6:34

Ranch Camal's user avatar

Ranch CamalRanch Camal

4811 gold badge4 silver badges11 bronze badges

You are not set the startup project so only this error occur. Mostly this problem occur when your working with more project in the single solution.

First right click on your project and «Set as Start Up Project» and/or right click on the start up file inside the selected project and click «Set StartUp File».

answered Jun 26, 2015 at 4:01

Merbin Joe's user avatar

Merbin JoeMerbin Joe

6015 silver badges27 bronze badges

I also get this error quite often.

I solve this by modifying the code (doing a very small change), saving it, then building the solution again.

answered Jul 10, 2015 at 8:31

Szabolcs Antal's user avatar

Szabolcs AntalSzabolcs Antal

8584 gold badges13 silver badges27 bronze badges

In my case I had added a project to a solution manually, where that project was targeting a higher .NET version than the rest of the projects that were referencing it. Strange… there would normally be a somewhat more verbose, literal and descriptive error in such cases.

There wasn’t a real error but there was a warning that said as much.

answered Aug 10, 2016 at 12:53

Wim Ombelets's user avatar

Wim OmbeletsWim Ombelets

4,9373 gold badges40 silver badges54 bronze badges

Go to Project > properties > Debug Tab and set the Launch to «Project»

answered Mar 6, 2020 at 17:49

Khareem's user avatar

I had the same problems. I had to change file rights. Unmark «read only» in their properties.

answered Aug 28, 2015 at 13:02

olq's user avatar

olqolq

1411 gold badge2 silver badges9 bronze badges

So… it’s mid 2021 and I’m using visual Studio 2019 (version 16.10.2) which is the current version available, on a windows 10 pc.

I had to start a new project and following this steps solved the issue;

  1. When at the menu that says “Create new project”
  2. After you’ve selected your project template it takes you to another menu that says “Configure your new project”
  3. On this menu there’s an option that says “Place solution and project in the same directory”.
  4. By default this option was not checked, so I checked it and it solved the issue.

answered Jun 28, 2021 at 9:41

Divinity's user avatar

DivinityDivinity

931 silver badge7 bronze badges

I had the same problem with visual studio 2015 , and I found that there is reference is marked so I just deleted it , maybe you can delete this reference or reinstall it again

answered Oct 25, 2021 at 21:20

Darwiesh Mustafa's user avatar

What solved it for me was deleting the line

<ImplicitUsings>enable</ImplicitUsings>

from the project property file. It caused Visual Studio to generate a (useless) file with multiple global using directive.

answered Mar 21, 2022 at 15:34

jonadv's user avatar

jonadvjonadv

3842 silver badges16 bronze badges

I faced the same problem , but in my solution i had many projects so in the solution configuration the start up project was by mistake a class library i changed the startup project and then i worked like a charm

right click on the sln => common proprties => choose right startup project .

answered May 27, 2022 at 11:45

Dark Storm's user avatar

I am fairly new to C#..

I am using Visual Studio 12, the source I am using was last edited in VS 12.. But my problem is that it’s throwing me this error:
enter image description here

First of all, my computer username isn’t Martin, it is Administratoring — The creator of this project is Martin.. So that’s where I guess it’s coming from, but I don’t know how to fix this.

I have tried editing in Project > Properties > Build > Output Path — And it still doesn’t work. I am not too familiar with C#, and I’ve spent some time searching up for a solution but can’t find it anywhere.. Probably because I don’t know what I should be searching up (I’ve tried searching keywords and quotes from the error, but still nothing)

asked Dec 13, 2013 at 10:03

Reverb's user avatar

ReverbReverb

9132 gold badges12 silver badges17 bronze badges

0

Try these:

  1. Make sure that output path of project is correct (Project > Properties > Build > Output path)

  2. Go in menu to Build > Configuration Manager, and check if your main/entry project has checked Build. If not, check it.

phuclv's user avatar

phuclv

35.9k13 gold badges146 silver badges455 bronze badges

answered Dec 13, 2013 at 10:10

Dibin's user avatar

DibinDibin

1,4981 gold badge15 silver badges18 bronze badges

3

For those with this kind of problem — another solution:
Pay attention also to Warnings when you build solution. For example, I had referenced a dll built with higher version of .NET (4.5.2) than my main project (4.5)
After I referenced a dll built with 4.0 build process was successful.

answered Oct 28, 2016 at 6:58

Neno's user avatar

NenoNeno

7073 gold badges20 silver badges33 bronze badges

1

Please try with the steps below:

  1. Right click on the Visual Studio Project — Properties — Debug — (Start Action section) — select «Start project» radio button.
  2. Right click on the Visual Studio Project — Properties — Debug — (Enable Debuggers section) — mark «Enable the Visual Studio hosting process»
  3. Save changes Ctrl + Shift + S) and run the project again.

P.S. I experienced the same problem when I was playing with the options to redirect the console input / output to text file and have selected the option Properties — Debug — (Start Action section) — Start external program. When I moved the Solution to another location on my computer the problem occurred because it was searching for an absolute path to the executable file. Restoring the Visual Studio Project default settings (see above) fixed the problem. For your reference I am using Visual Studio 2013 Professional.

Philipp M's user avatar

Philipp M

1,8677 gold badges27 silver badges38 bronze badges

answered Aug 9, 2014 at 17:13

Ivaylo Botusharov's user avatar

I had the same problem and unfortunately non of above answers worked for me . the solution that worked for me is :

right click on your startup project and select Properties — Debug and change «start external program: » to the correct path

Done!

answered Dec 30, 2015 at 10:45

Shima.Y's user avatar

Shima.YShima.Y

3634 gold badges9 silver badges18 bronze badges

0

Application Property

Switch Target framework to 4.5.2 or something higher and bring it back to your original version (example: 4.5) then when you build, it will work.

answered Jan 3, 2020 at 6:34

Ranch Camal's user avatar

Ranch CamalRanch Camal

4811 gold badge4 silver badges11 bronze badges

You are not set the startup project so only this error occur. Mostly this problem occur when your working with more project in the single solution.

First right click on your project and «Set as Start Up Project» and/or right click on the start up file inside the selected project and click «Set StartUp File».

answered Jun 26, 2015 at 4:01

Merbin Joe's user avatar

Merbin JoeMerbin Joe

6015 silver badges27 bronze badges

I also get this error quite often.

I solve this by modifying the code (doing a very small change), saving it, then building the solution again.

answered Jul 10, 2015 at 8:31

Szabolcs Antal's user avatar

Szabolcs AntalSzabolcs Antal

8584 gold badges13 silver badges27 bronze badges

In my case I had added a project to a solution manually, where that project was targeting a higher .NET version than the rest of the projects that were referencing it. Strange… there would normally be a somewhat more verbose, literal and descriptive error in such cases.

There wasn’t a real error but there was a warning that said as much.

answered Aug 10, 2016 at 12:53

Wim Ombelets's user avatar

Wim OmbeletsWim Ombelets

4,9373 gold badges40 silver badges54 bronze badges

Go to Project > properties > Debug Tab and set the Launch to «Project»

answered Mar 6, 2020 at 17:49

Khareem's user avatar

I had the same problems. I had to change file rights. Unmark «read only» in their properties.

answered Aug 28, 2015 at 13:02

olq's user avatar

olqolq

1411 gold badge2 silver badges9 bronze badges

So… it’s mid 2021 and I’m using visual Studio 2019 (version 16.10.2) which is the current version available, on a windows 10 pc.

I had to start a new project and following this steps solved the issue;

  1. When at the menu that says “Create new project”
  2. After you’ve selected your project template it takes you to another menu that says “Configure your new project”
  3. On this menu there’s an option that says “Place solution and project in the same directory”.
  4. By default this option was not checked, so I checked it and it solved the issue.

answered Jun 28, 2021 at 9:41

Divinity's user avatar

DivinityDivinity

931 silver badge7 bronze badges

I had the same problem with visual studio 2015 , and I found that there is reference is marked so I just deleted it , maybe you can delete this reference or reinstall it again

answered Oct 25, 2021 at 21:20

Darwiesh Mustafa's user avatar

What solved it for me was deleting the line

<ImplicitUsings>enable</ImplicitUsings>

from the project property file. It caused Visual Studio to generate a (useless) file with multiple global using directive.

answered Mar 21, 2022 at 15:34

jonadv's user avatar

jonadvjonadv

3842 silver badges16 bronze badges

I faced the same problem , but in my solution i had many projects so in the solution configuration the start up project was by mistake a class library i changed the startup project and then i worked like a charm

right click on the sln => common proprties => choose right startup project .

answered May 27, 2022 at 11:45

Dark Storm's user avatar

I have a very simple C++ application.

#include <stdio.h>
#include <iostream>

int main(int argc, char argv[]) {
  cout << "hi" << endl;
}

When I compile for the first time in debug mode, Visual Studio complains «Unable to start program ..Debugmyprogram.exe. The system cannot find the file specified.»

However, I think that this is obvious because I am compiling for the first time, right? This executable should not exist yet, so why is Visual Studio balking at compiling?

Thanks for your help.

Also, when I build, the following log appears:

When I build (Build->Build solution.), this log appears:

1>------ Build started: Project: print_digits, Configuration: Debug Win32 ------
1>Build started 12/23/2011 4:32:17 PM.
1>InitializeBuildStatus:
1>  Creating "Debugprint_digits.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1>  Deleting file "Debugprint_digits.unsuccessfulbuild".
1>  Touching "Debugprint_digits.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.08

It says build succeeded, but no executable is being built for some reason.

75 / 35 / 17

Регистрация: 24.07.2014

Сообщений: 357

1

Исполняемый файл для отладки, указанный в профиле отладки, не существует

26.05.2020, 17:06. Показов 15224. Ответов 1


После того как удалил папку с частью ненужных исходных кодов, вылезла эта ошибка. Восстановление файлов ситуации уже не меняет. Что делать?

Исполняемый файл для отладки, указанный в профиле отладки, не существует

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

Администратор

Эксперт .NET

15226 / 12265 / 4902

Регистрация: 17.03.2014

Сообщений: 24,867

Записей в блоге: 1

27.05.2020, 01:10

2

Справлюсь, в окне Вывод видно что проект откомпилировался с ошибками. Открой окно «Список ошибок» и исправь их.

1

IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

27.05.2020, 01:10

Помогаю со студенческими работами здесь

Инструменты для отладки
Подскажите, есть ли такой инструмент для php, который показывает построчно выполнение кода php,…

Компиляция для отладки
Когда я выполняю отладку, функции, экспортируемые из kernel32.dll имеют свои имена, которые четко…

Использование Firebug для отладки
Подскажите пожалуйста как им пользоваться для отладки javascript кода. Нажимаю на вкладку сценарий…

Что лучше для отладки?
Имеется VS2013 Express, FAR,WinDbg,Hiew,MAsm? Пробовал отлаживать но стоит WIn7 x64? Написал…

Планшет не видится для отладки
Добрый день.
Есть планшет DNS e73, который при рождении, видимо, был hyndai a7hd. На нем…

вывод значений для отладки
Имеется процедура SQL, в которой есть несколько Select&quot;ов, расчеты. Эта процедура вызывается из…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

2

  • Remove From My Forums
  • Вопрос

  • Появилась такая проблема сразу после установки…. При создании проэкта(например простое консольное приложение на Сишарпе)и при попытке запустить дебагинг выдает:  не удается начать отладку так как отсутствует объект отладки…. попробуйте перестроить
    проэкт или установить QouputPath и AsemblyName так, что бы они указывали на окончательную сборку. (все что после точек я на память написал), я много раз перестраивал, делал другие проэкты, одно и то же…  Студия создает все фалы, кроме .exe файла….

    Переустанавливал студию 2 раза. Делал 3 исправления установки, не помогает…. Сбрасывал настройки по умолчанию.

    Как исправить данную проблему?

    Среда: Microsoft Visual Studio 2012(x32) Profesional

    ОС: MS Windows 7 x64 ultimate

    • Изменено

      4 октября 2012 г. 11:18

    • Изменен тип
      PsyChokam
      4 октября 2012 г. 17:56

Ответы

  • Проверьте в свойствах проекта на вкладке Build есть настройка Output Path, там должен быть задан существующий путь в который должен быть собран EXE файл.

    AssemblyName указывается там же, только на первой вкладке Application (как правило оно совпадает с именем вашего проекта). Проверьте что и оно задано.

    Так же было бы полезным, если вы создадите пустое консольное приложение (которое у вас не получается собрать) и выложите его на файл-хостинг, а ссылку опубликуете здесь, для того чтобы была возможность проверить его работоспособность.

    Спасибо.


    Для связи [mail]

    • Помечено в качестве ответа
      Abolmasov Dmitry
      17 октября 2012 г. 11:57

У меня очень простое приложение на С++.

#include <stdio.h>
#include <iostream>

int main(int argc, char argv[]) {
  cout << "hi" << endl;
}

Когда я впервые скомпилирован в режиме отладки, Visual Studio жалуется «Невозможно запустить программу.. Debugmyprogram.exe. Система не может найти указанный файл».

Однако, я думаю, что это очевидно, потому что я собираюсь в первый раз, правильно? Этот исполняемый файл еще не существует, поэтому почему компиляция Visual Studio не выполняется?

Спасибо за вашу помощь.

Кроме того, при построении появляется следующий журнал:

Когда я создаю (Build- > Build solution.), этот журнал появляется:

1>------ Build started: Project: print_digits, Configuration: Debug Win32 ------
1>Build started 12/23/2011 4:32:17 PM.
1>InitializeBuildStatus:
1>  Creating "Debugprint_digits.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1>  Deleting file "Debugprint_digits.unsuccessfulbuild".
1>  Touching "Debugprint_digits.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.08

Он говорит, что сборка выполнена успешно, но по какой-то причине никакой исполняемый файл не создается.

I have a solution in C:full path hereVS2010blender.sln

This solution contains many projects(around 100). When I compile them, they all work fine. I can run them without any problem, and (quite) everything works (there are some bugs).
One of the projects is ALL_BUILD, but it gives the same error if I try to debug INSTALL(another project). I’m compiling with RELWithDebInfo as configuration, and if I execute the program manually it works. It is outputted in C:full path hereVS2010binRelWithDebInfo

But if I try to run the compiler, it says

«Unable to start program
C:full path hereVS2010RelWithDebInfoALL_BUILD
Specified file cannot be found»

I tried to copy the compiled program into the path required by VS, but it raised the same error.

What should I do to solve this? Right now I set up cmake to generate also a mingw project and I compile it and debug it with gdb, but this is a really a slow and impractical workflow, and I would like to use the VS debugger.

I must say that if I compile with Debug as configuration, the program doesn’t even start.

I’m using VS2010 Express on Win7 64bit

(This is a big open source program, so I don’t know exactly whatever it does)

I have a solution in C:full path hereVS2010blender.sln

This solution contains many projects(around 100). When I compile them, they all work fine. I can run them without any problem, and (quite) everything works (there are some bugs).
One of the projects is ALL_BUILD, but it gives the same error if I try to debug INSTALL(another project). I’m compiling with RELWithDebInfo as configuration, and if I execute the program manually it works. It is outputted in C:full path hereVS2010binRelWithDebInfo

But if I try to run the compiler, it says

«Unable to start program
C:full path hereVS2010RelWithDebInfoALL_BUILD
Specified file cannot be found»

I tried to copy the compiled program into the path required by VS, but it raised the same error.

What should I do to solve this? Right now I set up cmake to generate also a mingw project and I compile it and debug it with gdb, but this is a really a slow and impractical workflow, and I would like to use the VS debugger.

I must say that if I compile with Debug as configuration, the program doesn’t even start.

I’m using VS2010 Express on Win7 64bit

(This is a big open source program, so I don’t know exactly whatever it does)

Я пытаюсь запустить простое консольное приложение HelloWorld C# .NET Core и получаю эту ошибку. Поскольку я был довольно новым, я не мог решить эту проблему, попробовав определенные вещи, упомянутые в другом ответе. Пожалуйста, помогите мне решить эту проблему.

Я получаю следующую ошибку:

Исполняемый файл отладки [PATH], указанный в профиле отладки [Project Name], не существует.

Спасибо!

2020-04-10 15:42

18
ответов

Решение

Я пробовал несколько решений в течение многих дней, но единственное, что у меня сработало, — это полное удаление VS 2019 и повторная установка.

2020-07-01 20:47

Для меня все, что мне нужно было сделать, это изменить свойства проекта (щелкните проект правой кнопкой мыши в обозревателе решений -> Свойства проекта), затем на вкладке «Приложение» выберите соответствующую целевую платформу. По умолчанию он был отключен для меня.

2020-09-16 19:35

Скопируйте папку «cli» и переименуйте ее в «cli_x64». У меня это работает.



21 сен ’21 в 19:24
2021-09-21 19:24

2021-09-21 19:24

Совсем недавно у меня возникла эта проблема со свежей установкой Visual Studio 2022. Ошибка произошла, когда я попытался запустить проект с указанным DotNet Framework 5.0 вместо значения по умолчанию, которое было 6.0. Я исправил проблему, изменив свою установку с помощью установщика и вручную выбрав для установки DotNet 5.0 Framework, потому что, по-видимому, он не установлен по умолчанию, а установлен только 6.0. Сообщение об ошибке ни в малейшей степени не помогло мне сказать, что я должен был сделать. Но после этого все работает без ошибок.

2021-10-29 22:18

Решение для функций Azure

  1. Убедитесь, что вы установили.
  2. Откройте свойства вашего проекта,
    right-click project root | properties | Debug Вы должны увидеть это:
  3. Установить
    Launch к
  4. Установить
    Executable на путь твоего
    azure-functions-core-tools исполняемый файл — в
    AppDataRoamingnpmnode_modulesazure-functions-core-toolsbinfunc.exe

2021-06-10 13:39

Как и другие здесь (я проголосовал за пару других ответов), я пробовал несколько вещей в течение многих дней, но безуспешно. В моем случае простое удаление и переустановка VS2019 не решило проблему. Для меня проблема началась с обновлением VS2019 16.9.3, когда внезапно проекты, которые были построены нормально, прежде не сообщали об ошибках компиляции. Причудливые ошибки заключались в невозможности найти ссылки, которые явно там были. У меня есть большое решение с примерно 60 проектами, из которых 40 были .NET Framework 4.5.2, а 20 — .NET Core, смесь 2.x, 3.x и несколько 5.x. Сначала ошибки компиляции затронули как приложения .NET Framework, так и приложения .NET Core. У меня не было этой проблемы ни на моем домашнем компьютере, ни у моих коллег.

Во-первых, я обновил все приложения .NET Framework в своем решении с Framework 4.5.2 до 4.7.2. Похоже, это решило проблему для приложений .NET Framework. Однако в приложениях .NET Core по-прежнему были нелепые ошибки сборки: «Система» не найдена, «NUnit» не найден после создания нового тестового проекта с использованием шаблона NUnit3 VS.

Я попытался отследить потенциальные проблемы конфигурации NuGet; Я попытался сократить инструкцию Win10 PATH, но ничего не помогло. Затем, после того, как первое удаление / переустановка VS2019 не помогло, вот что я сделал, что привело к успешному результату:

  • Удалены все пакеты NuGet с компьютера с помощью консоли диспетчера пакетов, см. Инструкции здесь: https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders
    Я использовал команду: «dotnet nuget locals all -clear»

  • VS2019 был удален с помощью приложения «Microsoft Visual Studio Installer».

  • VS2017 был удален с помощью приложения «Microsoft Visual Studio Installer».

  • Примечание: НЕ удаляйте приложение «Microsoft Visual Studio Installer»!

  • Удалил все другие предыдущие версии VS (у меня было немного грязи с 2010 и даже 2008), используя приложения и функции

  • Запустите инструмент VS «InstallCleanup.exe», описанный здесь:https://docs.microsoft.com/en-us/visualstudio/install/remove-visual-studio?view=vs-2019

  • Удалено приложение «Установщик Microsoft Visual Studio» с использованием приложений и функций.

  • Удалите все .NET SDK и API, используя параметр —all с .NET Uninstall Tool, см. Https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool ? и https://devblogs.microsoft.com/dotnet/announcing-the-net-core-uninstall-tool-1-0/tabs=macos

  • Удалены все и все оставшиеся элементы, связанные с VS, отображаемые в приложениях и функциях, в том числе некоторые очень старые SDK и наборы инструментов, которые каким-то образом находились на ПК «клона разработчика», проблемы моей компании

  • Скачал и (пере) установил инструмент VS Installer

  • Используя инструмент VS Installer, переустановил VS 2019

  • Переустановил расширения VS, которые я использую (я записал свой список установленных расширений VS на снимках экрана, прежде чем начать все это)

  • Перезагрузился еще раз …

После всего этого исчезли все проблемы, которые не работали, все ошибки типа «Вам не хватает директивы using или ссылки на сборку»! Естественно, необходимые шаги будут отличаться в зависимости от вашего компьютера, и некоторые из шагов, которые я сделал, могли не быть действительно необходимыми. После нескольких дней безрезультатных действий, когда проблема не решалась, пришло время пойти ва-банк. Какое облегчение, что Visual Studio снова «просто работает»!

2021-04-08 05:34

Итак …. Я использую Visual Studio 2019 (версия 16.10.2) в Windows 10. Что исправило проблему для меня:

  1. Начать новый проект
  2. В меню под названием «Настроить новый проект» я снял отметку с опции «разместить решение и проект в одном каталоге», затем нажмите «Далее».
  3. В меню под названием «Дополнительная информация» я выбрал текущую целевую платформу, которая была «.Net5.0 (Current)», затем щелкнула «Создать».

Бамн !!! Фиксированный

2021-06-28 15:16

Решение для VS2022

Откройте свойства проекта, перейдите в раздел «Отладка» и измените значения.

2022-11-08 16:01

Чтобы решить вашу проблему, вам необходимо запустить VS2019 от имени администратора, и при этом сборка проекта будет работать нормально.

введите описание изображения здесь

Примечание: в моем случае vs2019 является профессиональным.

2020-08-03 17:35

Я исправил это, щелкнув проект правой кнопкой мыши, затем «выгрузить проект», затем снова щелкнув правой кнопкой мыши и затем «перезагрузить проект». Затем снова запустите проект, и ошибка должна исчезнуть, по крайней мере, для меня

2021-05-23 20:28

Привет, у меня возникла проблема, вы можете решить эту проблему, откройте проект свойств -> Отладка -> откройте профили запуска отладки ui -> измените рабочий каталог, установите текущую папку отладки

2022-09-28 08:21

Простой ответ: установите кроссплатформенную разработку .NET Core из установщика Visual Studio на вкладке «Рабочие нагрузки». Полностью работает и протестирован здесь :)



16 апр ’21 в 14:40
2021-04-16 14:40

2021-04-16 14:40

Для меня проблемой был неправильный путь в имени проекта.csproj.user. Это сводит меня с ума! После удаления этого файла и пересборки проекта он наконец заработал.

2021-02-19 04:22

Я изменил название своего решения, возникает эта ошибка. Потом я все поменял
using packagenameчтобы исправить один, а затем перестроить. Работает корректно.

2021-05-24 18:43

  1. Проверьте выходной путь проекта (Project> щелкните правой кнопкой мыши Properties> Build> Output path)
  2. Перейдите в меню «Сборка»> «Диспетчер конфигурации». Убедитесь, что в myMLApp установлен флажок «Сборка».
  3. Чистый раствор. Постройте решение.

источникссылка на

2021-05-26 15:36

Причина, по которой вы получаете эту ошибку, заключается в том, что у вас нет исполняемого файла в папке netcoreapp. Попробуйте создать новый проект под названием HelloWorld1, и если vs19 не создает файлы, вам нужно будет удалить и переустановить приложение.

2020-06-16 04:57

У меня был дубликат файла .AssemblyInfo.cs в моем проекте (один в папке bin, а другой снаружи). Этот файл создается автоматически, поэтому я удалил оба файла, очистил проект, выполнил восстановление, а затем перестроил. Исправлена ​​моя проблема.



23 фев ’21 в 17:19
2021-02-23 17:19

2021-02-23 17:19

Для меня это было просто, что я случайно попытался открыть проект, созданный в VS 2022, с помощью Visual Studio 2017.

2022-08-10 06:41

76 / 36 / 17

Регистрация: 24.07.2014

Сообщений: 357

1

Исполняемый файл для отладки, указанный в профиле отладки, не существует

26.05.2020, 17:06. Показов 17955. Ответов 1


Студворк — интернет-сервис помощи студентам

После того как удалил папку с частью ненужных исходных кодов, вылезла эта ошибка. Восстановление файлов ситуации уже не меняет. Что делать?

Исполняемый файл для отладки, указанный в профиле отладки, не существует



0



Администратор

Эксперт .NET

15672 / 12631 / 5005

Регистрация: 17.03.2014

Сообщений: 25,715

Записей в блоге: 1

27.05.2020, 01:10

2

Справлюсь, в окне Вывод видно что проект откомпилировался с ошибками. Открой окно «Список ошибок» и исправь их.



1



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

27.05.2020, 01:10

Помогаю со студенческими работами здесь

Инструменты для отладки
Подскажите, есть ли такой инструмент для php, который показывает построчно выполнение кода php,…

Компиляция для отладки
Когда я выполняю отладку, функции, экспортируемые из kernel32.dll имеют свои имена, которые четко…

Использование Firebug для отладки
Подскажите пожалуйста как им пользоваться для отладки javascript кода. Нажимаю на вкладку сценарий…

Что лучше для отладки?
Имеется VS2013 Express, FAR,WinDbg,Hiew,MAsm? Пробовал отлаживать но стоит WIn7 x64? Написал…

Планшет не видится для отладки
Добрый день.
Есть планшет DNS e73, который при рождении, видимо, был hyndai a7hd. На нем…

вывод значений для отладки
Имеется процедура SQL, в которой есть несколько Select&quot;ов, расчеты. Эта процедура вызывается из…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

2

У меня очень простое приложение на С++.

#include <stdio.h>
#include <iostream>

int main(int argc, char argv[]) {
  cout << "hi" << endl;
}

Когда я впервые скомпилирован в режиме отладки, Visual Studio жалуется «Невозможно запустить программу.. Debugmyprogram.exe. Система не может найти указанный файл».

Однако, я думаю, что это очевидно, потому что я собираюсь в первый раз, правильно? Этот исполняемый файл еще не существует, поэтому почему компиляция Visual Studio не выполняется?

Спасибо за вашу помощь.

Кроме того, при построении появляется следующий журнал:

Когда я создаю (Build- > Build solution.), этот журнал появляется:

1>------ Build started: Project: print_digits, Configuration: Debug Win32 ------
1>Build started 12/23/2011 4:32:17 PM.
1>InitializeBuildStatus:
1>  Creating "Debugprint_digits.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1>  Deleting file "Debugprint_digits.unsuccessfulbuild".
1>  Touching "Debugprint_digits.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.08

Он говорит, что сборка выполнена успешно, но по какой-то причине никакой исполняемый файл не создается.

  • Ошибка визуал c самп
  • Ошибка виндовс 10 dpc watchdog violation
  • Ошибка видеофильтра весы софт весовой терминал
  • Ошибка виндовс 10 critical process died во время загрузки windows
  • Ошибка видеофайла как исправить