NuGet package change to specific Major/Minor but latest patch - visual-studio

I have a scenario where I need a way from the command line to change the version of NuGet package a specific major and minor version but the latest patch version.
i.e if I had the following versions:
1.2.3,
1.2.4,
1.2.5,
1.3.3,
1.3.4,
1.3.5,
2.1.3,
2.1.4,
2.1.5
And I wanted to swap the package version to 1.2 from 2.1 I want it to pick up the 1.2.5 version, not the 1.2.3 or 1.2.4 versions.
I found that the dotnet add package command sort of works:
dotnet add package PackageName --version 1.2
This would change the version to 1.2 without an issue, even the package is already in the project, the only issue is it's using the smallest patch version, in this case 1.2.3 instead of 1.2.5.
Is there a good way for me to do the above command but have it pick up the latest patch version?

I used --version '1.2.*,it should work

Related

Missing Ruby Version on ASDF

I am trying to install Ruby 2.7.7 via asdf but the latest version appears to be 2.7.6. Anyone happen to know how to support a new Ruby version on asdf?
Available Ruby 2.7.x versions
Tried installing Ruby 2.7.7, expected version to be available.
The asdf-ruby plugin uses ruby-build to actually build Ruby versions. To be able to install new Ruby versions, ruby-build needs to be updated.
You can set the desired ruby-build version by setting the ASDF_RUBY_BUILD_VERSION environment variable to the desired version before invoking asdf.
Alternatively, you can also update your asdf-ruby plugin to use the current ruby-build version on every invocation as they have updated the plugin to use the current ruby-build version by default in asdf-vm/asdf-ruby#317.
This can be done with either
asdf plugin update --all
or
asdf plugin update ruby
to just update the ruby plugin.

How to install latest versions of packages on Google Colab (exists on PyPI, but missing on Colab index)?

I need to perform some preprocessing that depends on the latest versions of certain PyPI packages. For example: scipy version 1.8.0. This package version has been released on PyPI on February 5th 2022.
I'm trying to pip install this package on Google Colab via:
# Specifying the index explicitly to ensure we're using PyPI directly.
!pip install -i https://pypi.python.org/simple scipy==1.8.0
Unfortunately this errors with:
Looking in indexes: https://pypi.python.org/simple
ERROR: Could not find a version that satisfies the requirement scipy==1.8.0 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.0.1, 1.1.0rc1, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0rc1, 1.6.0rc2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.7.0rc1, 1.7.0rc2, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
ERROR: No matching distribution found for scipy==1.8.0
Even though scipy 1.8.0 clearly is on the https://pypi.python.org/simple index, I'm not seeing it Colab, and the latest available version is several months old.
Is there a way to pip install up-to-date package versions on Colab?
If you look at the files here
https://pypi.org/project/scipy/1.8.0/#files
You'll see they are only available for Python 3.8 and above.
So You'll either need to upgrade Python to 3.8 or compile scipy 1.8.0 from source.

Fluentd influxdb installation Error?

I want to install influxdb plugin but I get thid error.
ERROR: Error installing fluent-plugin-influxdb:
influxdb requires Ruby version >= 2.2.0.
I uninstalled my ruby and installed different versions from 2.0.0, 2.2.0, 2.3, 2.4
but the error still exist. would you please help me how to solve this.
Thank you.
First of all I installed latest version of ruby from hereruby ftp
Then I installed influxdb client
apt-get install influxdb-dev influxdb-client.
After all downlad the latest version of fluend-plugin-influxdb from git hub of plugin
then I installed the plug in
/opt/td-agent/embedded/bin/gem install fluent-plugin-influxdb
td-agent (Treasure Data's packaged version of Fluentd) includes its own version of ruby within the /opt/td-agent/embedded/ directory and has links to ensure that it does not collide with other installations of ruby on the same box.
You can update to the latest version of td-agent, or if you need a specific version of Ruby then you should
Install Ruby version
Follow gem install instructions here: https://docs.fluentd.org/v0.12/articles/install-by-gem

Why is the latest version of Ruby 1.9.3 in Ubuntu using apt-get?

In the package manager the latest version of ruby is 1.9.3 whereas the latest version of Ruby is 2.4.0 (stable).
To get the latest version you have to get the source and build it on your machine. Why so?
http://packages.ubuntu.com/yakkety/ruby says that the version of Ruby used for yakkety is Ruby 2.3, based on it relying on the package Ruby2.3.

How to choose between two versions of ruby on Mac OSX Mavericks

I have 1.8 and 2.0 installed on my system. How I can delete the old one or Use the new one to work with gems?
Be sure to install RVM and then select version 2.0 like this:
rvm use 2.0.0
You can check which version is being used with
ruby -v

Resources