microsoft / microsoft/Oryx

Dotnet not installed - NX Monorepo

Open
#2,403 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
881
Forks
195
Avg merge
20h 13m
Merged PRs (30d)
13

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Azure Static Apps build with an Nx monorepo containing React, Vite, and a .NET project, starting from the npm install step that invokes nx g @nx-dotnet/core:restore. Compare the failing automatic detection with the working appsrv YAML installation. Done means the build detects or provisions the required .NET support without manual installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, react, vite
Domain
build-system, cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.