Solved this by adding the following line into my .csproj
file:
PackageReference
Specifically to the PropertyGroup
group.
Not sure why it makes such difference, if anyone could explain and post in the comment it would be great. Any additional informations I will add to this answer.