I have 2 Projects:
Project A is .Net Standard 2.0
Project B is .Net Framework 4.6.1
In B I reference to A like this (csproj):
<ItemGroup>
<ProjectReference Include="A.csproj">
<Project>{60DEB41B-8670-4199-95C2-FE68EB06B099}</Project>
<Name>A</Name>
</ProjectReference>
Now when I pack a nuget of B, I can't access A because it doesnt resolve the dependency.
here are the commands, run by gitlab ci, to create the project B:
nuget restore
msbuild B.csproj
nuget pack -version $VERSION
dotnet nuget push **/*.nupkg ...
How to include the lib of A as DLL in B?
-IncludeReferencedProjects
option tonuget pack
? – Cem.S