public Version VersionToUse(string id)
{
if (!IsLocal(id))
throw new InvalidOperationException("Only local packages can be updated to a specifc version.");
if (IsPinnedToCurrentVersion(id))
throw new InvalidOperationException("This package is pinned to its current version.");
var custom = IsPinnedToSpecificVersion(id);
if (custom != null)
return custom;
return m_localPackages[id].Version;
}
}