CycloneDX / CycloneDX/cyclonedx-dotnet

Unable to load projects in solution, when path contains a variable

Open
#942 2 comments 1 reaction 0 assignees View on GitHub
enhancement good first issue help wanted ready for development
Dominant language
C#
Stars
294
Forks
123
PR merge metrics
No merged PRs in 30d

Description

In my .net solution, there are some paths containing a variable name like this:
` `

CycloneDx complains with these errors as it cannot locate these projects:
> Project file ".......\AB.Config.Model.csproj" does not exist

These variables are defined in a separate file: Directory.Build.targets

Is there a way to either:
1) Let CycloneDx know where these variables are defined ?
OR
2) manually specify these variable values ?

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the failure with a ProjectReference containing $(ConfigSrcDir), then inspect project loading and how Directory.Build.targets properties are evaluated. Done means projects using defined path variables load successfully, with a regression test or documented manual-value behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.