简体   繁体   English

准备部署控制台应用程序(组装基础知识)

[英]Preparing for deploying a console application (assembly fundamentals)

(new to .NET) I've built a small console application that uses a 3rd party data access component for Oracle (assemblies: devart.data.dll and devart.data.oracle.dll). (.NET的新增功能)我已经构建了一个小型控制台应用程序,该应用程序使用Oracle的第三方数据访问组件(组件:devart.data.dll和devart.data.oracle.dll)。 I've been asked to gather environmental requirements for a new test server. 我被要求收集新测试服务器的环境要求。 On my local machine, I am able to simply copy the bin/debug or bin/release folder and my app just works. 在我的本地计算机上,我可以简单地复制bin / debug或bin / release文件夹,并且我的应用程序可以正常工作。 However, I doubt this will be the case on a new system. 但是,我怀疑新系统是否会出现这种情况。 Obviously, I know I'll need the .NET 4.5 framework. 显然,我知道我需要.NET 4.5框架。 But for this other dependency, I don't see these dlls in my folder. 但是对于这种其他依赖性,我在文件夹中看不到这些dll。 I'm not even sure how these were installed (I inherited this computer from a now-gone developer). 我什至不知道这些文件的安装方式(我是从已经不复存在的开发人员那里继承了这台计算机的)。

How do installations of 3rd party tools typically work with respect to deployments? 通常,第三方工具的安装如何与部署有关? How will I be able to say what's required and how to get it on the target machine? 我将如何说出什么要求以及如何在目标计算机上获得它? Any advice is much appreciated! 任何建议深表感谢!

Have you checked your project references to see if the dlls are referenced in the project. 您是否检查过项目引用,以查看项目中是否引用了dll。 If they are, you should be able to see the path they are located in. I'm guessing the dlls are on your network drive somewhere and your project is pointing to them. 如果它们是,您应该能够看到它们所在的路径。我猜这些dll在网络驱动器上的某个位置,并且您的项目正在指向它们。

You should be able to check all your references by right clicking on your project and selecting the "add reference" item on the menu. 通过右键单击项目并在菜单上选择“添加引用”项,您应该能够检查所有引用。 If the ddls are on your network drive, as long as the testing server has access to the file directory, you shouldn't need to worry about deploying the dlls. 如果ddls在您的网络驱动器上,则只要测试服务器可以访问文件目录,就不必担心部署dll。

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

相关问题 将.Net核心控制台应用程序部署到Debian服务器 - Deploying .Net core console application to Debian server 控制台应用程序不会按名称加载程序集 - Console application wont load assembly by name 无法将程序集引用添加到控制台应用程序 - Unable to add assembly references to a Console Application Xamarin.Android 重新部署应用程序不更新程序集 - Xamarin.Android re-deploying the application does not update the assembly 使用EF和Oracle从控制台应用程序部署.exe失败 - Deploying .exe from console application using EF & Oracle failed DotNet Core 控制台应用程序:应用程序依赖项清单中指定的程序集 - DotNet Core console app: An assembly specified in the application dependencies manifest 无法使用 Class 库加载文件或程序集 C# 控制台应用程序 - Could not load file or assembly C# Console Application with Class Library 如何在没有ILMerge的情况下将程序集嵌入到控制台应用程序中? - how can I embed an assembly into a console application without ILMerge? 如何在 dotnet 控制台应用程序中引用和使用同一程序集的多个版本? - How to reference and use multiple versions of same assembly in dotnet console application? 部署应用 - Deploying application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM