-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to identify a nuget reference? #27
Comments
Depends on what type of NuGet references you need. As I voiced here 3F/DllExport#152 (comment)
I know, this part is not so good covered for most convenient use today. Any PR welcomed! But I think it will be reviewed together with planned 3.0 (within IeXod integration) or a bit later. Today, however, you can try For Let me know if you still have some problems or questions. |
thank you 3F |
@tecnocrata Some related improvements will be considered later. |
* FIXED: Fixed CalculateHashCode() Extension. Internally affects many objects due to broken GetHashCode(). * FIXED: Fixed SlnItems.ProjectDependenciesXml when empty input: Report #25 (comment) * NEW: packages.config support PR #30. Related issues #27, #28. To activate it, use the following flags: * PackagesConfig, PackagesConfigSolution, PackagesConfigLegacy. For example, ``` using Sln l = new("Input.sln", SlnItems.AllNoLoad | SlnItems.PackagesConfig); IPackageInfo found = l.Result.PackagesConfigs .SelectMany(s => s.Packages) .FirstOrDefault(p => p.Id.StartsWith("Microsoft.")); // found.MetaTFM ... Version v = l.Result.PackagesConfigs.First().GetPackage("LX4Cnh")?.VersionParsed; ``` Including GetNuTool compatible packages, format: https://github.com/3F/GetNuTool#format-of-packages-list * NEW: Added HasValue and HasNothing properties in PropertyItem. * NEW: Added SlnItems.AllMinimal and SlnItems.AllNoLoad in addition to SlnItems.All. * NEW: Added IXProject.GetPackageReferences(). * CHANGED: ConfigItem.Format() marked as obsolete. Use `ToString()` and `IConfPlatform.Formatted` instead.
Hello there,
I'm using this fantastic library and have a question, I'm parsing a csproj file. with something like this:
and I want to identify which references are nuget or not, Is there a way to do that?
I'm using this
but that instruction returns all references, including nuget ones but not sure how to identify in them on that list
Any help would be appreciated
The text was updated successfully, but these errors were encountered: