Skip to content

Commit 7f0cad5

Browse files
committed
Added a Paths.cmd template so users can add their local VisualStudio version easily. The old one was locked to 2019 enterprise.
1 parent 9ba11c3 commit 7f0cad5

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,4 @@ ASALocalRun/
328328

329329
# MFractors (Xamarin productivity tool) working folder
330330
.mfractor/
331+
/Paths.cmd

Diff for: Build.cmd

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ if exist Debug rd /s /q Debug
44
if exist Release rd /s /q Release
55
if exist x64 rd /s /q x64
66

7-
"%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release
7+
IF NOT EXIST "Paths.cmd" (
8+
ECHO Please copy "Paths.cmd.template", enter your Visual Studio path and rename it to "Paths.cmd".
9+
PAUSE
10+
GOTO exit
11+
)
12+
13+
call Paths.cmd
14+
"%VISUAL_STUDIO_PATH%" /p:Configuration=Release
815

916
:exit
1017
popd

Diff for: Paths.cmd.template

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
:: Set your Visual Studio path here.
3+
:: TODO: Make visual studio path auto detection.
4+
5+
:: Enterprise path
6+
SET VISUAL_STUDIO_PATH=%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe
7+
8+
:: Community path
9+
::SET VISUAL_STUDIO_PATH=%programfiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe
10+
11+
echo Using Visual Studio path:%VISUAL_STUDIO_PATH%
12+
@echo on

0 commit comments

Comments
 (0)