MortalManJJ
MortalManJJ

Reputation: 142

Could not locate .NET Core Project

I am following a brackeys tutorial for c# here. But at 7:55, A message pops up for me saying: "Could not locate .NET Core project. Assets were not generated.". I have done everything brackeys did before that moment, but it won't work. Here is an image of the popup:

popup of error

Any help would be appreciated! Also, do not hesitate to ask for any clarification from me.

Upvotes: 4

Views: 4407

Answers (5)

explorer
explorer

Reputation: 121

https://blog.mastykarz.nl/issues-dotnet-core-visual-studio-code/

"To fix it, in your VSCode settings, set the OmniSharp Path to latest"

{
  "omnisharp.path": "latest"
}

Upvotes: 1

Gopal Bogati
Gopal Bogati

Reputation: 31

Restarting the vscode application solved my issue.

Upvotes: -1

Alenros
Alenros

Reputation: 945

As others have commented on another question and on this page, restarting Visual Studio Code usually solves the problem. This is caused by the c# for Visual Studio Code extension.

Upvotes: 0

Alicia
Alicia

Reputation: 328

Try this:

  1. Uninstall the C# extension in VSCode
  2. Ctrl+Shift+P Extensions: Disable Auto Updating Extensions [Enter]
  3. Ctrl+Shift+P Extensions: Install from VSIX... [Enter]
  4. Reload VSCode

Upvotes: 1

Derviş Kayımbaşıoğlu
Derviş Kayımbaşıoğlu

Reputation: 30663

try this:

  • Close all instances of Visual Studio Code.
  • Open the folder that contains the project you are trying to compile/use.
  • Delete the .vscode folder. (Make a backup if needed of any important files/configurations made already.)
  • Open the folder in VSCode now.
  • Open VSCode Command Palette and choose > .NET: Generate Assets For Build and Debug.

Upvotes: 0

Related Questions