microsoft / microsoft/Oryx

Directory.Build.Props is ignored when attempting to determine the TargetFramework of a csproj file

Open
#1,485 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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?

2022-07-20

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

using Azure/static-web-apps-deploy@v1

  • If your repo is publicly available please share its URL:
    It isn't public yet

  • What happened?

Detecting platforms...
Could not detect any platform in the source directory.
Error: Could not detect the language from repo.
  • What did you expect or want to happen?
Detecting platforms...
Detected following platforms:
  dotnet: 6.0.6
Detecting platforms...
Could not detect any platform in the source directory.
Error: Could not detect the language from repo.

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

Generate the staticwebdev/blazor-starter repository and move the TargetFramework element into Directory.Build.props, then reproduce the detection failure using Azure/static-web-apps-deploy@v1. Trace the project-platform detection entry point responsible for reading the csproj and compare the result with the expected .NET 6.0 detection output; done means the project is detected when its target framework is defined there.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.