Skip to content

Add dependency on nu get.core library - #102

Closed
BreeeZe wants to merge 12 commits into
NuGetPackageExplorer:masterfrom
BreeeZe:Add_dependency_on_NuGet.Core_library
Closed

BreeeZe wants to merge 12 commits into
NuGetPackageExplorer:masterfrom
BreeeZe:Add_dependency_on_NuGet.Core_library

Conversation

@BreeeZe

@BreeeZe BreeeZe commented May 19, 2016

Copy link
Copy Markdown
Contributor

In order to keep the core code up to date to the original NuGet code, I added a dependency on the NuGet.Core library : https://www.nuget.org/packages/NuGet.Core/
To make this possible I had to change the namespace from NuGet to NuGetPE and then remove duplicate code which is now sourced from the library.
It was not possible to phase out all duplicated code yet, but Semver and all framework identifiers are now used from the library package.

Hopefully this is useful to you, at least it is to me, since it is now easier to keep up with stuff like the new .Net Core framework identifiers

Jeroen Versteege and others added 12 commits October 14, 2015 20:29
…ome duplicated objects and interfaces.

Using the original NuGet.Core library it now supports more recent frameworks like dnx451
* codeplex/master:
  Added reference to the NuGet.Core package on nuget.org and replaced some duplicated objects and interfaces. Using the original NuGet.Core library it now supports more recent frameworks like dnx451

Conflicts:
	Core/Utility/PackageIdValidator.cs
	Core/Utility/VersionUtility.cs
	Types/Packages/SemanticVersion.cs
# Conflicts:
#	Common/CommonAssemblyInfo.cs
#	Core/Authoring/IPackageBuilder.cs
#	Core/Authoring/Manifest.cs
#	Core/Authoring/ManifestDependency.cs
#	Core/Authoring/ManifestFile.cs
#	Core/Authoring/ManifestFileList.cs
#	Core/Authoring/ManifestFrameworkAssembly.cs
#	Core/Authoring/ManifestMetadata.cs
#	Core/Authoring/ManifestReader.cs
#	Core/Authoring/ManifestReference.cs
#	Core/Authoring/ManifestSchemaUtility.cs
#	Core/Authoring/ManifestVersionAttribute.cs
#	Core/Authoring/ManifestVersionUtility.cs
#	Core/Authoring/PackageBuilder.cs
#	Core/Authoring/PathResolver.cs
#	Core/Authoring/PhysicalPackageFile.cs
#	Core/Configuration/ISettings.cs
#	Core/Configuration/UserSettings.cs
#	Core/Core.csproj
#	Core/Extensions/AssemblyExtensions.cs
#	Core/Extensions/CollectionExtensions.cs
#	Core/Extensions/FileSystemExtensions.cs
#	Core/Extensions/ObjectExtensions.cs
#	Core/Extensions/PackageExtensions.cs
#	Core/Extensions/PluginExtensions.cs
#	Core/Extensions/SettingsExtensions.cs
#	Core/Extensions/StreamExtensions.cs
#	Core/Extensions/StringExtensions.cs
#	Core/Extensions/XElementExtensions.cs
#	Core/NuGetConstants.cs
#	Core/NuGetResources.Designer.cs
#	Core/Packages/Constants.cs
#	Core/Packages/DataServicePackage.cs
#	Core/Packages/PackageFileBase.cs
#	Core/Packages/PackageInfo.cs
#	Core/Packages/PackageInfoEqualityComparer.cs
#	Core/Packages/SimplePackage.cs
#	Core/Packages/ZipPackage.cs
#	Core/Packages/ZipPackageAssemblyReference.cs
#	Core/Packages/ZipPackageFile.cs
#	Core/ProjectSystem/IFileSystem.cs
#	Core/ProjectSystem/PhysicalFileSystem.cs
#	Core/Repositories/DataServicePackageRepository.cs
#	Core/Repositories/IPackageRepository.cs
#	Core/Repositories/LocalPackageRepository.cs
#	Core/Repositories/MachineCache.cs
#	Core/Utility/CryptoHashProvider.cs
#	Core/Utility/IHashProvider.cs
#	Core/Utility/IProgressProvider.cs
#	Core/Utility/PackageIdValidator.cs
#	Core/Utility/PackageUtility.cs
#	Core/Utility/UriUtility.cs
#	Core/Utility/VersionSpec.cs
#	Core/Utility/VersionUtility.cs
#	Core/Utility/WebRequestEventArgs.cs
#	Core/Utility/XmlUtility.cs
#	PackageExplorer/App.xaml.cs
#	PackageExplorer/Converters/FrameworkAssemblyReferenceConverter.cs
#	PackageExplorer/Converters/FrameworkNameConverter.cs
#	PackageExplorer/Converters/PackageInfoDownloadCountConverter.cs
#	PackageExplorer/Converters/VersionConverter.cs
#	PackageExplorer/Converters/VersionSpecConverter.cs
#	PackageExplorer/MainWindow.xaml.cs
#	PackageExplorer/MefServices/PackageChooserService.cs
#	PackageExplorer/MefServices/PackageDownloader.cs
#	PackageExplorer/MefServices/PluginManager.cs
#	PackageExplorer/MefServices/SettingsManager.cs
#	PackageExplorer/PackageExplorer.csproj
#	PackageExplorer/PackageMetadataEditor.xaml
#	PackageExplorer/PackageMetadataEditor.xaml.cs
#	PackageExplorer/PackageViewer.xaml
#	PackageExplorer/Utilities/FileUtility.cs
#	PackageExplorer/Wpf/SemanticVersionValidationRule.cs
#	PackageViewModel/Commands/SavePackageCommand.cs
#	PackageViewModel/EditableFrameworkAssemblyReference.cs
#	PackageViewModel/EditablePackageDependency.cs
#	PackageViewModel/EditablePackageMetadata.cs
#	PackageViewModel/EmptyPackage.cs
#	PackageViewModel/FileEditorViewModel.cs
#	PackageViewModel/MruManager.cs
#	PackageViewModel/PackageAnalyzer/InvalidFrameworkFolderRule.cs
#	PackageViewModel/PackageAnalyzer/MisplacedAssemblyRule.cs
#	PackageViewModel/PackageAnalyzer/MisplacedScriptFileRule.cs
#	PackageViewModel/PackageAnalyzer/MisplacedTransformFileRule.cs
#	PackageViewModel/PackageAnalyzer/MissingContentOrDependencyRule.cs
#	PackageViewModel/PackageAnalyzer/MissingSummaryRule.cs
#	PackageViewModel/PackageAnalyzer/OrphanAssemblyReferenceNameRule.cs
#	PackageViewModel/PackageAnalyzer/PrereleasePackageDependencyRule.cs
#	PackageViewModel/PackageChooser/PackageChooserViewModel.cs
#	PackageViewModel/PackageChooser/PackageRepositoryFactory.cs
#	PackageViewModel/PackageChooser/PackageSourceSettings.cs
#	PackageViewModel/PackageChooser/ShowLatestVersionQueryContext.cs
#	PackageViewModel/PackagePart/IEditablePackageFile.cs
#	PackageViewModel/PackagePart/PackageFile.cs
#	PackageViewModel/PackagePart/PackageFolder.cs
#	PackageViewModel/PackagePart/PackagePart.cs
#	PackageViewModel/PackagePart/PathToTreeConverter.cs
#	PackageViewModel/PackageViewModel.cs
#	PackageViewModel/PackageViewModel.csproj
#	PackageViewModel/PackageViewModelFactory.cs
#	PackageViewModel/PluginManagerViewModel.cs
#	PackageViewModel/PublishPackage/PublishPackageViewModel.cs
#	PackageViewModel/PublishPackage/PublishSourceSettings.cs
#	PackageViewModel/Types/IMruManager.cs
#	PackageViewModel/Types/IPackageChooser.cs
#	PackageViewModel/Types/IPackageDownloader.cs
#	PackageViewModel/Types/IPackageViewModelFactory.cs
#	PackageViewModel/Types/IPluginManager.cs
#	PackageViewModel/Types/MruItem.cs
#	PackageViewModel/Types/PluginInfo.cs
#	PackageViewModel/Utilities/PackageHelper.cs
#	Types/IPackageCommand.cs
#	Types/IPackageRule.cs
#	Types/PackageExtensions.cs
#	Types/Packages/FrameworkAssemblyReference.cs
#	Types/Packages/IFrameworkTargetable.cs
#	Types/Packages/IPackage.cs
#	Types/Packages/IPackageAssemblyReference.cs
#	Types/Packages/IPackageFile.cs
#	Types/Packages/IPackageMetadata.cs
#	Types/Packages/IServerPackageMetadata.cs
#	Types/Packages/IVersionSpec.cs
#	Types/Packages/PackageDependency.cs
#	Types/Packages/SemanticVersion.cs
#	Types/Properties/AssemblyInfo.cs
#	Types/Types.csproj
@304NotModified

Copy link
Copy Markdown
Collaborator

Thanks! Will check this out, but could take some weeks for me

@BreeeZe

BreeeZe commented May 19, 2016

Copy link
Copy Markdown
Contributor Author

Sure,
And I got the appveyor build with nuget restore working too :)
For some reason the described method of just adding "nuget restore" to the appveyor.yml file didn't work.. (https://www.appveyor.com/blog/2014/03/18/about-nuget-package-restore)
It gave an "unknown command: 'restore'" error...
So I had to resort to adding some powershell commands.

@304NotModified

Copy link
Copy Markdown
Collaborator

that's wierd as nuget restore always worked for me

@304NotModified

304NotModified commented Jun 3, 2016 •

Copy link
Copy Markdown
Collaborator

don't we need to use nuget.client? so we can remove all duplicate code?

@BreeeZe

BreeeZe commented Jun 4, 2016 •

Copy link
Copy Markdown
Contributor Author

If I remember correctly NuGet changed some classes and method parameters compared to the ones in NuGetPackageExplorer, so I could not substitute the duplicate versions easily with the ones from the NuGet.Core package.
At the time (oct 2015) I changed what I could with the time I had for this, I am using NuGetPackageExplorer at work and wanted to use it with the new ASP.Net vNext (now renamed to .Net Core) but it did not support that framework definition yet.
But I'll see if I can invest some time in the coming weeks to look into this again (either privately or at work), would be nice to finish te job :)

@304NotModified

Copy link
Copy Markdown
Collaborator

I like to merge this, but not sure if we like 152 changed files...

@304NotModified

Copy link
Copy Markdown
Collaborator

superseded by #147

(same stuff, included package update and conflict fix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants