redmine-net-api.Tests.csproj 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project Sdk="Microsoft.NET.Sdk">
  3. <PropertyGroup Label="Build">
  4. <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
  5. <TargetFramework>net48</TargetFramework>
  6. <TargetFrameworks>net451;net452;net46;net461;net462;net47;net471;net472;net48;</TargetFrameworks>
  7. <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
  8. <RootNamespace>Padi.RedmineApi.Tests</RootNamespace>
  9. <UserSecretsId>f8b9e946-b547-42f1-861c-f719dca00a84</UserSecretsId>
  10. <Configurations>Release;Debug;DebugJson</Configurations>
  11. <PackageId Condition="'$(Sign)' == '' OR '$(Sign)' == 'false'">redmine-api-test</PackageId>
  12. <PackageId Condition="'$(Sign)' == 'true'">redmine-api-test-signed</PackageId>
  13. </PropertyGroup>
  14. <PropertyGroup Label="Signing" Condition=" '$(Sign)' == 'true' ">
  15. <SignAssembly>true</SignAssembly>
  16. <AssemblyOriginatorKeyFile>..\..\redmine-net-api.snk</AssemblyOriginatorKeyFile>
  17. </PropertyGroup>
  18. <PropertyGroup Condition=" '$(TargetFramework)' == 'net20'">
  19. <DefineConstants>NET20;NETFULL</DefineConstants>
  20. </PropertyGroup>
  21. <PropertyGroup Condition=" '$(TargetFramework)' == 'net40'">
  22. <DefineConstants>NET40;NETFULL</DefineConstants>
  23. </PropertyGroup>
  24. <PropertyGroup Condition=" '$(TargetFramework)' == 'net45'">
  25. <DefineConstants>DEBUG;NET45;NETFULL;</DefineConstants>
  26. </PropertyGroup>
  27. <PropertyGroup Condition=" '$(TargetFramework)' == 'net451'">
  28. <DefineConstants>DEBUG;NET451;NETFULL;DEBUG_JSON</DefineConstants>
  29. </PropertyGroup>
  30. <PropertyGroup Condition=" '$(TargetFramework)' == 'net452'">
  31. <DefineConstants>NET452;NETFULL</DefineConstants>
  32. </PropertyGroup>
  33. <PropertyGroup Condition=" '$(TargetFramework)' == 'net46'">
  34. <DefineConstants>NET46;NETFULL</DefineConstants>
  35. </PropertyGroup>
  36. <PropertyGroup Condition=" '$(TargetFramework)' == 'net461'">
  37. <DefineConstants>NET461;NETFULL</DefineConstants>
  38. </PropertyGroup>
  39. <PropertyGroup Condition=" '$(TargetFramework)' == 'net462'">
  40. <DefineConstants>NET462;NETFULL</DefineConstants>
  41. </PropertyGroup>
  42. <PropertyGroup Condition=" '$(TargetFramework)' == 'net47'">
  43. <DefineConstants>NET47;NETFULL</DefineConstants>
  44. </PropertyGroup>
  45. <PropertyGroup Condition=" '$(TargetFramework)' == 'net471'">
  46. <DefineConstants>NET471;NETFULL</DefineConstants>
  47. </PropertyGroup>
  48. <PropertyGroup Condition=" '$(TargetFramework)' == 'net472'">
  49. <DefineConstants>NET472;NETFULL</DefineConstants>
  50. </PropertyGroup>
  51. <PropertyGroup Condition=" '$(TargetFramework)' == 'net48'">
  52. <DefineConstants>NET48;NETFULL</DefineConstants>
  53. </PropertyGroup>
  54. <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='DebugJson|net451|AnyCPU'">
  55. <Optimize>false</Optimize>
  56. </PropertyGroup>
  57. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  58. <PlatformTarget>AnyCPU</PlatformTarget>
  59. <DebugSymbols>true</DebugSymbols>
  60. <DebugType>full</DebugType>
  61. <Optimize>false</Optimize>
  62. <OutputPath>bin\Debug\</OutputPath>
  63. <DefineConstants>DEBUG;TRACE;DEBUG_XML</DefineConstants>
  64. <ErrorReport>prompt</ErrorReport>
  65. <WarningLevel>4</WarningLevel>
  66. </PropertyGroup>
  67. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugJson|AnyCPU' ">
  68. <PlatformTarget>AnyCPU</PlatformTarget>
  69. <DebugSymbols>true</DebugSymbols>
  70. <DebugType>full</DebugType>
  71. <Optimize>false</Optimize>
  72. <OutputPath>bin\Debug\</OutputPath>
  73. <DefineConstants>DEBUG;TRACE;DEBUG_JSON</DefineConstants>
  74. <ErrorReport>prompt</ErrorReport>
  75. <WarningLevel>4</WarningLevel>
  76. </PropertyGroup>
  77. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  78. <PlatformTarget>AnyCPU</PlatformTarget>
  79. <DebugType>pdbonly</DebugType>
  80. <Optimize>true</Optimize>
  81. <OutputPath>bin\Release\</OutputPath>
  82. <DefineConstants>TRACE</DefineConstants>
  83. <ErrorReport>prompt</ErrorReport>
  84. <WarningLevel>4</WarningLevel>
  85. </PropertyGroup>
  86. <ItemGroup Label="Package References">
  87. <!-- <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">-->
  88. <!-- <PrivateAssets>all</PrivateAssets>-->
  89. <!-- <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>-->
  90. <!-- </PackageReference>-->
  91. <PackageReference Include="Microsoft.Extensions.Configuration" Version="1.1.0" />
  92. <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="1.1.0" />
  93. <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="1.1.0" />
  94. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.1.0" />
  95. <PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.1.0" />
  96. <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
  97. <PrivateAssets>all</PrivateAssets>
  98. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  99. </PackageReference>
  100. <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
  101. <PrivateAssets>all</PrivateAssets>
  102. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  103. </PackageReference>
  104. </ItemGroup>
  105. <ItemGroup Condition=" '$(TargetFramework)' == 'net40' " Label=".NET 4.0 Package References">
  106. <Reference Include="System.Net" />
  107. <PackageReference Include="xunit" Version="1.9.2" />
  108. <PackageReference Include="xunit.abstractions" Version="2.0.3" />
  109. </ItemGroup>
  110. <ItemGroup Condition=" '$(TargetFramework)' != 'net40' " Label=".NET 4.5 Onwards Package References">
  111. <PackageReference Include="System.Threading.Tasks" Version="4.3.0" />
  112. <PackageReference Include="xunit" Version="2.4.1" />
  113. </ItemGroup>
  114. <ItemGroup>
  115. <ProjectReference Include="..\..\src\redmine-net-api\redmine-net-api.csproj" />
  116. </ItemGroup>
  117. <ItemGroup>
  118. <None Include="..\..\redmine-net-api.snk">
  119. <Link>redmine-net-api.snk</Link>
  120. </None>
  121. </ItemGroup>
  122. <ItemGroup>
  123. <None Update="appsettings.json">
  124. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  125. </None>
  126. </ItemGroup>
  127. <ItemGroup Condition="'$(TargetFramework)' == 'net48'">
  128. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  129. <Version>1.1.0</Version>
  130. </PackageReference>
  131. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  132. <Version>1.1.0</Version>
  133. </PackageReference>
  134. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  135. <Version>1.1.0</Version>
  136. </PackageReference>
  137. </ItemGroup>
  138. <ItemGroup Condition="'$(TargetFramework)' == 'net47'">
  139. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  140. <Version>1.1.0</Version>
  141. </PackageReference>
  142. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  143. <Version>1.1.0</Version>
  144. </PackageReference>
  145. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  146. <Version>1.1.0</Version>
  147. </PackageReference>
  148. </ItemGroup>
  149. <ItemGroup Condition="'$(TargetFramework)' == 'net46'">
  150. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  151. <Version>1.1.0</Version>
  152. </PackageReference>
  153. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  154. <Version>1.1.0</Version>
  155. </PackageReference>
  156. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  157. <Version>1.1.0</Version>
  158. </PackageReference>
  159. </ItemGroup>
  160. <ItemGroup Condition="'$(TargetFramework)' == 'net452'">
  161. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  162. <Version>1.1.0</Version>
  163. </PackageReference>
  164. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  165. <Version>1.1.0</Version>
  166. </PackageReference>
  167. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  168. <Version>1.1.0</Version>
  169. </PackageReference>
  170. </ItemGroup>
  171. <ItemGroup Condition="'$(TargetFramework)' == 'net451'">
  172. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  173. <Version>1.1.0</Version>
  174. </PackageReference>
  175. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  176. <Version>1.1.0</Version>
  177. </PackageReference>
  178. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  179. <Version>1.1.0</Version>
  180. </PackageReference>
  181. </ItemGroup>
  182. <ItemGroup Condition="'$(TargetFramework)' == 'net461'">
  183. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  184. <Version>1.1.0</Version>
  185. </PackageReference>
  186. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  187. <Version>1.1.0</Version>
  188. </PackageReference>
  189. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  190. <Version>1.1.0</Version>
  191. </PackageReference>
  192. </ItemGroup>
  193. <ItemGroup Condition="'$(TargetFramework)' == 'net462'">
  194. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  195. <Version>1.1.0</Version>
  196. </PackageReference>
  197. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  198. <Version>1.1.0</Version>
  199. </PackageReference>
  200. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  201. <Version>1.1.0</Version>
  202. </PackageReference>
  203. </ItemGroup>
  204. <ItemGroup Condition="'$(TargetFramework)' == 'net471'">
  205. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  206. <Version>1.1.0</Version>
  207. </PackageReference>
  208. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  209. <Version>1.1.0</Version>
  210. </PackageReference>
  211. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  212. <Version>1.1.0</Version>
  213. </PackageReference>
  214. </ItemGroup>
  215. <ItemGroup Condition="'$(TargetFramework)' == 'net472'">
  216. <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
  217. <Version>1.1.0</Version>
  218. </PackageReference>
  219. <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions">
  220. <Version>1.1.0</Version>
  221. </PackageReference>
  222. <PackageReference Include="Microsoft.Extensions.Configuration.Json">
  223. <Version>1.1.0</Version>
  224. </PackageReference>
  225. </ItemGroup>
  226. </Project>