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>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</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>
<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>

View file

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

View file

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