The following are directions on how to use MASM in Visual Studio Enterprise 2017.

        To create a new project, in the
Start Page under New project click on Create new project…

        Then under Installed expand Visual C++. Then click on Windows Desktop and select
Windows Desktop Wizard from the list on the right. (If Visual C++ doesn’t appear in the list of
        installed languages, be sure to go the bottom of the list and click on
Open Visual Studio Installer
 and then install Desktop development with C++).

        Then determine the Name of the project, whether the default such as
Project1 or one can key in
        another name such as
Test1. Then determine where the project should be stored, whether in the
        default folder given or key in another location such as F:\  for a jump drive, then click

        Now in the
Window Desktop Project window, note that the Application type should be
Console application (.exe) and if not select it. Then check the Empty Project box (where
Precompiled Header should automatically be deselected) and click Finish.

        Now in the
Solution Explorer, right click the name of the application (the default Project1 or
Test1 from above), then hover on Build Dependencies and then click Build Customizations.
       Then check the
masm box and click OK.

        Again in the
Solution Explorer, right click on the name of the project (default Project1 or Test1)
       and select
Properties. Then expand Linker and then click on Input. In the Additional Dependencies,
       type in
msvcrt.lib;legacy_stdio_definitions.lib; at the beginning of the list. Be careful not to delete
       any other entries, do not forget the semi-colons, and then click

        Then again in the
Solution Explorer, right click on the name of the application (Test1 or default
Project1), select Properties, then under Linker, select System, and verify that the SubSystem
is Console. (If not select it from the list).

        Now in the
Solution Explorer, expand Project1 or Test1 (if not done so already), and right click
  on Source Files, hover on Add, and click New Item. Note that the default is C++ File (.cpp). At
  the bottom of the screen use the default name (Source) and change the extension from
.cpp to .asm, or use a different name (such as TestMasm1.asm ). In either case be sure to use
 a .asm extension (because this indicates to use the Microsoft Assembler, MASM, instead of the
         C++ compiler) and then click

        One can now key in a program or copy and paste a complete program from the “Guide to

 Assembly Language” website. Then click on BUILD and Build Solution. If there are no syntax
 errors, then click on DEBUG and then Start Without Debugging.
Notes on Visual Studio 2017