/// <summary> /// Creates a new instance of <see cref="ProjectInfo"/>. /// </summary> /// <param name="name">Name of the project.</param> /// <param name="absolutePath">Absolute path to the project file.</param> /// <param name="nugetInfo">Path to the NuGet information.</param> /// <param name="type">Used NuGet style.</param> public ProjectInfo(string name, string absolutePath, string nugetInfo, NuGetPackageDependency type) { ProjectName = name; ProjectAbsolutePath = absolutePath; NuGetInformationPath = nugetInfo; Type = type; }
private static bool DependencyVersionsDoNotMatch(ILookup <string, NuGetPackageDependency> nuspecDependenciesbyId, NuGetPackageDependency dependency) { return(nuspecDependenciesbyId.Contains(dependency.Id) && nuspecDependenciesbyId[dependency.Id].First().Version.CleanVersion() != dependency.Version.CleanVersion()); }