Show WindowsStore build on app

This commit is contained in:
Jaex 2017-04-21 18:23:52 +03:00
parent 99cc700c7d
commit 19e876b0aa
3 changed files with 17 additions and 4 deletions

View file

@ -45,6 +45,16 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WindowsStoreDebug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\WindowsStoreDebug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.2\lib\net40\Newtonsoft.Json.dll</HintPath> <HintPath>..\packages\Newtonsoft.Json.10.0.2\lib\net40\Newtonsoft.Json.dll</HintPath>

View file

@ -34,6 +34,7 @@ public enum ShareXBuild
Debug, Debug,
Release, Release,
Steam, Steam,
WindowsStore,
Unknown Unknown
} }

View file

@ -42,12 +42,14 @@ public static ShareXBuild Build
{ {
get get
{ {
#if STEAM #if DEBUG
return ShareXBuild.Steam; return ShareXBuild.Debug;
#elif RELEASE #elif RELEASE
return ShareXBuild.Release; return ShareXBuild.Release;
#elif DEBUG #elif STEAM
return ShareXBuild.Debug; return ShareXBuild.Steam;
#elif WindowsStore
return ShareXBuild.WindowsStore;
#else #else
return ShareXBuild.Unknown; return ShareXBuild.Unknown;
#endif #endif