- Notifications
You must be signed in to change notification settings - Fork749
-
Environment
Detailsfrom pythonnet import load Output: More info: Another suggested solution is to use a very old version of SqlClient or the System.Data.SqlClient and neither are good options as they are obsolete and unreliable. Also adding a non-empty connection string doesn't matter because SqlClient do not seem to get to the point where this is processed. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 3 replies
-
Ran into this also. Through trial and error, I copied DLLs from a build output in the following order:
Worked! |
BetaWas this translation helpful?Give feedback.
All reactions
-
You copied them where? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I had a DLL with a reference to
|
BetaWas this translation helpful?Give feedback.
All reactions
-
@geographika Thank you a lot! You save my day)) I prepared MSBuild targets filePrepareRuntimes.targets for automate this operation. This How to use it
<ImportProject="$(MSBuildThisFileDirectory)..\PrepareRuntimes.targets" />
importplatformdefget_runtime():system=platform.system().lower()# e.g., 'windows', 'linux', 'darwin'architecture=platform.machine().lower()# e.g., 'x86_64', 'aarch64'# based on https://stackoverflow.com/questions/45125516/possible-values-for-uname-m# based on https://en.wikipedia.org/wiki/Uname# Mapping of system and architecture to custom platform namesifsystemin ['windows','windows_nt']andarchitecture=='amd64':return'win-x64'elifsystem=='linux'andarchitecturein ['arm','arm64','aarch64_b','aarch64','armv8b','armv8l']:return'linux-arm64'elifsystem=='darwin':return'osx-arm64'elifsystem=='linux':return'linux-x64'else:return'unknown'runtime=get_runtime()print(f"The script is running on:{runtime}")
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
This discussion was converted from issue #2306 on January 16, 2024 15:49.