[Bug] .NET API bug
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 890
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 10
Description
**Describe the bug**
I have project that has multiple project dependencies described in .csproj file. When creating metadata using .csproj file. It got an error about unable to find local depedencies for project.

**To Reproduce**
Steps to reproduce the behavior:
1. Having a project with local dependencies maybe in another folder
- MyProject
- - myproject.csproj
- - src
- LibraryProject
- - src
myproject.csproj
```
...
...
...
...
```
in the .csproj define packageReference to refer local project .
3. setup the docfx
**Expected behavior**
```
{
"$schema": "https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json",
"metadata": [
{
"src": [
{
"src": "../MyProject/",
"files": [
"**/*.csproj"
]
}
],
"dest": "api"
}
],
"build": {
"content": [
{
"files": [
"**/*.{md,yml}"
],
"exclude": [
"_site/**"
]
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"output": "_site",
"template": [
"default",
"modern"
],
"globalMetadata": {
"_appName": "mysite",
"_appTitle": "mysite",
"_enableSearch": true,
"pdf": true
}
}
}
```
**Context (please complete the following information):**
- OS: Windows 11 Pro
- Docfx version: 2.78
- .NET version: .NET 8.0
- Exceptions
```csharp
// Paste the full exception with stacktrace here, remove sensitive info
```
- Errors and warnings
```csharp
// Paste warnings or errors related to this bug here, remove sensitive info
```
```
Loading project C:/Users/CADIT-IDN/WORK/docgeneratorresearch/bugfixreference/etip.ecu/ETIP.ECU.InternalAPI/ETIP.ECU.InternalAPI.csproj
.csproj : error NU1101: Unable to find package No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org
```
- .NET info
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.