Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 private static bool DependencyVersionsDoNotMatch(ILookup <string, NuGetPackageDependency> nuspecDependenciesbyId, NuGetPackageDependency dependency)
 {
     return(nuspecDependenciesbyId.Contains(dependency.Id) &&
            nuspecDependenciesbyId[dependency.Id].First().Version.CleanVersion() != dependency.Version.CleanVersion());
 }