Skip to content

Commit d2337b9

Browse files
Modified build.bat & targets to comply with windows 8.1 & VS2013
1 parent 4a2428a commit d2337b9

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

SmartStoreNET.Tasks.Targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
33

44
<!-- General -->
5-
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll"/>
5+
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll"/>
66

77
<!-- Initialization -->
88

build.bat

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
set MSBuildPath=%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
22

3-
@IF NOT EXIST %MSBuildPath% @ECHO COULDN'T FIND MSBUILD: %MSBuildPath% (Is .NET 4 installed?)
3+
@IF NOT EXIST %MSBuildPath% @ECHO COULDN'T FIND MSBUILD: %MSBuildPath% (Is .NET 4 installed?)
4+
ELSE GOTO END
5+
6+
:CheckOS
7+
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
8+
9+
:64BIT
10+
echo 64-bit...
11+
set MSBuildPath="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
12+
GOTO END
13+
14+
:32BIT
15+
echo 32-bit...
16+
set MSBuildPath="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe"
17+
GOTO END
18+
19+
:END
420

521
%MSBuildPath% SmartStoreNET.proj /p:DebugSymbols=false /p:DebugType=None /P:SlnName=SmartStoreNET /maxcpucount %*

0 commit comments

Comments
 (0)