Skip to content

Commit c3ecc72

Browse files
committed
NH-3875 - Build with MSBuild Tools 2015 (14)
1 parent e1f608d commit c3ecc72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build-common/common-project.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@
4545
<include buildfile="common.xml" />
4646

4747
<target name="common.compile-all" depends="common.generate-assemblyinfo">
48-
<!--property name="msbuild.cmd" value="${cmd.sln} ${cmd.out} ${cmd.platform} ${cmd.debug} ${cmd.optimize} ${cmd.doc} /t:Rebuild /v:q /m" /-->
48+
<!--property name="msbuild.cmd" value="${cmd.sln} ${cmd.out} ${cmd.platform} ${cmd.debug} ${cmd.optimize} ${cmd.doc} /t:Rebuild /v:q /m" /-->
49+
<readregistry property="MSBuildToolsPath" key="SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0\MSBuildToolsPath" hive="LocalMachine" />
4950

50-
<exec program="${framework::get-framework-directory(framework::get-target-framework())}\msbuild.exe" verbose="true">
51+
<exec program="${path::combine(MSBuildToolsPath, 'msbuild.exe')}" verbose="true">
5152
<arg value="${root.dir}/src/NHibernate.sln" />
5253
<arg value="/p:OutputPath=&quot;${path::get-full-path(bin.dir)}&quot;" />
5354
<arg value="/p:Platform=&quot;Any CPU&quot;" />

0 commit comments

Comments
 (0)