![]() ![]() The Visual Studio project won't build or launch Mercurial yet. Leave the default.Īfter a few seconds, the Solution Explorer should be visible and the basic directory structure of the Mercurial source directory should be present.Īt this point, you should be able to open. The Detect Virtual Environments checkbox is likely checked.The default location inside the hg source directory is probably fine. It will ask you where to save the project.It should ask for a file to run when F5 is pressed. ![]() Or use the global default if it is acceptable. From the Python interpreter dropdown, make sure an appropriate interpreter is selected.C:\Users\me\src\hgįor the include files filter, replace the contents with *.h *.c *.t *.txt Point it at the location of your Mercurial source code.You should see a Welcome to the Create New Project from Existing Python Code Wizard window. Set the project Name text box to "hg" or similar.Īdjust the Location text box if desired (it doesn't matter where the solution/project is located).Ĭlick OK. Expand it and select From existing Python code. In the available templates tree list, there should be a Python section. or it will be somewhere on the start screen). Follow this procedure:įind and click the link to create a New Project. To develop Mercurial inside Visual Studio, you'll need to create a Visual Studio solution. We'll assume Python was installed to the default location of C:\Python27.īefore configuring a Visual Studio solution, you'll need to obtain the Mercurial source code. Quick link to Python 2.7.10 installers: 32-bit, 64-bit. Mercurial supports both 32-bit and 64-bit Python on Windows. PTVS won't install Python for you: you'll need to install it yourself.įind a link to a Python 2.7 MSI installer from. We recommend installing it.Īt the time this was written, Visual Studio 2015 was the latest available version and is known to work with these instructions.įollow the PTVS Installation Instructions to install Python support when installing Visual Studio. Visual Studio Community is a version of Visual Studio free for open source projects (like Mercurial). Modern versions of Microsoft's Visual Studio support Python Tools for Visual Studio (PTVS), which makes it possible to develop Python applications - including Mercurial - inside Visual Studio. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |