Let's walk through creating a standard Build VM
You are here
D365FO.Tools and You
Have you heard of D365FO.Tools? Let's take a look.
Get Ready To Rock
First, install D365FO.Tools.
Next, install Powershell Tools for Visual Studio 2015. You can do this easily by going to Tools > Extensions and Updates in Visual studio. Select "Online" then search for powershell. Restart Visual Studio.
Open Visual Studio then go to View > Other Windows > PowerShell Interactive Window.
Now you can fire off D365FO.Tools commands in VS without any fuss and keep on being productive during long(er) operations like database sync.
But What If Can't Remember Stuff?
In the PowerShell Interactive Window type:
This will prompt you to create a profile file. Hit yes. Now you can create aliases that you can (hopefully) remember. For instance, command Invoke-D365DBSync will run a full database sync. However, you could create an alias just to simplify things for the way your brain works. For instance, in your profile file, you can do this:
Set-Alias -Name dbSync -Value Invoke-D365DBSync
Your profile file will be located in a path similar to this:
Now you can do this:
You can see all of the available functions for D365FO.Tools here and each file has great documentation as part of the header. Next time we'll cover some of the common commands I use and provide a cheat sheet for the common stuff. You don't have to use an alias if you don't want to but I do as I don't use the various common commands enough to remember them. I don't do as much development as I used to.