简体   繁体   English

如何部署现在正在使用任务并行库反向移植的.net 3.5应用程序

[英]How to deploy .net 3.5 application that is now using the task parallel library backport

I am trying to put out a new version of an existing .net 3.5 application that now uses the task parallel library backport for .net 3.5. 我正在尝试推出现有.net 3.5应用程序的新版本,该应用程序现在使用针对.net 3.5的任务并行库backport。 I know I need to distribute System.Threading.dll to the users (version 1.0.2856.102), but I am not sure where to put it. 我知道我需要将System.Threading.dll分发给用户(版本1.0.2856.102),但是我不确定将其放置在何处。 I thought just putting it in the same directory as the executable would do it, but I am still getting an exception. 我以为只要将其与可执行文件放在同一目录中即可,但是我仍然遇到异常。 Is there something special I need to do on the user's machine to get it to recognize this dll? 我需要在用户计算机上执行一些特殊操作以使其识别此dll吗?

Here is the exception: 这是例外:

    System.IO.FileNotFoundException Message:Could not load file or assembly 'System.Threading, Version=1.0.2856.102

Looks like it was user error. 看起来是用户错误。 The user led me to believe they put the dll in the application directory, but they didn't. 用户使我相信他们将dll放在了应用程序目录中,但没有这样做。 Putting it in the application directory fixes the issue. 将其放在应用程序目录中可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM