Index: vc11/scribus-pgf/scribus-pgf.vcxproj
===================================================================
--- vc11/scribus-pgf/scribus-pgf.vcxproj	(revision 20933)
+++ vc11/scribus-pgf/scribus-pgf.vcxproj	(working copy)
@@ -1,5 +1,5 @@
 ﻿<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <ItemGroup Label="ProjectConfigurations">
     <ProjectConfiguration Include="Debug|Win32">
       <Configuration>Debug</Configuration>
@@ -26,24 +26,24 @@
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
     <ConfigurationType>StaticLibrary</ConfigurationType>
-    <PlatformToolset>v110</PlatformToolset>
+    <PlatformToolset>v120</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
     <WholeProgramOptimization>false</WholeProgramOptimization>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
     <ConfigurationType>StaticLibrary</ConfigurationType>
-    <PlatformToolset>v110</PlatformToolset>
+    <PlatformToolset>v120</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
     <WholeProgramOptimization>false</WholeProgramOptimization>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
     <ConfigurationType>StaticLibrary</ConfigurationType>
-    <PlatformToolset>v110</PlatformToolset>
+    <PlatformToolset>v120</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
     <ConfigurationType>StaticLibrary</ConfigurationType>
-    <PlatformToolset>v110</PlatformToolset>
+    <PlatformToolset>v120</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
@@ -104,6 +104,12 @@
       <DisableSpecificWarnings>4005;4244;4251;4258;4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
     </ClCompile>
     <Lib />
+    <PreBuildEvent>
+      <Command>SubWCRev.exe ..\..\..\..  ..\svn_version.h.tmpl ..\..\..\scribus\ui\svnversion.h</Command>
+    </PreBuildEvent>
+    <PreBuildEvent>
+      <Message>Automatic Subversion Revision Inclusion into Code</Message>
+    </PreBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     <ClCompile>
@@ -119,6 +125,12 @@
       <DisableSpecificWarnings>4005;4244;4251;4258;4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
     </ClCompile>
     <Lib />
+    <PreBuildEvent>
+      <Command>SubWCRev.exe ..\..\..\..  ..\svn_version.h.tmpl ..\..\..\scribus\ui\svnversion.h</Command>
+    </PreBuildEvent>
+    <PreBuildEvent>
+      <Message>Automatic Subversion Revision Inclusion into Code</Message>
+    </PreBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
     <ClCompile>
@@ -134,6 +146,12 @@
       <DisableSpecificWarnings>4005;4244;4251;4258;4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
     </ClCompile>
     <Lib />
+    <PreBuildEvent>
+      <Command>SubWCRev.exe ..\..\..\..  ..\svn_version.h.tmpl ..\..\..\scribus\ui\svnversion.h</Command>
+    </PreBuildEvent>
+    <PreBuildEvent>
+      <Message>Automatic Subversion Revision Inclusion into Code</Message>
+    </PreBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
     <ClCompile>
@@ -150,6 +168,12 @@
       <DisableSpecificWarnings>4005;4244;4251;4258;4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
     </ClCompile>
     <Lib />
+    <PreBuildEvent>
+      <Command>SubWCRev.exe ..\..\..\..  ..\svn_version.h.tmpl ..\..\..\scribus\ui\svnversion.h</Command>
+    </PreBuildEvent>
+    <PreBuildEvent>
+      <Message>Automatic Subversion Revision Inclusion into Code</Message>
+    </PreBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClCompile Include="..\..\..\scribus\third_party\pgf\Decoder.cpp" />
Index: vc11/svn_version.h.tmpl
===================================================================
--- vc11/svn_version.h.tmpl	(nonexistent)
+++ vc11/svn_version.h.tmpl	(working copy)
@@ -0,0 +1,9 @@
+#ifndef _SVN_VERSION_H_
+#define _SVN_VERSION_H_
+ 
+#define SVN_LOCAL_MODIFICATIONS $WCMODS?1:0$  // 1 if there are modifications to the local working copy, 0 otherwise
+#define SVNVERSION              $WCREV$       // Highest committed revision number in the working copy
+                                              // for scribus/ui/about.cpp
+#define SVN_TIME_NOW            $WCNOW$       // Current system date &amp; time
+ 
+#endif
\ No newline at end of file
Index: vc11/win-config.h
===================================================================
--- vc11/win-config.h	(revision 20933)
+++ vc11/win-config.h	(working copy)
@@ -4,6 +4,9 @@
 /* Version number of package */
 #define VERSION "1.5.1.svn"
 
+/* For windows, we need this to trigger windows build, in Linux there is a CMAKE module that handles this */
+#define HAVE_SVNVERSION 1
+
 /* Are we building win32 native version. */
 #define BUILD_WINDOWS_VERSION 1
 
