in src/Microsoft.NuGet.Build.Tasks/ResolveNuGetPackageAssets.cs [722:729]
private void GiveErrorForNoTargets()
{
var noTargetsInLockFileErrorString = IsLockFileProjectJsonBased(ProjectLockFile) ?
nameof(Strings.NoTargetsInLockFileForProjectJson) :
nameof(Strings.NoTargetsInLockFileForProjectFile);
throw new ExceptionFromResource(noTargetsInLockFileErrorString);
}