winscp.exe不匹配此组件的版本
我试图更新到最新版本的WINSCP。
我们的项目中确实有.exe。我确保它是正确的版本,并且具有“复制”
获取错误:
例外:winscpnet.dll 版本的 \ corp \ somesharedrive \ utils \ winscpwrapper \ winscpwrapperget_v0100 \ winscp.exe (5.9.6.0)与此组件的版本不匹配 D:\ source \ neal \ git \ winappwinscp \ winscpwrapperget \ bin \ debug \ debug \ winscpnet.dll (5.19.6.0)。
存在我们共享网络驱动器上的上述目录,但是当我在Visual Studio中运行该程序时(2015年,我们需要与BizTalk的较旧版本保持兼容),我找不到它引用的原因。错误如何关注该奇数目录,尤其是当我项目中的winscp.exe(并且在完成构建后它也是我 /debug目录中的正确版本)时?
我的.csproj具有以下内容,我知道5.19.6是正确的新版本。
<Reference Include="WinSCPnet, Version=1.8.3.12002, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf, processorArchitecture=MSIL">
<HintPath>..\packages\WinSCP.5.19.6\lib\net40\WinSCPnet.dll</HintPath>
<Private>True</Private>
</Reference>
我找不到对.csproj文件中网络共享的任何引用。 我进行了Nuget安装或升级。
我看过这些相关问题: < 。 和 dll寻找错误的版本 但是我认为我的问题是不同的 - 我试图弄清楚为什么它在共享设备上使用.exe。
发布上述内容后,我进行了Nuget卸载,即安装,同样的问题。
I tried to update to the latest version of WinSCP.
We do have the .exe in our project. I made sure it was the correct version, and it has "Copy"
Getting Error:
Exception thrown: 'WinSCP.SessionLocalException' in WinSCPnet.dll The
version of
\corp\someShareDrive\Utils\WinSCPWrapper\WinSCPWrapperGet_v0100\WinSCP.exe
(5.9.6.0) does not match version of this assembly
D:\Source\Neal\Git\WinAppWinSCP\WinSCPWrapperGet\bin\Debug\WinSCPnet.DLL
(5.19.6.0).
The above directory on our shared network drive exists, but I can't find why it's referenced when I run the program in Visual Studio (2015, as we need to stay compatible with an older version of BizTalk). How could the error be concerned about that odd directory, especially when I have the WinSCP.exe in my project (and it's also the correct version in my /debug directory after doing the build)?
My .csproj has the following, and I know 5.19.6 is the correct new version.
<Reference Include="WinSCPnet, Version=1.8.3.12002, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf, processorArchitecture=MSIL">
<HintPath>..\packages\WinSCP.5.19.6\lib\net40\WinSCPnet.dll</HintPath>
<Private>True</Private>
</Reference>
I cannot find any reference to the network sharedrive in the .csproj file.
I did a Nuget install or upgrade.
I've seen these related questions:
The version of ...\WinSCP.exe does not match version of this assembly when using WinSCP .NET assemly
and
DLL looking for wrong version
but I think my question is different - I'm trying to figure out why it's using the .exe on a ShareDrive.
After posting the above, I did a Nuget uninstall, the an install, same issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我扫描了SharedRive名称的整个源代码目录,并在app.config文件中找到了它。
该程序使用app.config文件的变量设置“可执行路径”:
因此,我只需要更改配置文件即可。
I scanned the entire source code directory for the sharedrive name and found it in the app.config file.
The program set the "ExecutablePath" using a variable from the app.config file:
So I just needed to change the config file.