Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 4dd9c3c

Browse files
committed
Add script to build extensions
1 parent 054e0ff commit 4dd9c3c

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ Visit the [documentation](https://github.com/github/VisualStudio/tree/master/doc
2424

2525
Clone the repository and its submodules.
2626

27-
Open the `GitHubVS.sln` solution with Visual Studio 2019.
2827
To be able to use the GitHub API, you'll need to:
2928

3029
- [Register a new developer application](https://github.com/settings/developers) in your profile
3130
- Create an environment variable `GitHubVS_ClientID` with your `Client ID`
3231
- Create an environment variable `GitHubVS_ClientSecret` with your `Client Secret`
3332

34-
Build using Visual Studio 2019.
33+
Execute `build.cmd`
34+
35+
## Visual Studio Build
36+
37+
Build `GitHubVS.sln` using Visual Studio 2019.
3538

3639
## Logs
3740
Logs can be viewed at the following location:

build.cmd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
3+
call vars.cmd
4+
5+
rem Build GitHub for Visual Studio
6+
NuGet restore .\GitHubVS.sln
7+
msbuild .\GitHubVS.sln /p:DeployExtension=False
8+
9+
rem Build GitHub Essentials
10+
NuGet restore .\src\GitHub.VisualStudio.16.sln
11+
msbuild .\src\GitHub.VisualStudio.16.sln /p:DeployExtension=False

vars.cmd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
3+
rem Add path to Visual Studio 2019 Tools
4+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools
5+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\Common7\Tools
6+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools
7+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\Common7\Tools" set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\Common7\Tools
8+
9+
rem Set up Developer Command Prompt
10+
call VsDevCmd.bat
11+
12+
rem Use local NuGet version
13+
set PATH=%cd%\tools\nuget;%PATH%

0 commit comments

Comments
 (0)