Skip to content

Commit c2ba122

Browse files
committed
Merged main into live
2 parents ac4e572 + 8febf5f commit c2ba122

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

hub/apps/windows-app-sdk/applifecycle/applifecycle-single-instance.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,11 @@ When you've done that, come back here to learn how to turn your "Hello World" pr
3232
We need to check for redirection as early as possible, before creating any windows. To do this, we must define the symbol “DISABLE_XAML_GENERATED_MAIN” in the project file. Follow these steps to disable the auto-generated Program code:
3333

3434
1. Right-click on the project name in Solution Explorer and select **Edit Project File**.
35-
1. Define the **DISABLE_XAML_GENERATED_MAIN** symbol for each configuration and platform. Add the following XML to the project file:
35+
1. Define the **DISABLE_XAML_GENERATED_MAIN** symbol. Add the following XML to the project file:
3636

3737
```xml
38-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
39-
<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>
40-
</PropertyGroup>
41-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
42-
<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>
43-
</PropertyGroup>
44-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
45-
<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>
46-
</PropertyGroup>
47-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
48-
<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>
49-
</PropertyGroup>
50-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm64'">
51-
<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>
52-
</PropertyGroup>
53-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm64'">
54-
<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>
38+
<PropertyGroup>
39+
<DefineConstants>$(DefineConstants);DISABLE_XAML_GENERATED_MAIN</DefineConstants>
5540
</PropertyGroup>
5641
```
5742

0 commit comments

Comments
 (0)