通过Post Deployment Script从文件夹动态选择Dll [英] Dynamically choosing Dll from folder through Post Deployment Script

查看:80
本文介绍了通过Post Deployment Script从文件夹动态选择Dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我的项目需要第三方dll,第三方应用程序提供了两个dll,即32位和64位。我的所有服务器都以64位运行,它接受64位dll。当我想使用这个64位dll时,我需要对
visual studio设置进行更改,以便不在本地计算机上使用IIS express,使用64位,如下所示。 

My project require a third party dll,  The third party application provided two dlls namely for 32bit and 64bit. All of my servers are running in 64bit and it accepts the 64bit dll. when i want to use this 64bit dll, i need to make the changes on the visual studio settings to not to use the IIS express on the local machine, use the 64 bit as shown below. 

" Visual Studio->工具 - >项目和解决方案 - >网络项目 - >选择"使用64位版本的IIS express用于网站和项目""

"Visual Studio-> Tools -> Projects and Solutions -> Web Projects -> select "use the 64 bit version of IIS express for websites and projects""

为了避免在本地设置上述我计划将两个dll放在一个基于文件夹的文件夹上环境我想复制32位本地机器和64位服务器机器。

To avoid the above setting on the local i have plan to place the two dlls on a folder based on the environment i would like to copy 32bit for local machine and 64 bit for server machine.

是否有任何配置变量来识别此部署是否在部署后脚本的服务器计算机或本地计算机上运行? 

Is there any configuration variable to identify whether this build is running in server machine or local machine on the post deployment script ? 

请建议。

推荐答案

kamalsanjeevi

Hi kamalsanjeevi,

 

感谢您在此处发帖。

您的项目类型是什么?数据库项目?据我所知,

部署后脚本
用于数据库项目。此外,你什么时候想要
从文件夹中动态选择Dll?构建还是部署?

What is your project type? Database project? As far as I know, Post-Deployment Scripts is used in the database project. Besides, when did you want to Dynamically choose Dll from folder? Build or Deploy?


这篇关于通过Post Deployment Script从文件夹动态选择Dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆