Add script to build extensions

This commit is contained in:
Jamie Cansdale 2019-11-12 10:26:37 +00:00
Родитель 054e0ffaf3
Коммит 4dd9c3c36d
3 изменённых файлов: 29 добавлений и 2 удалений

Просмотреть файл

@ -24,14 +24,17 @@ Visit the [documentation](https://github.com/github/VisualStudio/tree/master/doc
Clone the repository and its submodules.
Open the `GitHubVS.sln` solution with Visual Studio 2019.
To be able to use the GitHub API, you'll need to:
- [Register a new developer application](https://github.com/settings/developers) in your profile
- Create an environment variable `GitHubVS_ClientID` with your `Client ID`
- Create an environment variable `GitHubVS_ClientSecret` with your `Client Secret`
Build using Visual Studio 2019.
Execute `build.cmd`
## Visual Studio Build
Build `GitHubVS.sln` using Visual Studio 2019.
## Logs
Logs can be viewed at the following location:

11
build.cmd Normal file
Просмотреть файл

@ -0,0 +1,11 @@
@echo off
call vars.cmd
rem Build GitHub for Visual Studio
NuGet restore .\GitHubVS.sln
msbuild .\GitHubVS.sln /p:DeployExtension=False
rem Build GitHub Essentials
NuGet restore .\src\GitHub.VisualStudio.16.sln
msbuild .\src\GitHub.VisualStudio.16.sln /p:DeployExtension=False

13
vars.cmd Normal file
Просмотреть файл

@ -0,0 +1,13 @@
@echo off
rem Add path to Visual Studio 2019 Tools
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\Common7\Tools
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\Common7\Tools
rem Set up Developer Command Prompt
call VsDevCmd.bat
rem Use local NuGet version
set PATH=%cd%\tools\nuget;%PATH%