Skip to content

Commit df6d56a

Browse files
hamza-usmaniHamza Usmani
andauthored
Restart API samples, cpp and cs (#204)
Co-authored-by: Hamza Usmani <[email protected]>
1 parent 648f373 commit df6d56a

24 files changed

+770
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
#include <iostream>
5+
#include <string>
6+
7+
#include <wil/result.h>
8+
#include <wil/cppwinrt.h>
9+
10+
#include <winrt/Windows.ApplicationModel.Background.h>
11+
#include <winrt/Windows.ApplicationModel.Activation.h>
12+
#include <winrt/Windows.Foundation.h>
13+
#include <winrt/Microsoft.Windows.AppLifecycle.h>
14+
#include <winrt/Windows.Foundation.Collections.h>
15+
#include <winrt/Windows.Storage.h>
16+
17+
18+
using namespace winrt::Microsoft::Windows::AppLifecycle;
19+
using namespace winrt::Windows::ApplicationModel::Activation;
20+
using namespace winrt::Windows::ApplicationModel::Core;
21+
using namespace winrt::Windows::Foundation;
22+
23+
void printArguments()
24+
{
25+
AppActivationArguments args = AppInstance::GetCurrent().GetActivatedEventArgs();
26+
switch (args.Kind())
27+
{
28+
case ExtendedActivationKind::Launch:
29+
{
30+
ILaunchActivatedEventArgs launchArgs = args.Data().as<ILaunchActivatedEventArgs>();
31+
if (launchArgs)
32+
{
33+
winrt::hstring argString = launchArgs.Arguments();
34+
std::cout << "Command line launch arguments:\n" << winrt::to_string(argString) << std::endl;
35+
}
36+
}
37+
}
38+
}
39+
40+
void restartApp()
41+
{
42+
std::string restartArgs;
43+
44+
std::cout << "Enter restart arguments: ";
45+
std::cin.ignore();
46+
getline(std::cin, restartArgs);
47+
48+
AppRestartFailureReason restartError{ AppInstance::Restart(winrt::to_hstring(restartArgs)) };
49+
50+
switch (restartError)
51+
{
52+
case AppRestartFailureReason::RestartPending:
53+
std::cout << "Another restart is currently pending.";
54+
break;
55+
case AppRestartFailureReason::InvalidUser:
56+
std::cout << "Current user is not signed in or not a valid user.";
57+
break;
58+
case AppRestartFailureReason::Other:
59+
std::cout << "Failure restarting.";
60+
break;
61+
}
62+
}
63+
64+
int main()
65+
{
66+
while (1)
67+
{
68+
int opt;
69+
std::cout << "Press 1: See command line launch arguments" << std::endl;
70+
std::cout << "Press 2: Restart this app with arguments" << std::endl;
71+
std::cout << "Press 0 at any time to exit App." << std::endl;
72+
73+
std::cin >> opt;
74+
std::cout << "\n" << std::endl;
75+
76+
switch (opt)
77+
{
78+
case 1:
79+
printArguments();
80+
break;
81+
case 2:
82+
restartApp();
83+
break;
84+
case 0:
85+
exit(1);
86+
default:
87+
break;
88+
}
89+
}
90+
}
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.1.32228.430
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpp-console-unpackaged", "cpp-console-unpackaged.vcxproj", "{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|ARM64 = Debug|ARM64
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|ARM64 = Release|ARM64
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Debug|ARM64.ActiveCfg = Debug|ARM64
19+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Debug|ARM64.Build.0 = Debug|ARM64
20+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Debug|x64.ActiveCfg = Debug|x64
21+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Debug|x64.Build.0 = Debug|x64
22+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Debug|x86.ActiveCfg = Debug|Win32
23+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Debug|x86.Build.0 = Debug|Win32
24+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Release|ARM64.ActiveCfg = Release|ARM64
25+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Release|ARM64.Build.0 = Release|ARM64
26+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Release|x64.ActiveCfg = Release|x64
27+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Release|x64.Build.0 = Release|x64
28+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Release|x86.ActiveCfg = Release|Win32
29+
{D73192E0-E62F-4F11-AFB2-0C96BFFA5766}.Release|x86.Build.0 = Release|Win32
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {02F85998-ACC1-4DC9-BBB3-A974E9D9C506}
36+
EndGlobalSection
37+
EndGlobal
Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.props" Condition="Exists('packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.props')" />
4+
<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')" />
5+
<Import Project="packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.props')" />
6+
<Import Project="..\..\..\Build.Common.Cpp.props" Condition="Exists('..\..\..\Build.Common.Cpp.props')" />
7+
<ItemGroup Label="ProjectConfigurations">
8+
<ProjectConfiguration Include="Debug|ARM64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>ARM64</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|Win32">
13+
<Configuration>Debug</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|ARM64">
17+
<Configuration>Release</Configuration>
18+
<Platform>ARM64</Platform>
19+
</ProjectConfiguration>
20+
<ProjectConfiguration Include="Release|Win32">
21+
<Configuration>Release</Configuration>
22+
<Platform>Win32</Platform>
23+
</ProjectConfiguration>
24+
<ProjectConfiguration Include="Debug|x64">
25+
<Configuration>Debug</Configuration>
26+
<Platform>x64</Platform>
27+
</ProjectConfiguration>
28+
<ProjectConfiguration Include="Release|x64">
29+
<Configuration>Release</Configuration>
30+
<Platform>x64</Platform>
31+
</ProjectConfiguration>
32+
</ItemGroup>
33+
<PropertyGroup Label="Globals">
34+
<VCProjectVersion>16.0</VCProjectVersion>
35+
<Keyword>Win32Proj</Keyword>
36+
<ProjectGuid>{d73192e0-e62f-4f11-afb2-0c96bffa5766}</ProjectGuid>
37+
<WindowsPackageType>None</WindowsPackageType>
38+
<RootNamespace>cppconsoleunpackaged</RootNamespace>
39+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
40+
<LogSDKReferenceResolutionErrorsAsWarnings>true</LogSDKReferenceResolutionErrorsAsWarnings>
41+
</PropertyGroup>
42+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
43+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
44+
<ConfigurationType>Application</ConfigurationType>
45+
<UseDebugLibraries>true</UseDebugLibraries>
46+
<CharacterSet>Unicode</CharacterSet>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
49+
<ConfigurationType>Application</ConfigurationType>
50+
<UseDebugLibraries>false</UseDebugLibraries>
51+
<WholeProgramOptimization>true</WholeProgramOptimization>
52+
<CharacterSet>Unicode</CharacterSet>
53+
</PropertyGroup>
54+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
55+
<ConfigurationType>Application</ConfigurationType>
56+
<UseDebugLibraries>true</UseDebugLibraries>
57+
<CharacterSet>Unicode</CharacterSet>
58+
</PropertyGroup>
59+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
60+
<ConfigurationType>Application</ConfigurationType>
61+
<UseDebugLibraries>true</UseDebugLibraries>
62+
<CharacterSet>Unicode</CharacterSet>
63+
</PropertyGroup>
64+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
65+
<ConfigurationType>Application</ConfigurationType>
66+
<UseDebugLibraries>false</UseDebugLibraries>
67+
<WholeProgramOptimization>true</WholeProgramOptimization>
68+
<CharacterSet>Unicode</CharacterSet>
69+
</PropertyGroup>
70+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
71+
<ConfigurationType>Application</ConfigurationType>
72+
<UseDebugLibraries>false</UseDebugLibraries>
73+
<WholeProgramOptimization>true</WholeProgramOptimization>
74+
<CharacterSet>Unicode</CharacterSet>
75+
</PropertyGroup>
76+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
77+
<ImportGroup Label="ExtensionSettings">
78+
</ImportGroup>
79+
<ImportGroup Label="Shared">
80+
</ImportGroup>
81+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
82+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
83+
</ImportGroup>
84+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
85+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
86+
</ImportGroup>
87+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
88+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
89+
</ImportGroup>
90+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets">
91+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
92+
</ImportGroup>
93+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
94+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
95+
</ImportGroup>
96+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets">
97+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
98+
</ImportGroup>
99+
<PropertyGroup Label="UserMacros" />
100+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
101+
<LinkIncremental>true</LinkIncremental>
102+
</PropertyGroup>
103+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
104+
<LinkIncremental>false</LinkIncremental>
105+
</PropertyGroup>
106+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
107+
<LinkIncremental>true</LinkIncremental>
108+
</PropertyGroup>
109+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
110+
<LinkIncremental>true</LinkIncremental>
111+
</PropertyGroup>
112+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
113+
<LinkIncremental>false</LinkIncremental>
114+
</PropertyGroup>
115+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
116+
<LinkIncremental>false</LinkIncremental>
117+
</PropertyGroup>
118+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
119+
<ClCompile>
120+
<WarningLevel>Level3</WarningLevel>
121+
<SDLCheck>true</SDLCheck>
122+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
123+
<ConformanceMode>true</ConformanceMode>
124+
</ClCompile>
125+
<Link>
126+
<SubSystem>Console</SubSystem>
127+
<GenerateDebugInformation>true</GenerateDebugInformation>
128+
</Link>
129+
</ItemDefinitionGroup>
130+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
131+
<ClCompile>
132+
<WarningLevel>Level3</WarningLevel>
133+
<FunctionLevelLinking>true</FunctionLevelLinking>
134+
<IntrinsicFunctions>true</IntrinsicFunctions>
135+
<SDLCheck>true</SDLCheck>
136+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
137+
<ConformanceMode>true</ConformanceMode>
138+
</ClCompile>
139+
<Link>
140+
<SubSystem>Console</SubSystem>
141+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
142+
<OptimizeReferences>true</OptimizeReferences>
143+
<GenerateDebugInformation>true</GenerateDebugInformation>
144+
</Link>
145+
</ItemDefinitionGroup>
146+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
147+
<ClCompile>
148+
<WarningLevel>Level3</WarningLevel>
149+
<SDLCheck>true</SDLCheck>
150+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
151+
<ConformanceMode>true</ConformanceMode>
152+
</ClCompile>
153+
<Link>
154+
<SubSystem>Console</SubSystem>
155+
<GenerateDebugInformation>true</GenerateDebugInformation>
156+
</Link>
157+
</ItemDefinitionGroup>
158+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
159+
<ClCompile>
160+
<WarningLevel>Level3</WarningLevel>
161+
<SDLCheck>true</SDLCheck>
162+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
163+
<ConformanceMode>true</ConformanceMode>
164+
</ClCompile>
165+
<Link>
166+
<SubSystem>Console</SubSystem>
167+
<GenerateDebugInformation>true</GenerateDebugInformation>
168+
</Link>
169+
</ItemDefinitionGroup>
170+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
171+
<ClCompile>
172+
<WarningLevel>Level3</WarningLevel>
173+
<FunctionLevelLinking>true</FunctionLevelLinking>
174+
<IntrinsicFunctions>true</IntrinsicFunctions>
175+
<SDLCheck>true</SDLCheck>
176+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
177+
<ConformanceMode>true</ConformanceMode>
178+
</ClCompile>
179+
<Link>
180+
<SubSystem>Console</SubSystem>
181+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
182+
<OptimizeReferences>true</OptimizeReferences>
183+
<GenerateDebugInformation>true</GenerateDebugInformation>
184+
</Link>
185+
</ItemDefinitionGroup>
186+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
187+
<ClCompile>
188+
<WarningLevel>Level3</WarningLevel>
189+
<FunctionLevelLinking>true</FunctionLevelLinking>
190+
<IntrinsicFunctions>true</IntrinsicFunctions>
191+
<SDLCheck>true</SDLCheck>
192+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
193+
<ConformanceMode>true</ConformanceMode>
194+
</ClCompile>
195+
<Link>
196+
<SubSystem>Console</SubSystem>
197+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
198+
<OptimizeReferences>true</OptimizeReferences>
199+
<GenerateDebugInformation>true</GenerateDebugInformation>
200+
</Link>
201+
</ItemDefinitionGroup>
202+
<ItemGroup>
203+
<ClCompile Include="cpp-console-unpackaged.cpp" />
204+
</ItemGroup>
205+
<ItemGroup>
206+
<None Include="packages.config" />
207+
</ItemGroup>
208+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
209+
<ImportGroup Label="ExtensionTargets">
210+
<Import Project="packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" />
211+
<Import Project="packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.targets')" />
212+
<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')" />
213+
<Import Project="packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.targets" Condition="Exists('packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.targets')" />
214+
</ImportGroup>
215+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
216+
<PropertyGroup>
217+
<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>
218+
</PropertyGroup>
219+
<Error Condition="!Exists('packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" />
220+
<Error Condition="!Exists('packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.props'))" />
221+
<Error Condition="!Exists('packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Windows.CppWinRT.2.0.210714.1\build\native\Microsoft.Windows.CppWinRT.targets'))" />
222+
<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'))" />
223+
<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'))" />
224+
<Error Condition="!Exists('packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.props'))" />
225+
<Error Condition="!Exists('packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.WindowsAppSDK.1.1.0-preview1\build\native\Microsoft.WindowsAppSDK.targets'))" />
226+
</Target>
227+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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;c++;cppm;ixx;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;h++;hm;inl;inc;ipp;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+
<None Include="packages.config" />
19+
</ItemGroup>
20+
<ItemGroup>
21+
<ClCompile Include="cpp-console-unpackaged.cpp">
22+
<Filter>Source Files</Filter>
23+
</ClCompile>
24+
</ItemGroup>
25+
</Project>

0 commit comments

Comments
 (0)