BizTalk 2006 Development in Visual Studio 2005
One of the requirements for BizTalk 2006 is that you must use Visual Studio 2005 for development. This makes sense because everything in BizTalk is now based on the .Net 2.0 Framework. Microsoft has made a few modifications for the developer on this from.
BizTalk 2006要求使用Visual Studio 2005作为开发环境.这意味着现在BizTalk是基于.net 2.0框架的.微软已经为此作了一些修改.
If you look at the Properties of your BizTalk Project, you now have a couple of new options (You can right click your project, select properties and then navigate to Configuration Properties, Deployment). You can now enter an Application Name which is a new feature of BizTalk 2006. If you do not enter a name, it will use the default application (which defaults to BizTalk Application 1). In this dialog window, you can also specify Redeploy = True (which actually works this time) and you can also specify to restart Host Instances upon deployment. This really can help speed up your development time.
如果你仔细观察BizTalk Project的一些属性,你会发现一些新的选项(右键点击你的project,选择属性然后转到配置属性(Configuration Properties)->部署(Deployment) ).现在你可以为你的Project起一个应用程序名称,这是BizTalk 2006的新特性.如果没有输入应用程序名,BizTalk 2006将会使用默认的应用程序(默认的应用程序名叫BizTalk Application 1).在这个对话窗口中,你也可以指定重部署(Redeploy)为true(这个将非常有用) 并且你也可以指定在部署之后是否需要重启Host Instances.这能够提高开发速度,节约时间.
For Redeployment, you may have a scenario where you have a Schemas Project, Maps Project and an Orchestrations Project. If you have everything deployed and you make a modification to a Schema in the Schemas Project, you can right click and specify Deploy. The Tool will now take care of Undeploying the assemblies that rely on the Schemas Project (in this case the Maps and Orchestrations projects) and the new Schemas Project will be deployed. This will not redeploy the Maps and Orchestrations Projects! This saves you from having to undeploy everything by hand, but you will still have to go in and redeploy the projects that contained a dependency to the schemas.
对于上面提到的Redeploy选项,当你多工程部署的时候非常有用的,比如这样一个情况,你有一个Schemas Project,Maps Project和一个Orchestrations Project.假如你已经把他们每个Project部署好了,但是现在修改了Schemas Project中的一个Schema,你只要右键点击选择Deploy(而不必像以前BizTalk 2004要一个个全部Undeploy,然后反次序deploy,如果中间的依赖关系搞错了,可能会Undeploy失败).这个功能将会自动卸载依赖于Schemas Project的程序集(assembly)(这里就是指Maps和Orchestration Projects) 然后重新部署Schemas Project.但是不会重新部署未修改的Maps和Orchestration Projects.这样省去了每一个手动卸载(undeploy)的操作,但是你仍然需要重新部署依赖schemas project的工程.
Visual Studio 2005 has the same BizTalk Explorer as we had in BizTalk 2004. If you use Visual Studio to create a Receive Port/Location or a Send Port, it will only look at the default application. This can cause issues or confusion if you don't realize what is going on. If you specify an Application Name for your project and deploy, a new Application will get created for you. If you then add a Send/Receive Port from within Visual Studio, it will not be using your new Application, but the default application of BizTalk Application 1. You will need to open the BizTalk Admin Tool and move your Send/Receive Ports from BizTalk Application 1 to your new Application. There is not much pain in doing this, but you just need to be aware of it.
Visual Studio 2005 仍然保留着一个和原来BizTalk 2004一样的BizTalk Explorer.如果你用Visual Studio的这个BizTalk Exploer创建一个接收端口接收位置或者一个发送端口,他将会建立在默认的应用程序里,也就是前面说的BizTalk Application 1.这将会产生问题和混淆。假如你预先指定一个应用程序名再部署,这时将为你建立一个新的应用程序。假如你现在Visual Studio里的BizTalk Explorer窗口中添加发送接收端口,它并不会使用你新建的Application,而是默认的BizTalk Application 1.你必须打开BizTalk的管理控制台,然后把你的发送接收端口从BizTalk Application 1的应用程序里移到你的新Application里.这个并不很费力,但是你只要知道怎么回事就行了。
To ease this process, you can Create and Deploy your Application via Visual Studio. Then you can open the BizTalk Admin Tool and change the default Application from BizTalk Application 1 to your new project. You can right click your Application and select Properties. There is a checkbox that states: Make this the default application. Now the BizTalk Explorer in Visual Studio will be pointing to your new Application and all is well.
为了简化操作,你可以通过Visual Studio创建和部署Application.然后打开BizTalk管理控制台,然后把默认应用程序从原来的BizTalk Application 1改成你的project.你可以这样操作,在BizTalk 管理控制台中的Application 页,右键点击你的新Application,选择属性,对话框中有一个checkbox:Make this the default application(设置为默认Application),勾选它。现在Visual Studio中的BizTalk Explorer将会指向你的新Application.
These are just some basic changes in BizTalk 2006, but they really help out with the development process.
浙公网安备 33010602011771号