Skip to content

Commit bd7b7f5

Browse files
authored
Environment Variables (#206)
* Initial check-in * Use WindowsPackageType property * cpp win32 unpackaged * cs winforms unpackaged * Removing version variables no longer needed * adding arm configurations
1 parent 247005f commit bd7b7f5

25 files changed

+2006
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.2.32505.173
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CppWinRtConsoleEnv", "CppWinRtConsoleEnv\CppWinRtConsoleEnv.vcxproj", "{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|ARM = Debug|ARM
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|ARM = Release|ARM
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Debug|ARM.ActiveCfg = Debug|ARM
19+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Debug|ARM.Build.0 = Debug|ARM
20+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Debug|x64.ActiveCfg = Debug|x64
21+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Debug|x64.Build.0 = Debug|x64
22+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Debug|x86.ActiveCfg = Debug|Win32
23+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Debug|x86.Build.0 = Debug|Win32
24+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Release|ARM.ActiveCfg = Release|ARM
25+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Release|ARM.Build.0 = Release|ARM
26+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Release|x64.ActiveCfg = Release|x64
27+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Release|x64.Build.0 = Release|x64
28+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Release|x86.ActiveCfg = Release|Win32
29+
{4C7D2F94-CA7C-4D5D-852D-986389EF3E2B}.Release|x86.Build.0 = Release|Win32
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {87483536-369E-4CF4-BC40-705806D8CCB9}
36+
EndGlobalSection
37+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.props')" />
4+
<Import Project="..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.props" Condition="Exists('..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.props')" />
5+
<Import Project="..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.props" Condition="Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.props')" />
6+
<PropertyGroup Label="Globals">
7+
<CppWinRTOptimized>true</CppWinRTOptimized>
8+
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
9+
<CppWinRTGenerateWindowsMetadata>true</CppWinRTGenerateWindowsMetadata>
10+
<MinimalCoreWin>true</MinimalCoreWin>
11+
<VCProjectVersion>15.0</VCProjectVersion>
12+
<ProjectGuid>{4c7d2f94-ca7c-4d5d-852d-986389ef3e2b}</ProjectGuid>
13+
<Keyword>Win32Proj</Keyword>
14+
<RootNamespace>CppWinRtConsoleEnv</RootNamespace>
15+
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.19041.0</WindowsTargetPlatformVersion>
16+
<WindowsTargetPlatformMinVersion>10.0.17134.0</WindowsTargetPlatformMinVersion>
17+
<WindowsPackageType>None</WindowsPackageType>
18+
<WinUISDKReferences>false</WinUISDKReferences>
19+
</PropertyGroup>
20+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
21+
<ItemGroup Label="ProjectConfigurations">
22+
<ProjectConfiguration Include="Debug|ARM">
23+
<Configuration>Debug</Configuration>
24+
<Platform>ARM</Platform>
25+
</ProjectConfiguration>
26+
<ProjectConfiguration Include="Debug|Win32">
27+
<Configuration>Debug</Configuration>
28+
<Platform>Win32</Platform>
29+
</ProjectConfiguration>
30+
<ProjectConfiguration Include="Release|ARM">
31+
<Configuration>Release</Configuration>
32+
<Platform>ARM</Platform>
33+
</ProjectConfiguration>
34+
<ProjectConfiguration Include="Release|Win32">
35+
<Configuration>Release</Configuration>
36+
<Platform>Win32</Platform>
37+
</ProjectConfiguration>
38+
<ProjectConfiguration Include="Debug|x64">
39+
<Configuration>Debug</Configuration>
40+
<Platform>x64</Platform>
41+
</ProjectConfiguration>
42+
<ProjectConfiguration Include="Release|x64">
43+
<Configuration>Release</Configuration>
44+
<Platform>x64</Platform>
45+
</ProjectConfiguration>
46+
</ItemGroup>
47+
<PropertyGroup Label="Configuration">
48+
<ConfigurationType>Application</ConfigurationType>
49+
<PlatformToolset>v143</PlatformToolset>
50+
<PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
51+
<PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
52+
<PlatformToolset Condition="'$(VisualStudioVersion)' == '14.0'">v140</PlatformToolset>
53+
<CharacterSet>Unicode</CharacterSet>
54+
</PropertyGroup>
55+
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
56+
<UseDebugLibraries>true</UseDebugLibraries>
57+
<LinkIncremental>true</LinkIncremental>
58+
</PropertyGroup>
59+
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
60+
<UseDebugLibraries>false</UseDebugLibraries>
61+
<WholeProgramOptimization>true</WholeProgramOptimization>
62+
<LinkIncremental>false</LinkIncremental>
63+
</PropertyGroup>
64+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
65+
<ImportGroup Label="ExtensionSettings">
66+
</ImportGroup>
67+
<ImportGroup Label="Shared">
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<ImportGroup Label="PropertySheets">
73+
<Import Project="PropertySheet.props" />
74+
</ImportGroup>
75+
<PropertyGroup Label="UserMacros" />
76+
<ItemDefinitionGroup>
77+
<ClCompile>
78+
<PrecompiledHeader>Use</PrecompiledHeader>
79+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
80+
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
81+
<PreprocessorDefinitions>_CONSOLE;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
82+
<WarningLevel>Level4</WarningLevel>
83+
<AdditionalOptions>%(AdditionalOptions) /permissive- /bigobj</AdditionalOptions>
84+
</ClCompile>
85+
</ItemDefinitionGroup>
86+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
87+
<ClCompile>
88+
<Optimization>Disabled</Optimization>
89+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
90+
</ClCompile>
91+
<Link>
92+
<SubSystem>Console</SubSystem>
93+
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
94+
</Link>
95+
</ItemDefinitionGroup>
96+
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
97+
<ClCompile>
98+
<PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
99+
</ClCompile>
100+
</ItemDefinitionGroup>
101+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
102+
<ClCompile>
103+
<Optimization>MaxSpeed</Optimization>
104+
<FunctionLevelLinking>true</FunctionLevelLinking>
105+
<IntrinsicFunctions>true</IntrinsicFunctions>
106+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107+
</ClCompile>
108+
<Link>
109+
<SubSystem>Console</SubSystem>
110+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
111+
<OptimizeReferences>true</OptimizeReferences>
112+
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
113+
</Link>
114+
</ItemDefinitionGroup>
115+
<ItemGroup>
116+
<ClInclude Include="pch.h" />
117+
</ItemGroup>
118+
<ItemGroup>
119+
<ClCompile Include="main.cpp" />
120+
<ClCompile Include="pch.cpp">
121+
<PrecompiledHeader>Create</PrecompiledHeader>
122+
</ClCompile>
123+
</ItemGroup>
124+
<ItemGroup>
125+
<None Include="packages.config" />
126+
<None Include="PropertySheet.props" />
127+
</ItemGroup>
128+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
129+
<ImportGroup Label="ExtensionTargets">
130+
<Import Project="..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.targets')" />
131+
<Import Project="..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.targets" Condition="Exists('..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.targets')" />
132+
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.targets')" />
133+
</ImportGroup>
134+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
135+
<PropertyGroup>
136+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
137+
</PropertyGroup>
138+
<Error Condition="!Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.props'))" />
139+
<Error Condition="!Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22000.194\build\Microsoft.Windows.SDK.BuildTools.targets'))" />
140+
<Error Condition="!Exists('..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.props'))" />
141+
<Error Condition="!Exists('..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.WindowsAppSDK.1.1.0-preview3\build\native\Microsoft.WindowsAppSDK.targets'))" />
142+
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.props'))" />
143+
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.targets'))" />
144+
</Target>
145+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClInclude Include="pch.h">
19+
<Filter>Header Files</Filter>
20+
</ClInclude>
21+
</ItemGroup>
22+
<ItemGroup>
23+
<ClCompile Include="pch.cpp">
24+
<Filter>Source Files</Filter>
25+
</ClCompile>
26+
<ClCompile Include="main.cpp">
27+
<Filter>Source Files</Filter>
28+
</ClCompile>
29+
</ItemGroup>
30+
<ItemGroup>
31+
<None Include="PropertySheet.props" />
32+
<None Include="packages.config" />
33+
</ItemGroup>
34+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ImportGroup Label="PropertySheets" />
4+
<PropertyGroup Label="UserMacros" />
5+
<!--
6+
To customize common C++/WinRT project properties:
7+
* right-click the project node
8+
* expand the Common Properties item
9+
* select the C++/WinRT property page
10+
11+
For more advanced scenarios, and complete documentation, please see:
12+
https://github.com/Microsoft/cppwinrt/tree/master/nuget
13+
-->
14+
<PropertyGroup />
15+
<ItemDefinitionGroup />
16+
</Project>

0 commit comments

Comments
 (0)