|
|
@@ -1,15 +1,5 @@
|
|
|
<Project>
|
|
|
|
|
|
- <!-- Workaround. Remove once we're on 3.1.300+
|
|
|
- https://github.com/dotnet/sourcelink/issues/572 -->
|
|
|
- <PropertyGroup>
|
|
|
- <TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
|
|
|
- </PropertyGroup>
|
|
|
- <ItemGroup>
|
|
|
- <EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
|
|
|
- </ItemGroup>
|
|
|
-
|
|
|
-
|
|
|
<!-- This props all need to be set in targets as they depend on the values set earlier -->
|
|
|
|
|
|
<PropertyGroup>
|
|
|
@@ -35,14 +25,10 @@
|
|
|
<DefineConstants>$(DefineConstants);HAS_WINRT;HAS_WINFORMS;HAS_WPF;HAS_DISPATCHER;DESKTOPCLR</DefineConstants>
|
|
|
</PropertyGroup>
|
|
|
<PropertyGroup Condition="$(TargetFramework.StartsWith('net5.0-windows'))">
|
|
|
- <DefineConstants>$(DefineConstants);HAS_TRACE;HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING;HAS_WINFORMS;HAS_WPF;HAS_DISPATCHER;DESKTOPCLR;WINDOWS;CSWINRT</DefineConstants>
|
|
|
- </PropertyGroup>
|
|
|
- <PropertyGroup Condition="'$(TargetFramework)' == 'net5.0'">
|
|
|
- <DefineConstants>$(DefineConstants);HAS_TRACE;PREFER_ASYNC;HAS_TPL46;NO_REMOTING</DefineConstants>
|
|
|
+ <DefineConstants>$(DefineConstants);HAS_WINRT;HAS_WINFORMS;HAS_WPF;HAS_DISPATCHER;DESKTOPCLR;WINDOWS;CSWINRT</DefineConstants>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
-
|
|
|
- <ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp3.1'">
|
|
|
+ <ItemGroup Condition="'$(TargetFramework)' == 'net46' or '$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'uap10.0.16299' or '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.1'">
|
|
|
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
|
|
|
</ItemGroup>
|
|
|
|