|
@@ -1,7 +1,7 @@
|
|
|
<Project>
|
|
|
<!-- This props all need to be set in targets as they depend on the values set earlier -->
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net46'">
|
|
|
- <DefineConstants>$(DefineConstants);HAS_TRACE;HAS_WINRT;PREFER_ASYNC;HAS_TPL46;DESKTOPCLR</DefineConstants>
|
|
|
+ <DefineConstants>$(DefineConstants);HAS_TRACE;HAS_WINRT;HAS_WINFORMS;HAS_DISPATCHER;PREFER_ASYNC;HAS_TPL46;DESKTOPCLR</DefineConstants>
|
|
|
</PropertyGroup>
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'">
|
|
|
<TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
|
|
@@ -11,7 +11,30 @@
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0.16299'">
|
|
|
<DefineConstants>$(DefineConstants);HAS_TRACE;HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING;WINDOWS</DefineConstants>
|
|
|
</PropertyGroup>
|
|
|
- <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.0'">
|
|
|
+ <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.1'">
|
|
|
<DefineConstants>$(DefineConstants);HAS_TRACE;HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING</DefineConstants>
|
|
|
</PropertyGroup>
|
|
|
+ <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
|
|
|
+ <DefineConstants>$(DefineConstants);HAS_TRACE;HAS_WINRT;HAS_WINFORMS;HAS_DISPATCHER;PREFER_ASYNC;HAS_TPL46;NO_REMOTING;DESKTOPCLR</DefineConstants>
|
|
|
+ </PropertyGroup>
|
|
|
+
|
|
|
+
|
|
|
+ <ItemGroup Condition="'$(IsTestProject)' != 'true' and '$(SourceLinkEnabled)' != 'false' and '$(TargetFramework)' != 'netcoreapp3.0'">
|
|
|
+ <PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.1" />
|
|
|
+ <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62925-02" PrivateAssets="All"/>
|
|
|
+ </ItemGroup>
|
|
|
+
|
|
|
+ <ItemGroup>
|
|
|
+ <PackageReference Include="Nerdbank.GitVersioning" Version="2.2.33" PrivateAssets="all" />
|
|
|
+ </ItemGroup>
|
|
|
+
|
|
|
+ <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
|
|
|
+ <ItemGroup>
|
|
|
+ <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
|
|
|
+ <_Parameter1>CommitHash</_Parameter1>
|
|
|
+ <_Parameter2>$(SourceRevisionId)</_Parameter2>
|
|
|
+ </AssemblyAttribute>
|
|
|
+ </ItemGroup>
|
|
|
+ </Target>
|
|
|
+
|
|
|
</Project>
|