Open hasnik opened 3 days ago
hello - i'm not sure we intended to support single-file deployment. Let me research on this a bit.
edit: per initial analysis it looks like this is a bug, without workarounds for the moment. We'll look into it.
Hi! Sure thing, take your time. If your research concludes that you do not intend to support single-file deployment I believe it's a good idea to communicate it explicitly in the documentation.
Team started to look into this, and there's already a PR https://github.com/snowflakedb/snowflake-connector-net/pull/1063 with a fix
What version of .NET driver are you using? 4.2.0
What operating system and processor architecture are you using? Windows 11 23H2 (build 22631.4460) x86_64
What version of .NET framework are you using? net9.0
What did you do? Run the app published with
dotnet publish --configuration Release --runtime win-x64 --self-contained true -p:PublishSingleFile=true
What did you expect to see? The app is working the same way as if it is published with
dotnet publish --configuration Release --runtime win-x64 --self-contained true
What is the actual result?
Problem description Snowflake.Data relies on the fact that it is able to locate an assembly and if the app is packaged as a single file it is unable to do so. Is there a way I can pass required information to Snowflake.Data so that it will work when published as a single file?