microsoft/Oryx

Dotnet not installed - NX Monorepo

elvince opened this issue · 0 comments

Bug Report

  • At what date and time did you most recently experience the problem?
    8 april 2024

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
    Azure Static Apps

  • If your repo is publicly available please share its URL:
    N/A

  • What happened?
    When building in Azure Repo, after the npm install process, "dotnet restore" is called.
    When this call occured, I received : dotnet not installed

  • What did you expect or want to happen?
    No errors.

  • How can we reproduce it?
    Create a NX monorepo with React & vite
    Add a .Net project and .Net Nx plugin

  • Do you have log output? Please include between the backticks:

Running 'npm install'...
> @mf-monorepo/source@2.0.0 prepare
> nx g @nx-dotnet/core:restore


 NX  Generating @nx-dotnet/core:restore


 NX   dotnet not installed. Local support not yet added https://github.com/AgentEnder/nx-dotnet/issues/3

Pass --verbose to see the stacktrace.


If I installed manually the package with appsrv yaml it works.
Why Oryx is not able to detect that I need dotnet? as it did with npm, node etc... ?
fyi, I have my sln in the root folder, but project in subfolders