Skip to content
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

SNOW-1265394: Unable to resolve dependency 'Mono.Unix'. Source(s) used: 'nuget.org', 'Axiom', 'Microsoft Visual Studio Offline Packages'. #895

Closed
greenmodulus opened this issue Mar 22, 2024 · 3 comments
Assignees
Labels
question Issue is a usage/other question rather than a bug status-triage_done Initial triage done, will be further handled by the driver team

Comments

@greenmodulus
Copy link

Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!

  1. What version of .NET driver are you using?

  2. What operating system and processor architecture are you using?
    Windows 11 x64

  3. What version of .NET framework are you using?
    .net framework 4.7.2

  4. What did you do?

Opened nuget package manager. Searched for Snowflake.data. Clicked install. Got the above error.

  1. What did you expect to see?

Snowflake.data should have installed.

  1. Can you set logging to DEBUG and collect the logs?

  2. What is your Snowflake account identifier, if any? (Optional)

@github-actions github-actions bot changed the title Unable to resolve dependency 'Mono.Unix'. Source(s) used: 'nuget.org', 'Axiom', 'Microsoft Visual Studio Offline Packages'. SNOW-1265394: Unable to resolve dependency 'Mono.Unix'. Source(s) used: 'nuget.org', 'Axiom', 'Microsoft Visual Studio Offline Packages'. Mar 22, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka self-assigned this Mar 25, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka added status-triage Issue is under initial triage and removed bug labels Mar 25, 2024
@sfc-gh-dszmolka
Copy link
Contributor

sfc-gh-dszmolka commented Mar 25, 2024

hi and thank you for raising this Issue with us! Apparently Mono.Unix (which has been added as a dependency with Snowflake .NET driver 3.0.0) is considered prerelease so by default does not get installed.

You can try the following:

  1. Enable installing prerelease packages too in NuGet, per this Microsoft article
    OR
  2. in your project, open NuGet package manager console (in VisualStudio it's Tools > Nuget Package Manager > Package Manager console), then after Powershell is loaded, issue this command to install Mono.Unix:
    PM> NuGet\Install-Package Mono.Unix -Version 7.1.0-final.1.21458.1
    afterwards, retry installing Snowflake.Data (v3.0.0) which now should be successful
    OR
  3. if for some reason you don't want to use either of the above approaches, install the older Snowflake.Data v2.2.0 which does not yet depend on Mono.Unix

Hope this helps but let us know if you need any further help.

@sfc-gh-dszmolka sfc-gh-dszmolka added question Issue is a usage/other question rather than a bug status-triage_done Initial triage done, will be further handled by the driver team and removed status-triage Issue is under initial triage labels Mar 25, 2024
@greenmodulus
Copy link
Author

Thank you so much for your time, knowledge and quick response!!!
Checking prerelease didn't change the error but directly installing the Mono.Unix worked and then installing Snowflake.Data worked perfectly!

@MKentV
Copy link

MKentV commented Oct 4, 2024

I also used the direct installation via the Nuget command line and it resolved the error for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue is a usage/other question rather than a bug status-triage_done Initial triage done, will be further handled by the driver team
Projects
None yet
Development

No branches or pull requests

3 participants