зеркало из https://github.com/github/VisualStudio.git
Add script to build extensions
This commit is contained in:
Родитель
054e0ffaf3
Коммит
4dd9c3c36d
|
@ -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:
|
||||
|
|
|
@ -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
|
|
@ -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%
|
Загрузка…
Ссылка в новой задаче