Browse Source

Automatically select the default platform toolset for examples in MSVC builds

Cameron Cawley 1 month ago
parent
commit
3681a94c66
32 changed files with 37 additions and 66 deletions
  1. 6 4
      VisualC/examples/Examples.props
  2. 1 2
      VisualC/examples/asyncio/01-load-bitmaps/01-load-bitmaps.vcxproj
  3. 1 2
      VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj
  4. 1 2
      VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj
  5. 1 2
      VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj
  6. 1 2
      VisualC/examples/audio/04-multiple-streams/04-multiple-streams.vcxproj
  7. 1 2
      VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj
  8. 1 2
      VisualC/examples/demo/01-snake/01-snake.vcxproj
  9. 1 2
      VisualC/examples/demo/02-woodeneye-008/02-woodeneye-008.vcxproj
  10. 1 2
      VisualC/examples/demo/03-infinite-monkeys/03-infinite-monkeys.vcxproj
  11. 1 2
      VisualC/examples/demo/04-bytepusher/04-bytepusher.vcxproj
  12. 1 2
      VisualC/examples/generate.py
  13. 1 2
      VisualC/examples/input/01-joystick-polling/01-joystick-polling.vcxproj
  14. 1 2
      VisualC/examples/input/02-joystick-events/02-joystick-events.vcxproj
  15. 1 2
      VisualC/examples/misc/03-locale/03-locale.vcxproj
  16. 1 2
      VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj
  17. 1 2
      VisualC/examples/renderer/01-clear/01-clear.vcxproj
  18. 1 2
      VisualC/examples/renderer/02-primitives/02-primitives.vcxproj
  19. 1 2
      VisualC/examples/renderer/03-lines/03-lines.vcxproj
  20. 1 2
      VisualC/examples/renderer/04-points/04-points.vcxproj
  21. 1 2
      VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj
  22. 1 2
      VisualC/examples/renderer/06-textures/06-textures.vcxproj
  23. 1 2
      VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj
  24. 1 2
      VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj
  25. 1 2
      VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj
  26. 1 2
      VisualC/examples/renderer/10-geometry/10-geometry.vcxproj
  27. 1 2
      VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj
  28. 1 2
      VisualC/examples/renderer/14-viewport/14-viewport.vcxproj
  29. 1 2
      VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj
  30. 1 2
      VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj
  31. 1 2
      VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj
  32. 1 2
      VisualC/examples/renderer/19-affine-textures/19-affine-textures.vcxproj

+ 6 - 4
VisualC/examples/Directory.Build.props → VisualC/examples/Examples.props

@@ -26,32 +26,34 @@
   <PropertyGroup>
     <PreferredToolArchitecture>x64</PreferredToolArchitecture>
   </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
     <WholeProgramOptimization>true</WholeProgramOptimization>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
     <WholeProgramOptimization>true</WholeProgramOptimization>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
   <ImportGroup Label="ExtensionSettings">
   </ImportGroup>
   <ImportGroup Label="Shared">

+ 1 - 2
VisualC/examples/asyncio/01-load-bitmaps/01-load-bitmaps.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{6A2BFA8B-C027-400D-A18B-3E9E1CC4DDD0}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\asyncio\01-load-bitmaps\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\asyncio\01-load-bitmaps\load-bitmaps.c" />

+ 1 - 2
VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{EB448819-74BC-40C9-A61A-4D4ECD55F9D5}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\audio\01-simple-playback\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\audio\01-simple-playback\simple-playback.c" />

+ 1 - 2
VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{6B710DFF-8A4A-40A2-BF2D-88D266F3D4F0}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\audio\02-simple-playback-callback\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\audio\02-simple-playback-callback\simple-playback-callback.c" />

+ 1 - 2
VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{608C6C67-7766-471F-BBFF-8B00086039AF}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\audio\03-load-wav\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\audio\03-load-wav\load-wav.c" />

+ 1 - 2
VisualC/examples/audio/04-multiple-streams/04-multiple-streams.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{7117A55C-BE4E-41DB-A4FC-4070E35A8B28}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\audio\04-multiple-streams\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\audio\04-multiple-streams\multiple-streams.c" />

+ 1 - 2
VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{510ACF0C-4012-4216-98EF-E4F155DE33CE}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\camera\01-read-and-draw\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\camera\01-read-and-draw\read-and-draw.c" />

+ 1 - 2
VisualC/examples/demo/01-snake/01-snake.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{7820969A-5B7B-4046-BB0A-82905D457FC5}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\demo\01-snake\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\demo\01-snake\snake.c" />

+ 1 - 2
VisualC/examples/demo/02-woodeneye-008/02-woodeneye-008.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{A3F601E0-B54C-4DD8-8A97-FDEF7624EE60}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\demo\02-woodeneye-008\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\demo\02-woodeneye-008\woodeneye-008.c" />

+ 1 - 2
VisualC/examples/demo/03-infinite-monkeys/03-infinite-monkeys.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{75AEE75A-C016-4497-960B-D767B822237D}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\demo\03-infinite-monkeys\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\demo\03-infinite-monkeys\infinite-monkeys.c" />

+ 1 - 2
VisualC/examples/demo/04-bytepusher/04-bytepusher.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{3DB9B219-769E-43AC-8B8B-319DB6045DCF}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\demo\04-bytepusher\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\demo\04-bytepusher\bytepusher.c" />

+ 1 - 2
VisualC/examples/generate.py

@@ -13,8 +13,7 @@ def generate(category, example_name, c_source_file):
   <PropertyGroup Label="Globals">
     <ProjectGuid>{{{guid}}}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\\examples\\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\\..\\examples\\{category}\\{example_name}\\README.txt" />
     <ClCompile Include="$(SolutionDir)\\..\\examples\\{category}\\{example_name}\\{c_source_file}" />

+ 1 - 2
VisualC/examples/input/01-joystick-polling/01-joystick-polling.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{B3852DB7-E925-4026-8B9D-D2272EFEFF3C}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\input\01-joystick-polling\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\input\01-joystick-polling\joystick-polling.c" />

+ 1 - 2
VisualC/examples/input/02-joystick-events/02-joystick-events.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{FCBDF2B2-1129-49AE-9406-3F219E65CA89}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\input\02-joystick-events\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\input\02-joystick-events\joystick-events.c" />

+ 1 - 2
VisualC/examples/misc/03-locale/03-locale.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{6381F9D3-BA5F-4E5C-80FF-9013964777EE}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\misc\03-locale\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\misc\03-locale\locale.c" />

+ 1 - 2
VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{5EDA1ED3-8213-4C12-B0DF-B631EB611804}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\pen\01-drawing-lines\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\pen\01-drawing-lines\drawing-lines.c" />

+ 1 - 2
VisualC/examples/renderer/01-clear/01-clear.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{896557AC-7575-480C-8FFD-AB08B5DA305D}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\01-clear\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\01-clear\clear.c" />

+ 1 - 2
VisualC/examples/renderer/02-primitives/02-primitives.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{504DC7EC-D82E-448E-9C7D-3BE7981592B3}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\02-primitives\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\02-primitives\primitives.c" />

+ 1 - 2
VisualC/examples/renderer/03-lines/03-lines.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{BDE7DBC0-DCE7-432E-8750-C4AE55463699}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\03-lines\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\03-lines\lines.c" />

+ 1 - 2
VisualC/examples/renderer/04-points/04-points.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{7B250AB1-92D3-4F1A-BEB4-19605A69CEDB}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\04-points\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\04-points\points.c" />

+ 1 - 2
VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{4C0E3A60-24F8-4D4C-81C0-C1777F5E7B17}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\05-rectangles\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\05-rectangles\rectangles.c" />

+ 1 - 2
VisualC/examples/renderer/06-textures/06-textures.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{B3D61611-BFA3-4B66-ADC7-A3CE578A6D36}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\06-textures\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\06-textures\textures.c" />

+ 1 - 2
VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{540AE143-A58F-4D3B-B843-94EA8576522D}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\07-streaming-textures\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\07-streaming-textures\streaming-textures.c" />

+ 1 - 2
VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{7091C001-3D71-47D4-B27B-E99271E5B987}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\08-rotating-textures\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\08-rotating-textures\rotating-textures.c" />

+ 1 - 2
VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{AF8BC84E-0268-4D1F-9503-84D9EE84C65F}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\09-scaling-textures\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\09-scaling-textures\scaling-textures.c" />

+ 1 - 2
VisualC/examples/renderer/10-geometry/10-geometry.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{8B9AB23E-3F40-4145-BA1C-B2CEACFBBD72}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\10-geometry\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\10-geometry\geometry.c" />

+ 1 - 2
VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{E9C6A7A6-22C0-42E6-AC9C-8580A396D077}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\11-color-mods\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\11-color-mods\color-mods.c" />

+ 1 - 2
VisualC/examples/renderer/14-viewport/14-viewport.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{B85BC466-C7F0-4C6D-8ECF-ED57E775FC73}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\14-viewport\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\14-viewport\viewport.c" />

+ 1 - 2
VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{9DBD962F-EA4D-44E3-8E8E-31D7F060A2DC}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\15-cliprect\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\15-cliprect\cliprect.c" />

+ 1 - 2
VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{EEF00329-4598-4E34-B969-9DD4B0815E6C}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\17-read-pixels\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\17-read-pixels\read-pixels.c" />

+ 1 - 2
VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{CC0714AA-8A81-4E29-BEC5-2E4FBC50E7FE}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\18-debug-text\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\18-debug-text\debug-text.c" />

+ 1 - 2
VisualC/examples/renderer/19-affine-textures/19-affine-textures.vcxproj

@@ -3,8 +3,7 @@
   <PropertyGroup Label="Globals">
     <ProjectGuid>{E21C50BF-54B4-434C-AA24-9A6469553987}</ProjectGuid>
   </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <Import Project="$(SolutionDir)\examples\Examples.props" />
   <ItemGroup>
     <None Include="$(SolutionDir)\..\examples\renderer\19-affine-textures\README.txt" />
     <ClCompile Include="$(SolutionDir)\..\examples\renderer\19-affine-textures\affine-textures.c" />