Problem with extensions search in visual studio

If you are using Dynamics GP with Visual Studio 2017 –>  , you will find that the project templates for Dynamics GP do not show up in the new project or new item menus.

I wrote a solution to this in the form of a Visual Studio extension, but it seems that the extension is not showing up when it is searched for in the extension gallery, something brought to my attention via the Microsoft forums.

 

However if you page through the results then go back to page one of the results, then all of a sudden it appears in the list!

 

I’ll be bringing this to the attention of the VS team, in the meantime the video shows this work around.

Deploy Dynamics GP during development using Visual Studio External Tools Menu

I’ve never written this up before, but is a useful technique I use to allow the deployment of GP from the current project active build directory to the application addins folder.

Note that in this example PowerShell script, it will empty the addins folder before deploy. This may not be appropriate where other addins are present, tweak the deploy.ps1 script as appropriate for your development environment.


Setup external tool

Create a Deploy directory in the root of the project you wish to enable for copy deployment to the GP addins folder.

Save the following Deploy.ps1 script to that folder

Param(
   [string]$deployFrom,
   [string]$deployTo
)
Write-Host "Deploy from: $deployFrom To: $deployTo"
Remove-Item -Recurse -Force "$deployTo\*"
Get-ChildItem -Path $deployFrom -Recurse | Copy-Item -Destination $deployTo
Write-Host "Deploy complete"

Set up the external tool for launching the powershell script:

Deploy GP with External Tools

Command:

C:\windows\system32\windowspowershell\v1.0\powershell.exe


Arguments:

-File "$(ProjectDir)\Deploy\Deploy.ps1" "$(TargetDir)" "C:\Program Files (x86)\Microsoft Dynamics\GP2018\AddIns"

Title:

Deploy GP Add in


Use Output window checkbox checked


This will add a menu under the Visual Studio Tools menu of “Deploy GP Add in”, that will run the powershell script added to the project. The script takes the current project folder and uses it as a source to deploy GP from the current build target directory. Thus the deployment will honour the configuration type currently selected and the project currently selected will be selected as source.


To assign a keyboard shortcut

From Visual Studio Menu select Tools>Customize

Click “Keyboard” button

Keyboard button

Use the show commands containing: search box to search for tools.external:

AssignKeyboardShortcut

Then assign a shortcut by clicking the shortcut key combations while focus is on the “Press shortcut keys:” field


Microsoft Dynamics Community Blogs Notifications now enabled again

It used to be possible to subscribe and thus receive and email whenever blog content was updated in the community blogs.

Microsoft community forum notification icon on blogs

The ability to have an email sent when content changes in the community blogs has been restored after it was lost in the big redesign earlier in the year.

I was recommending that Steve Endow @steveendow should be trying this feature to be notified of new blog postings, only to find that the feature was no longer available! After brining this to the attention of the team responsible, they have kindly restored the functionality. So if you want to know when a new post goes on the blogs, use the bell icon at the top of the blog as shown in the screenshot.

Configure notifications as digest frequency

To configure the email settings go to your picture at the top right and use the drop down to get to settings.

Profiles ettings

Select the Email tab at the top of the page, then scroll down to the email settings:

email tab2


Settings


For each group you can change the frequency and nature of the mail from that group (blog).