@@ -35,24 +35,24 @@ We need to check for redirection as early as possible, before creating any windo
35
35
1 . Define the ** DISABLE_XAML_GENERATED_MAIN** symbol for each configuration and platform. Add the following XML to the project file:
36
36
37
37
``` 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 >
55
- </propertygroup >
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 >
55
+ </PropertyGroup >
56
56
```
57
57
58
58
Adding the ** DISABLE_XAML_GENERATED_MAIN** symbol will disable the auto-generated Program code for your project.
0 commit comments