Меню

Visual studio ошибка 9009

Did you try to give the full path of the command that is running in the pre- or post-build event command?

I was getting the 9009 error due to a xcopy post-build event command in Visual Studio 2008.

The command "xcopy.exe /Y C:projectpathproject.config C:compilepath" exited with code 9009.

But in my case it was also intermittent. That is, the error message persists until a restart of the computer, and disappears after a restart of the computer. It is back after some remotely related issue I am yet to discover.

However, in my case providing the command with its full path solved the issue:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath 

Instead of just:

xcopy.exe /Y C:projectpathproject.config C:compilepath

If I do not have the full path, it runs for a while after a restart, and then stops.

Also as mentioned on the comments to this post, if there are spaces in full path, then one needs quotation marks around the command. E.g.

"C:The folder with spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

Note that this example with regards to spaces is not tested.

Did you try to give the full path of the command that is running in the pre- or post-build event command?

I was getting the 9009 error due to a xcopy post-build event command in Visual Studio 2008.

The command "xcopy.exe /Y C:projectpathproject.config C:compilepath" exited with code 9009.

But in my case it was also intermittent. That is, the error message persists until a restart of the computer, and disappears after a restart of the computer. It is back after some remotely related issue I am yet to discover.

However, in my case providing the command with its full path solved the issue:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath 

Instead of just:

xcopy.exe /Y C:projectpathproject.config C:compilepath

If I do not have the full path, it runs for a while after a restart, and then stops.

Also as mentioned on the comments to this post, if there are spaces in full path, then one needs quotation marks around the command. E.g.

"C:The folder with spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

Note that this example with regards to spaces is not tested.

Did you try to give the full path of the command that is running in the pre- or post-build event command?

I was getting the 9009 error due to a xcopy post-build event command in Visual Studio 2008.

The command "xcopy.exe /Y C:projectpathproject.config C:compilepath" exited with code 9009.

But in my case it was also intermittent. That is, the error message persists until a restart of the computer, and disappears after a restart of the computer. It is back after some remotely related issue I am yet to discover.

However, in my case providing the command with its full path solved the issue:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath 

Instead of just:

xcopy.exe /Y C:projectpathproject.config C:compilepath

If I do not have the full path, it runs for a while after a restart, and then stops.

Also as mentioned on the comments to this post, if there are spaces in full path, then one needs quotation marks around the command. E.g.

"C:The folder with spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

Note that this example with regards to spaces is not tested.

Что означает это сообщение об ошибке? Что я могу сделать, чтобы исправить эту проблему?

AssemblyInfo.cs вышел с кодом 9009


Проблема, вероятно, происходит как часть этапа после сборки в .NET-решении в Visual Studio.

4b9b3361

Ответ 1

Вы пытались указать полный путь к команде, которая выполняется в команде события pre-or post-build event?

Я получал ошибку 9009 из-за команды xcopy post-build event в Visual Studio 2008.

Команда "xcopy.exe /Y C:projectpathproject.config C:compilepath" вышла с кодом 9009.

Но в моем случае это было также прерывистым. То есть сообщение об ошибке сохраняется до перезагрузки компьютера и исчезает после перезагрузки компьютера. Он вернулся после некоторой отдаленной проблемы, которую я еще не обнаружил.

Однако, в моем случае, при условии, что команда с полным пути решена, проблема:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath 

Вместо просто:

xcopy.exe /Y C:projectpathproject.config C:compilepath

Если у меня нет полного пути, он запускается некоторое время после перезапуска, а затем останавливается.

Также, как упоминалось в комментариях к этому сообщению, , если есть пробелы в полном пути, вам нужно кавычки вокруг команды. Например.

"C:The folder with spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

Обратите внимание, что этот пример в отношении пробелов не проверен.

Ответ 2

Код ошибки 9009 означает, что файл ошибки не найден. Все основные причины, изложенные в ответах здесь, являются хорошим источником, чтобы понять, почему, но сама ошибка просто означает плохой путь.

Ответ 3

Это происходит, когда вам не хватает некоторых параметров среды для использования инструментов Microsoft Visual Studio x86.
Поэтому попробуйте добавить в качестве первой команды на этапах после сборки:

Для Visual Studio 2010 используйте:

call "$(DevEnvDir)..Toolsvsvars32.bat"

Как уже упоминалось в комментариях @FlorianKoch, для VS 2017 используйте:

call "$(DevEnvDir)..ToolsVsDevCmd.bat"

Его следует поместить перед любой другой командой.
Он установит среду для использования инструментов Microsoft Visual Studio x86.

Ответ 4

Скорее всего, у вас есть место в результирующем пути.

Вы можете обойти это, указав пути, тем самым позволяя пробелы. Например:

xcopy "$(SolutionDir)Folder NameFile To Copy.ext" "$(TargetDir)" /R /Y /I

Ответ 5

Имела ту же переменную после изменения переменной PATH из переменных окружения в Win 7. Возвращение к умолчанию помогло.

Ответ 6

У меня была ошибка 9009, когда событие post post script пыталось запустить пакетный файл, который не существовал в указанном пути.

Ответ 7

Я вызвал эту ошибку, когда я отредактировал переменную окружения Path. После редактирования я случайно добавил Path= в начало строки пути. С такой измененной переменной пути мне не удалось запустить XCopy в командной строке (никакая команда или файл не найден), а Visual Studio отказалась запускать шаг после сборки, ссылаясь на ошибку с кодом 9009.

XCopy обычно находится в C:WindowsSystem32. Как только переменная окружения Path разрешила XCopy получить разрешение в приглашении DOS, Visual Studio хорошо построила мое решение.

Ответ 8

Если script на самом деле делает то, что ему нужно сделать, и просто Visual Studio выдает вам сообщение об ошибке, которую вы могли бы просто добавить:

exit 0

до конца script.

Ответ 9

Проверьте орфографию. Я пытался вызвать исполняемый файл, но имел имя с ошибкой и дал мне сообщение exited with code 9009.

Ответ 10

В моем случае перед вызовом команды мне пришлось сначала записать «CD» ( «Изменить каталог» ) в соответствующий каталог, поскольку исполняемый файл, который я вызывал, был в моей директории проектов.

Пример:

cd "$(SolutionDir)"
call "$(SolutionDir)build.bat"

Ответ 11

Моя точная ошибка была

The command "iscc /DConfigurationName=Debug "C:ProjectsBlahblahblahsetup.iss"" exited with code 9009.

9009 означает, что файл не найден, но на самом деле он не смог найти часть «iscc» команды.

Я исправил его, добавив ";C:Program FilesInno Setup 5 (x86)" в переменную системной среды "path"

Ответ 12

Другой вариант:

Сегодня я вызываю интерпретатор python из cron в win32 и беру ExitCode (% ERRORLEVEL%) 9009, потому что системная учетная запись, используемая cron, не имеет пути к каталогу Python.

Ответ 13

Проблема в моем случае возникла, когда я попытался использовать команду в командной строке для события Post-build в моей тестовой библиотеке классов. Когда вы используете такие кавычки:

"$(SolutionDir)packagesNUnit.Runners.2.6.2toolsnunit" "$(TargetPath)" 

или если вы используете консоль:

"$(SolutionDir)packagesNUnit.Runners.2.6.2toolsnunit-console" "$(TargetPath)"

Это исправило проблему для меня.

Ответ 14

Кроме того, убедитесь, что в окне редактирования событий post build в вашем проекте нет разрывов строк. Иногда копирование команды xcopy из сети, когда она многострочная и вставляет ее в VS, вызовет проблему.

Ответ 15

Я добавил » > myFile.txt» в конец строки на этапе предварительной сборки, а затем проверил файл на фактическую ошибку.

Ответ 16

Тфа ответ был отклонен, но на самом деле может вызвать эту проблему. Благодаря hanzolo я посмотрел в окне вывода и нашел следующее:

3>'gulp' is not recognized as an internal or external command,
3>operable program or batch file.
3>D:dev<filepath>Web.csproj(4,5): error MSB3073: The command "gulp clean" exited with code 9009.

После запуска npm install -g gulp я перестал получать эту ошибку. Если вы получаете эту ошибку в Visual Studio, проверьте окно вывода и посмотрите, является ли проблема неустановленной переменной среды.

Ответ 17

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

Ответ 18

Еще один вариант файла не найден, из-за пробелов в пути. В моем случае в msbuild script. Мне нужно было использовать строки HTML и ampquot; в команде exec.

<!-- Needs quotes example with my Buildscript.msbuild file --> 
<Exec Command="&quot;$(MSBuildThisFileDirectory)wixwixscript.bat&quot; $(VersionNumber) $(VersionNumberShort)" 
    ContinueOnError="false" 
    IgnoreExitCode="false" 
    WorkingDirectory="$(MSBuildProjectDirectory)wix" />

Ответ 19

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

Чтобы открыть окно вывода в Visual Studio:

  • Ctrl + Alt + O
  • Вид > Выход

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

Ответ 20

Я исправил это, просто перезапустив Visual Studio — я только что запустил dotnet tool install xxx в окне консоли, и VS еще не выбрал новые переменные среды и/или параметры пути, которые были изменены, поэтому быстрый перезапуск решил проблему.

Ответ 21

Это довольно просто, я столкнулся с этой проблемой и смущающе провалился.

Приложение использует аргументы командной строки, я удалил их, а затем добавил их обратно. Вдруг проект не смог построить.

Visual Studio → Свойства проекта → убедитесь, что вы используете вкладку «Отладка» (не вкладка «Build Events» ) → Аргументы командной строки

Я использовал текстовую область Post и Pre-build, которая была неправильной в этом случае.

Ответ 22

Для меня это произошло после обновления пакетов nuget от одной версии PostSharp до следующего в большом решении (проект ~ 80).
У меня есть ошибки компилятора для проектов, которые имеют команды в событиях PreBuild.

‘cmd’ не распознается как внутренняя или внешняя команда, операционная программа или командный файл.
C:Program Files (x86)MSBuild14.0binMicrosoft.Common.CurrentVersion.targets(1249,5): ошибка MSB3073: команда «cmd/c C:GitReposmainServiceInterfacesDEV.ConfigPreBuild.cmd ServiceInterfaces» вышел с кодом 9009.

Переменная PATH была испорчена слишком долго, с несколькими повторяющимися путями, связанными с PostSharp.Patterns.Diagnostics.
Когда я закрыл Visual Studio и снова открыл его, проблема была исправлена.

Ответ 23

Мое решение было просто: как вы пытались отключить его и снова? Поэтому я перезапустил компьютер, и проблема исчезла.

Ответ 24

Я также столкнулся с этой проблемой 9009, столкнувшись с ситуацией перезаписи.

В принципе, если файл уже существует и вы не указали переключатель /y (который автоматически перезаписывается), эта ошибка может возникнуть при запуске из сборки.

Ответ 25

На самом деле я заметил, что по какой-то причине переменная среды% windir% иногда стирается. То, что сработало для меня, было изменено на переменную среды windir на c:windows, перезапустить VS и что это. Таким образом, вы не можете изменять файлы решений.

Ответ 26

По крайней мере, в Visual Studio Ultimate 2013, версии 12.0.30723.00 Update 3, невозможно разделить оператор if/else с разрывом строки:

работы:

if '$(BuildingInsideVisualStudio)' == 'true' (echo local) else (echo server)

не работает:

if '$(BuildingInsideVisualStudio)' == 'true' (echo local) 
else (echo server)

Ответ 27

Еще одна причина:
Если ваше событие pre-build ссылается на другой путь к bin файлам, и вы видите эту ошибку при запуске msbuild, но не Visual Studio, тогда вам нужно вручную организовать проекты в файле *.sln(с текстовым редактором), чтобы проект нацелены на событие, которое создается перед проектом события. Другими словами, msbuild использует порядок, в котором проекты перечислены в файле *.sln, тогда как VS использует знания зависимостей проекта. Это произошло, когда инструмент, который создает базу данных, которая будет включена в wixproj, была указана после wixproj.

Ответ 28

Я думаю, что в моем случае были русские символы в пути (все проекты были в папке пользователя). Когда я помещал решение в другую папку (прямо на диск), все стало нормально.

Ответ 29

Мое решение состояло в том, чтобы создать копию файла и добавить шаг к заданию сборки, чтобы скопировать мой файл поверх оригинала.

Ответ 30

Для меня это была перезагрузка Visual Studio.
У меня была построена gulp с кодом 9009.
Я установил gulp, но это не отразилось, пока я не перезапустил Visual Studio.

  • Remove From My Forums
  • Question

  • I did some research into my error code and traced it down to my project file->Properties->Build Events

    For a post-build event, I have the following:

    «$(TargetPath)» -exportschema «$(ProjectDir)myschema.txschema»

    As I understand it, that path is invalid.  Problem is, I don’t know how to make it valid…

    I am running:

    Visual C# 2005 SP1

    XNA Game Studio 2.0

    TorqueX 2.0

    Windows Vista Ultimate 64

    Keep in mind that this is a shared project and once I have it working, I need to commit it to an SVN and it must be able to work on other versions of Windows. 😉

    • Edited by

      Tuesday, January 27, 2009 4:32 PM

Answers

  • We may end up creating a new project and just copy/pasting all our code in… IDK yet, it’s up to the project lead…

    • Marked as answer by
      Michael Sun [MSFT]Microsoft employee
      Monday, February 2, 2009 2:20 AM

Я пытаюсь построить решение C ++ в Visual Studio.

Ошибка заключается в следующем:

error MSB3073: The command "python D:...[file path]...SourceVS2013svnrev.py
:VCEnd" exited with code 9009.

Я провел некоторый поиск, и код 9009, очевидно, означает неправильный путь. Одной из возможных причин этого является то, что путь содержит пробелы. В списке ошибок Visual Studio есть разрыв строки между «synrev.py» и «: VCEnd», так что это может быть проблемой.

Ошибка относится к файлу с именем Microsoft.CppCommon.targets, строка предположительно:

`<Exec Command="%(PreBuildEvent.Command)$(_BuildSuffix)" Condition="'%(PreBuildEvent.Command)' != ''"/>`

Согласно предыдущим вопросам о SO, эту проблему можно решить, добавив кавычки вокруг соответствующего места, но я не уверен, где это находится (кажется, что кавычки уже есть во всем!)

Другая возможная причина — отсутствие пути, связывающего необходимую команду. Проверка визуального вывода студии дает:

9> 'python' is not recognized as an internal or external command,
9> operable program or batch file.

Решение, которое я пытаюсь создать, было получено от разработчиков полностью, поэтому возможно, что это какой-то дополнительный необходимый файл, который они просто предположили бы, что я установил. Я пытался искать дальше, но такие термины, как «команда Python», являются слишком общими и, похоже, не дают полезной информации.

Я предполагаю, что это какое-то часто используемое расширение или дополнение для запуска python в visual studio, но я не очень опытен здесь — python — это то, чего я никогда не использовал, и я не использовал visual studio до этого проекта.

Спасибо заранее за любые предложения.

2

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

June 2, 2017

imageI recently installed a fresh copy of Visual Studio 2017 on a new computer. And I am migrating some code from .NET 4.6 to .NET Core. After some hair pulling over changes in the libraries, it now compiles and runs great.

But when I go to deploy to Azure Websites I get errors that look like this:

The command "bower install" exited with code 9009.

OR

The command "npm install" exited with code 9009.

So what is Bower, and Gulp and why are they interesting in a code migration?

When Visual Studio migrated my application, it helped out by adding some pre-processing commands to the project file.


<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
<Exec Command="npm install" />
<Exec Command="bower install" />
<Exec Command="gulp clean" />
<Exec Command="gulp min" />
<Target>

Are they useful commands?

Bower

Bower keeps track of these packages in a manifest file, bower.json. How you use packages is up to you. Bower provides hooks to facilitate using packages in your tools and workflows. Bower is optimized for the front-end.

Gulp

Gulp is a javascript task runner that lets you automate tasks such as…

  • Bundling and minifying libraries and stylesheets.
  • Refreshing your browser when you save a file.
  • Quickly running unit tests
  • Running code analysis
  • Modified files to an output directory

The fix

Blake Pell’s blog helped me the most with this suggestion:

Install npm and bower globally. Open up a command prompt as administrator and type

npm install -g bower

If that doesn’t work, try these steps:

  1. Install NodeJS & npm from https://docs.npmjs.com/getting-started/installing-node
  2. Update to the latest NPM: npm install npm@latest -g
  3. Install bower globally: npm install -g bower

And I needed to install Gulp:

npm install -g gulp

References

  • What is gulp.js and why use it?
  • Setting up Gulp and Bower for an Asp.Net MVC project in Visual Studio 2013</a
  • Hopefully the issue is fixed. But wasn’t in my version I downloaded this weekVS2017 .csproj project prepublish scripts not working

Issue Description

Intelisense doesn’t work with the monogame template.

Steps to Reproduce

  1. Create a new folder and use the dotnet new mgdesktopgl (template from dotnet new -i MonoGame.Template.CSharp)
  2. See that omnisharp isn’t working.

Expected Behavior

Omnisharp shouldn’t give me an error and the everything should work.

Actual Behavior

Doesn’t work, it throws an error.

OmniSharp log

Starting OmniSharp server at 8/9/2020, 4:33:51 PM
Target: d:GitHUBMonogameprojectsMGTestProject

OmniSharp server started.
Path: C:UsersVycto.vscodeextensionsms-dotnettools.csharp-1.21.18.omnisharp1.35.5-beta.80OmniSharp.exe
PID: 14108

Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Community 2019 16.6.30320.27 — «C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBin»
2: StandAlone 16.4 — «C:UsersVycto.vscodeextensionsms-dotnettools.csharp-1.21.18.omnisharp1.35.5-beta.80.msbuildCurrentBin»
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Community 2019 16.6.30320.27 — «C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBin»
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in ‘d:GitHUBMonogameprojectsMGTestProject’.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in ‘d:GitHUBMonogameprojectsMGTestProject’
info: OmniSharp.MSBuild.ProjectManager
Queue project update for ‘d:GitHUBMonogameprojectsMGTestProjectMGTestProject.csproj’
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in ‘d:GitHUBMonogameprojectsMGTestProject’.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectManager
Loading project: d:GitHUBMonogameprojectsMGTestProjectMGTestProject.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location ‘d:GitHUBMonogameprojectsMGTestProject’ on host 13712.
fail: OmniSharp.MSBuild.ProjectLoader
The command «dotnet tool list —local» exited with code 9009.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file ‘d:GitHUBMonogameprojectsMGTestProjectMGTestProject.csproj’.
d:GitHUBMonogameprojectsMGTestProjectMGTestProject.csproj
C:UsersVycto.nugetpackagesmonogame.content.builder.task3.8.0.1375-developbuildMonoGame.Content.Builder.Task.targets(46,5): Error: The command «dotnet tool list —local» exited with code 9009.

Attempted to update project that is not loaded: d:GitHUBMonogameprojectsMGTestProjectMGTestProject.csproj

C# log

Getting latest OmniSharp version information
Downloading package ‘Latest OmniSharp Version Information’ (1 KB)……………….. Done!

Environment information

VSCode version: 1.43.0
C# Extension: 1.21.18

Dotnet Information
.NET Core SDK (reflecting any global.json):
Version: 3.1.302
Commit: 41faccf259

Runtime Environment:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:Program Filesdotnetsdk3.1.302

Host (useful for support):
Version: 3.1.6
Commit: 3acd9b0cd1

.NET Core SDKs installed:
3.1.302 [C:Program Filesdotnetsdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.20 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.20 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.6 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.20 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 3.1.6 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.6 [C:Program FilesdotnetsharedMicrosoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension Author Version
auto-rename-tag formulahendry 0.1.4
bracket-pair-colorizer CoenraadS 1.0.61
color-highlight naumovs 2.3.0
csharp ms-dotnettools 1.21.18
csharpfixformat Leopotam 0.0.84
dhall-lang panaeon 0.0.4
discord-vscode icrawl 3.13.0
EditorConfig EditorConfig 0.15.1
html-preview-vscode tht13 0.2.5
ide-purescript nwolverson 0.20.15
JavaScriptSnippets xabikos 1.8.0
language-purescript nwolverson 0.2.4
LiveServer ritwickdey 5.6.1
material-icon-theme PKief 4.2.0
monogame-pipeline-vscode abcdef 0.0.2
node-module-intellisense leizongmin 1.5.0
npm-intellisense christian-kohler 1.3.0
path-intellisense christian-kohler 2.2.1
prettier-vscode esbenp 5.1.3
python ms-python 2020.5.86806
remote-wsl ms-vscode-remote 0.42.4
rtf alefragnani 2.1.0
slime smlombardi 3.2.1
theme-material-theme jprestidge 1.0.1
vsc-community-material-theme Equinusocio 1.4.1
vsc-material-theme Equinusocio 32.8.0
vsc-material-theme-icons equinusocio 1.2.0
vscode-autohotkey slevesque 0.2.2
vscode-eslint dbaeumer 2.1.8
vscode-icons vscode-icons-team 10.2.0
vscode-styled-components jpoissonnier 0.0.29
vscode-surround yatki 1.0.2
vscode-todo-plus fabiospampinato 4.17.1
vscode-wakatime WakaTime 4.0.0
vsliveshare ms-vsliveshare 1.0.2478

Other details

What bothers me is the:

[fail]: OmniSharp.MSBuild.ProjectLoader
        The command "dotnet tool list --local" exited with code 9009.

part of the log. I tried to search for it on the internet but no result.

I also want to mention that I am new at C# and idk much about it. I tried using visual studio at first but it just seems too bloated/heavy for me. I wanted to use vscode because it’s already my main editor.

Other things I have tried:

In the ~/.omnisharp/omnisharp.json I tried putting this:

{
  "MsBuild": {
    "UseLegacySdkResolver": true
  }
}

Nothing changed, perhaps the sdk thingy isn’t the problem idk again I am new at this stuff and I don’t fully understand how it works.
Another thing I tried was putting

"omnisharp.path": "latest"

in settings.json.

One more thing

I tried to see if the same problem occurs with other dotnet templates. Well I only tried one more which is dotnet new console and I had no problems with omnisharp in there (at least nothing that would cause the extension to fail).

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Visual studio ошибка 1168
  • Visual studio окно ошибок как открыть