AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.11.2015, 10:00   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
If part of your daily job includes creating control add-ins for Microsoft Dynamics NAV, then you know that creating control add-ins that target all clients requires quite a lot manual work. There are a lot of small steps that you must do every time.

To avoid all that work that adds no value, only frustration, here’s a Visual Studio project template that you can use to automate the process of creating a new control add-in.



First, download the project template by clicking here.

Then, to install it on your machine, take the ZIP file you downloaded, and put it to:

DocumentsVisual Studio 20xxTemplatesProjectTemplates

Just place the ZIP there, no need to unpack anything.

To use it, (re)start Visual Studio, and then in your New Project window, select Templates > Visual C#, then scroll to the bottom and select this little guy:



Then set the name of the project, click OK, and you have your new shiny control add-in project structure in place.

To make full use of it:
  • Choose a strong name file to sign the project with. The PowerShell script that runs after building will remind you of this if you forget.
  • Edit the IControlAddIn.cs file to change the value of the ControlAddInExport attribute.
At this stage, you can already press F6 to build it, and it will immediately find its way into Control Add-ins page in NAV, together with the resource file.

After first build, PowerShell script will create the Resource subfolder and create a default resource file structure and a manifest file in there. The files are present inside the project folder, but are not part of the project. It’s a good idea to make them a part of the project, so do this:
  • In Solution Explorer, click the Show All Files icon
  • Right click the Resources folder
  • Click Include in Project


And that’s all. Inside your Resource Folder you’ll have a subfolder for every control add-in of interface type that you add to this project, and there you’ll find the Manifest file, subfolder for each resource type, jQuery 2.1.4, and the IControlAddIn.js script that should contain your JavaScript code.

Have fun creating your new control add-ins, and let me know if you find this little tool useful.

Read this post at its original location at http://vjeko.com/visual-studio-contr...oject-template, or visit the original blog at http://vjeko.com. 5e33c5f6cb90c441bd1f23d5b9eeca34The post Visual Studio Control Add-in Project Template appeared first on Vjeko.com.

</img> </img>

Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 17:21.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.