Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Project reference not working but Nuget reference is

$
0
0

In my .Net Core VS 2022 project, I've a base project(let's say X) which has a Nuget reference(let's say A) which is a part of another repository of mine). When I build X, the build is successful and all the referenced Nuget projects dlls get copied to the output folder.

But I want to debug some methods in A with project X as the source. So, I removed the Nuget reference A, added it as an existing project in the same solution as X and finally added it as a project reference of X. When I do so, upon expanding the dependencies of project X, I don't see internal dependencies of project A loaded(which is weird) as I see for other project references. This ultimately results in a failed build of project X with close to 300 errors.

Clean build does not work. When project A is separately built in it's repo, I see no issues. There is also no issue in the Azure Devops pipeline for the same.

What am I doing wrong here? Any suggestions would be helpful.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>