PIESDKDoNet secondary development configuration considerations

  The following will encounter several common configuration problems in the development process after installing PIESDK secondary development, the document will write a summary.

1. Create a new project template no problem PIESDK

  New Project on time, can not be found in the following figure PIEMainApplication template or PIEMapApplication

 

Solution:

1, the positioning problem: Open VS2013 or other version, open the VS toolbar select "Tools" -> "Options" -> "Projects and Solutions"

 

  View user area zoned red box project templates location path there PIEMainApplication.zip or PIEMapApplication.zip two templates;

  When the template installation PIESDK default on C: \ Users \ Administrator \ Documents \ VisualStudio \ 2013 \ Templates \ ProjectTemplates dish, but everyone in the installation system this path may be different, if not search on the C drive any of a template to see what position your computer.

2, the solution:

  The position of the user project templates have VS PIESDK modifications to the template position (to facilitate later updated automatically unloading the template);

  Or copy the template to the VS default user project templates location (uninstall each version change to pay attention to replace the VS project templates location of the user templates)

2. Control Toolbox no problem PIESDK

When the interface is not dragging PIESDK Control Toolbox controls

 

solution:

 

1, in the space right next to the regular select the Add tab, the tab name to "PIE Controls" or other custom name

2. Right-click the newly built tab "option key" to bring up the Choose Toolbox Items dialog box, select TOCControl, MapControl, and PageLayoutControl3 a control can be

 

Note: If no corresponding controls, you can choose to view, select the figure of two DLL open on the line, and then select just three controls on the line.

 

3. New Project environment configuration issues

  Whether or plug-in component development to develop new projects all the time need to set environment configuration, three steps to solve the route:

1, modify the solution platform

  安装的32位就改为x86,64的就改为x64(目前64位的控件不支持组件式开发的拖拽,但支持插件式开发)

 

  如果没有对应的x86或者x64,可以在配置管理器中新建

 

2、 修改工程的生成路径

点击工程右键属性,弹出界面

3、  添加引用

  根据自己需要的PIESDK引用进行添加,如果已经有或者不需要就可以不添加;

 

 

3.1. 根据PIESDK模板新建项目

     环境配置参照第3章节介绍(解决方案平台、引用、生成路径)。这个只需要查看,不对的地方再修改;

3.2. 组件式开发Window窗体开发

  环境配置参照第3章节介绍(解决方案平台、引用、生成路径)。

 

4.百度云示例代码运行配置问题

  百度云示例代码下载后直接运行时有时直接运行会失败,因为下载的代码的环境配置在你的电脑找不到,所以会报错;

  需要修改下工程的解决方案平台、生成路径2个地方。过程和第3章节的步骤一致,请自行查看参照修改。

  引用只需查看一下是不是出现有黄色的感叹号,以及每个引用的dll位置是否正确(右键属性可以查看路径),路径不对,将特定版本是true改为false,然后再改为true;如果是false,路径也不对的情况下,就直接把该dll删除再重新添加一下即可。

注意:

1、以上的配置适用.Net的32位和64位的二次开发,

如果是64位的,只是程序的设计界面打不开,但是可以运行

2、以上的环境配置设置完后,在运行的时候最好再重新编译生成一下

5.关于64位的问题

  由于vs目前的版本64位不支持用户控件的拖拽以及设计界面的查看,在界面拖拽的时候会出现卡顿的情况,甚至崩溃;查看主窗体的界面会出现问题。

  所以设计界面建议第一种方法建议用32位设计,然后修改环境后卸载32装64的即可;

  第二种方法可以不在界面上拖放MapControl和TocControl和PageLayoutControl,直接用代码设计,将对应的控件设置在主窗体对应的区域即可,如下图:

图-主界面

界面PIESDK控件代码实现:

这样运行的效果和拖拽的效果一样。

Guess you like

Origin www.cnblogs.com/PIESat/p/10980855.html