Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Block package from download
-
Hi folks.
I would like to prevent the download of a package in one version or more. It does not work via the connector filter.
How do I do it correctly in version 24.0.27?
Best regards
Paddy
-
Hi @itadmin_9894 ,
Can you give us a few more details of what you're trying to do? A connector filter is intended to allow or block a package by name; it does not filter out versions.
Thanks,
Steve
-
@stevedennis said in Block package from download:
Can you give us a few more details of what you're trying to do? A connector filter is intended to allow or block a package by name; it does not filter out versions.
Hi @stevedennis
THX for your feedback. I am happy to describe my problem in more detail. As you can see in the screenshot, I have created a filter that is supposed to block the nuget “FluentAssertion” from version 8.0.0.
In the package view you can see that no version >= 8.0.0 of FluentAssertions is stored in the cache:
Despite the filter, it is possible to obtain this package in VisualStudio:
I would like to prevent this. How is this possible?
Cheers Paddy
-
Hi Paddy,
Connector Filters allow/block packages by name (not version filters). The package name is
FluentAssertions
notFluentAssertions:>=8.0.0
. So that's why it's not behaving as you expect.Please see Dealing with Fluent Assertions License Changes in ProGet to learn more how to address this particular issue.
Thanks,
Steve
-
Hi Steve.
THX. It works :-)
Cheers Paddy