|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory),Runtime.sln))\tools\WebStack.settings.targets" /> |
3 | 3 | <PropertyGroup> |
4 | | - <TargetFramework>netstandard1.1</TargetFramework> |
| 4 | + <TargetFramework>netstandard2.0</TargetFramework> |
5 | 5 | <RootNamespace>System.Net.Http</RootNamespace> |
6 | 6 | <AssemblyName>System.Net.Http.Formatting</AssemblyName> |
7 | 7 | <OutputPath>$(OutputPath)NetStandard\</OutputPath> |
8 | 8 | <DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> |
9 | | - <NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion> |
10 | | - <RunCodeAnalysis>$(CodeAnalysis)</RunCodeAnalysis> |
11 | | - <CodeAnalysisRuleSet>..\Strict.ruleset</CodeAnalysisRuleSet> |
12 | | - <CodeAnalysisAdditionalOptions> /assemblycomparemode:StrongNameIgnoringVersion</CodeAnalysisAdditionalOptions> |
13 | | - <CodeAnalysisSearchGlobalAssemblyCache>false</CodeAnalysisSearchGlobalAssemblyCache> |
14 | | - <DefineConstants>$(DefineConstants);NETFX_CORE;ASPNETMVC;NOT_CLS_COMPLIANT;NETSTANDARD1_1</DefineConstants> |
| 9 | + <RunCodeAnalysis>false</RunCodeAnalysis> |
| 10 | + <DefineConstants>$(DefineConstants);ASPNETMVC;NEWTONSOFTJSON10</DefineConstants> |
15 | 11 | <NoWarn>1591</NoWarn> |
16 | | - <TargetFrameworkVersion></TargetFrameworkVersion> |
17 | 12 | <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
18 | 13 | <Configurations>$(Configurations);CodeAnalysis</Configurations> |
19 | 14 | <GenerateAssemblyInfo>false</GenerateAssemblyInfo> |
20 | 15 | </PropertyGroup> |
21 | | - |
22 | 16 | <ItemGroup> |
23 | | - <PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> |
24 | | - <PackageReference Include="System.ComponentModel.EventBasedAsync" Version="4.0.11" /> |
25 | | - <PackageReference Include="System.Diagnostics.Contracts" Version="4.0.1" /> |
26 | | - <PackageReference Include="System.Runtime.Serialization.Xml" Version="4.1.1" /> |
27 | | - <PackageReference Include="System.Xml.XmlSerializer" Version="4.0.11" /> |
| 17 | + <PackageReference Include="Newtonsoft.Json" Version="10.0.1" /> |
| 18 | + <PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.1" /> |
28 | 19 | </ItemGroup> |
29 | | - |
30 | 20 | <ItemGroup> |
31 | 21 | <Compile Include="..\CommonAssemblyInfo.cs"> |
32 | 22 | <Link>Properties\CommonAssemblyInfo.cs</Link> |
33 | 23 | </Compile> |
| 24 | + |
| 25 | + <Compile Include="..\Common\CollectionExtensions.cs"> |
| 26 | + <Link>Common\CollectionExtensions.cs</Link> |
| 27 | + </Compile> |
34 | 28 | <Compile Include="..\Common\Error.cs"> |
35 | 29 | <Link>Common\Error.cs</Link> |
36 | 30 | </Compile> |
| 31 | + <Compile Include="..\Common\ListWrapperCollection.cs"> |
| 32 | + <Link>Common\ListWrapperCollection.cs</Link> |
| 33 | + </Compile> |
37 | 34 | <Compile Include="..\Common\TaskHelpers.cs"> |
38 | 35 | <Link>Common\TaskHelpers.cs</Link> |
39 | 36 | </Compile> |
|
43 | 40 | <Compile Include="..\Common\UriQueryUtility.cs"> |
44 | 41 | <Link>Common\UriQueryUtility.cs</Link> |
45 | 42 | </Compile> |
46 | | - <Compile Include="..\Common\CollectionExtensions.cs"> |
47 | | - <Link>Common\CollectionExtensions.cs</Link> |
48 | | - </Compile> |
49 | | - <Compile Include="..\Common\ListWrapperCollection.cs"> |
50 | | - <Link>Common\ListWrapperCollection.cs</Link> |
51 | | - </Compile> |
52 | | - <Compile Include="..\System.Net.Http.Formatting\FormattingUtilities.cs"> |
53 | | - <Link>FormattingUtilities.cs</Link> |
54 | | - </Compile> |
55 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\BaseJsonMediaTypeFormatter.cs"> |
56 | | - <Link>Formatting\BaseJsonMediaTypeFormatter.cs</Link> |
57 | | - </Compile> |
58 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\BsonMediaTypeFormatter.cs"> |
59 | | - <Link>Formatting\BsonMediaTypeFormatter.cs</Link> |
60 | | - </Compile> |
61 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\DelegatingEnumerable.cs"> |
62 | | - <Link>Formatting\DelegatingEnumerable.cs</Link> |
63 | | - </Compile> |
64 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\FormDataCollection.cs"> |
65 | | - <Link>Formatting\FormDataCollection.cs</Link> |
66 | | - </Compile> |
67 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\FormUrlEncodedJson.cs"> |
68 | | - <Link>Formatting\FormUrlEncodedJson.cs</Link> |
69 | | - </Compile> |
70 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\FormUrlEncodedMediaTypeFormatter.cs"> |
71 | | - <Link>Formatting\FormUrlEncodedMediaTypeFormatter.cs</Link> |
72 | | - </Compile> |
73 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\IFormatterLogger.cs"> |
74 | | - <Link>Formatting\IFormatterLogger.cs</Link> |
75 | | - </Compile> |
76 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\JsonMediaTypeFormatter.cs"> |
77 | | - <Link>Formatting\JsonMediaTypeFormatter.cs</Link> |
78 | | - </Compile> |
79 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\MediaTypeConstants.cs"> |
80 | | - <Link>Formatting\MediaTypeConstants.cs</Link> |
81 | | - </Compile> |
82 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\MediaTypeFormatter.cs"> |
83 | | - <Link>Formatting\MediaTypeFormatter.cs</Link> |
84 | | - </Compile> |
85 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\MediaTypeFormatterCollection.cs"> |
86 | | - <Link>Formatting\MediaTypeFormatterCollection.cs</Link> |
87 | | - </Compile> |
88 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\MediaTypeHeaderValueExtensions.cs"> |
89 | | - <Link>Formatting\MediaTypeHeaderValueExtensions.cs</Link> |
90 | | - </Compile> |
91 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\MediaTypeHeaderValueRange.cs"> |
92 | | - <Link>Formatting\MediaTypeHeaderValueRange.cs</Link> |
93 | | - </Compile> |
94 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\ParsedMediaTypeHeaderValue.cs"> |
95 | | - <Link>Formatting\ParsedMediaTypeHeaderValue.cs</Link> |
96 | | - </Compile> |
97 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\FormUrlEncodedParser.cs"> |
98 | | - <Link>Formatting\Parsers\FormUrlEncodedParser.cs</Link> |
99 | | - </Compile> |
100 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\HttpRequestHeaderParser.cs"> |
101 | | - <Link>Formatting\Parsers\HttpRequestHeaderParser.cs</Link> |
102 | | - </Compile> |
103 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\HttpRequestLineParser.cs"> |
104 | | - <Link>Formatting\Parsers\HttpRequestLineParser.cs</Link> |
105 | | - </Compile> |
106 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\HttpResponseHeaderParser.cs"> |
107 | | - <Link>Formatting\Parsers\HttpResponseHeaderParser.cs</Link> |
108 | | - </Compile> |
109 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\HttpStatusLineParser.cs"> |
110 | | - <Link>Formatting\Parsers\HttpStatusLineParser.cs</Link> |
111 | | - </Compile> |
112 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\InternetMessageFormatHeaderParser.cs"> |
113 | | - <Link>Formatting\Parsers\InternetMessageFormatHeaderParser.cs</Link> |
114 | | - </Compile> |
115 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\MimeMultipartBodyPartParser.cs"> |
116 | | - <Link>Formatting\Parsers\MimeMultipartBodyPartParser.cs</Link> |
117 | | - </Compile> |
118 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\MimeMultipartParser.cs"> |
119 | | - <Link>Formatting\Parsers\MimeMultipartParser.cs</Link> |
120 | | - </Compile> |
121 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\Parsers\ParserState.cs"> |
122 | | - <Link>Formatting\Parsers\ParserState.cs</Link> |
123 | | - </Compile> |
124 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\StringComparisonHelper.cs"> |
125 | | - <Link>Formatting\StringComparisonHelper.cs</Link> |
126 | | - </Compile> |
127 | | - <Compile Include="..\System.Net.Http.Formatting\Formatting\XmlMediaTypeFormatter.cs"> |
128 | | - <Link>Formatting\XmlMediaTypeFormatter.cs</Link> |
129 | | - </Compile> |
130 | | - <Compile Include="..\System.Net.Http.Formatting\HttpContentFormDataExtensions.cs"> |
131 | | - <Link>HttpContentFormDataExtensions.cs</Link> |
132 | | - </Compile> |
133 | | - <Compile Include="..\System.Net.Http.Formatting\Internal\HttpValueCollection.cs"> |
134 | | - <Link>Internal\HttpValueCollection.cs</Link> |
135 | | - </Compile> |
136 | | - <Compile Include="..\System.Net.Http.Formatting\UriExtensions.cs"> |
137 | | - <Link>UriExtensions.cs</Link> |
138 | | - </Compile> |
139 | | - <Compile Include="..\System.Net.Http.Formatting.NetCore\GlobalSuppressions.cs"> |
140 | | - <Link>GlobalSuppressions.cs</Link> |
141 | | - </Compile> |
142 | | - <Compile Include="..\System.Net.Http.Formatting\Handlers\HttpProgressEventArgs.cs"> |
143 | | - <Link>Handlers\HttpProgressEventArgs.cs</Link> |
144 | | - </Compile> |
145 | | - <Compile Include="..\System.Net.Http.Formatting\Handlers\ProgressContent.cs"> |
146 | | - <Link>Handlers\ProgressContent.cs</Link> |
147 | | - </Compile> |
148 | | - <Compile Include="..\System.Net.Http.Formatting\Handlers\ProgressMessageHandler.cs"> |
149 | | - <Link>Handlers\ProgressMessageHandler.cs</Link> |
150 | | - </Compile> |
151 | | - <Compile Include="..\System.Net.Http.Formatting\Handlers\ProgressStream.cs"> |
152 | | - <Link>Handlers\ProgressStream.cs</Link> |
153 | | - </Compile> |
154 | | - <Compile Include="..\System.Net.Http.Formatting\HttpClientExtensions.cs"> |
155 | | - <Link>HttpClientExtensions.cs</Link> |
156 | | - </Compile> |
157 | | - <Compile Include="..\System.Net.Http.Formatting\HttpClientFactory.cs"> |
158 | | - <Link>HttpClientFactory.cs</Link> |
159 | | - </Compile> |
160 | | - <Compile Include="..\System.Net.Http.Formatting\HttpContentExtensions.cs"> |
161 | | - <Link>HttpContentExtensions.cs</Link> |
162 | | - </Compile> |
163 | | - <Compile Include="..\System.Net.Http.Formatting\HttpContentMessageExtensions.cs"> |
164 | | - <Link>HttpContentMessageExtensions.cs</Link> |
165 | | - </Compile> |
166 | | - <Compile Include="..\System.Net.Http.Formatting\HttpContentMultipartExtensions.cs"> |
167 | | - <Link>HttpContentMultipartExtensions.cs</Link> |
168 | | - </Compile> |
169 | | - <Compile Include="..\System.Net.Http.Formatting\HttpHeaderExtensions.cs"> |
170 | | - <Link>HttpHeaderExtensions.cs</Link> |
171 | | - </Compile> |
172 | | - <Compile Include="..\System.Net.Http.Formatting\HttpMessageContent.cs"> |
173 | | - <Link>HttpMessageContent.cs</Link> |
174 | | - </Compile> |
175 | | - <Compile Include="..\System.Net.Http.Formatting\HttpUnsortedHeaders.cs"> |
176 | | - <Link>HttpUnsortedHeaders.cs</Link> |
177 | | - </Compile> |
178 | | - <Compile Include="..\System.Net.Http.Formatting\HttpUnsortedRequest.cs"> |
179 | | - <Link>HttpUnsortedRequest.cs</Link> |
180 | | - </Compile> |
181 | | - <Compile Include="..\System.Net.Http.Formatting\HttpUnsortedResponse.cs"> |
182 | | - <Link>HttpUnsortedResponse.cs</Link> |
183 | | - </Compile> |
184 | | - <Compile Include="..\System.Net.Http.Formatting\Internal\AsyncResult.cs"> |
185 | | - <Link>Internal\AsyncResult.cs</Link> |
186 | | - </Compile> |
187 | | - <Compile Include="..\System.Net.Http.Formatting\Internal\DelegatingStream.cs"> |
188 | | - <Link>Internal\DelegatingStream.cs</Link> |
189 | | - </Compile> |
190 | | - <Compile Include="..\System.Net.Http.Formatting\Internal\ReadOnlyStreamWithEncodingPreamble.cs"> |
191 | | - <Link>Internal\ReadOnlyStreamWithEncodingPreamble.cs</Link> |
192 | | - </Compile> |
193 | | - <Compile Include="..\System.Net.Http.Formatting\Internal\TypeExtensions.cs"> |
194 | | - <Link>Internal\TypeExtensions.cs</Link> |
195 | | - </Compile> |
196 | | - <Compile Include="..\System.Net.Http.Formatting\MimeBodyPart.cs"> |
197 | | - <Link>MimeBodyPart.cs</Link> |
198 | | - </Compile> |
199 | | - <Compile Include="..\System.Net.Http.Formatting\MultipartFileData.cs"> |
200 | | - <Link>MultipartFileData.cs</Link> |
201 | | - </Compile> |
202 | | - <Compile Include="..\System.Net.Http.Formatting\MultipartMemoryStreamProvider.cs"> |
203 | | - <Link>MultipartMemoryStreamProvider.cs</Link> |
204 | | - </Compile> |
205 | | - <Compile Include="..\System.Net.Http.Formatting\MultipartRelatedStreamProvider.cs"> |
206 | | - <Link>MultipartRelatedStreamProvider.cs</Link> |
207 | | - </Compile> |
208 | | - <Compile Include="..\System.Net.Http.Formatting\MultipartStreamProvider.cs"> |
209 | | - <Link>MultipartStreamProvider.cs</Link> |
210 | | - </Compile> |
211 | | - <Compile Include="..\System.Net.Http.Formatting\ObjectContent.cs"> |
212 | | - <Link>ObjectContent.cs</Link> |
213 | | - </Compile> |
214 | | - <Compile Include="..\System.Net.Http.Formatting\ObjectContentOfT.cs"> |
215 | | - <Link>ObjectContentOfT.cs</Link> |
216 | | - </Compile> |
217 | | - <Compile Include="..\System.Net.Http.Formatting\PushStreamContent.cs"> |
218 | | - <Link>PushStreamContent.cs</Link> |
219 | | - </Compile> |
220 | | - <Compile Include="..\System.Net.Http.Formatting\Properties\AssemblyInfo.cs"> |
221 | | - <Link>Properties\AssemblyInfo.cs</Link> |
222 | | - </Compile> |
223 | | - <Compile Include="..\System.Net.Http.Formatting\Properties\Resources.Designer.cs"> |
224 | | - <Link>Properties\Resources.Designer.cs</Link> |
225 | | - <AutoGen>True</AutoGen> |
226 | | - <DesignTime>True</DesignTime> |
227 | | - <DependentUpon>Resources.resx</DependentUpon> |
228 | | - </Compile> |
229 | | - <Compile Include="..\System.Net.Http.Formatting\UnsupportedMediaTypeException.cs"> |
230 | | - <Link>UnsupportedMediaTypeException.cs</Link> |
231 | | - </Compile> |
232 | | - <Compile Include="..\System.Net.Http.Formatting.NetCore\Internal\ConcurrentDictionary.cs"> |
233 | | - <Link>Internal\ConcurrentDictionary.cs</Link> |
234 | | - </Compile> |
235 | | - <Compile Include="..\System.Net.Http.Formatting.NetCore\MediaTypeHeaderValueExtensions.cs"> |
236 | | - <Link>MediaTypeHeaderValueExtensions.cs</Link> |
| 43 | + |
| 44 | + <Compile Include="..\System.Net.Http.Formatting\**\*.cs"> |
| 45 | + <Link>%(RecursiveDir)\%(Filename).cs</Link> |
237 | 46 | </Compile> |
238 | 47 | </ItemGroup> |
239 | 48 | <ItemGroup> |
|
243 | 52 | <DesignTime>True</DesignTime> |
244 | 53 | <DependentUpon>CommonWebApiResources.resx</DependentUpon> |
245 | 54 | </Compile> |
246 | | - </ItemGroup> |
247 | | - <ItemGroup> |
248 | 55 | <EmbeddedResource Include="..\Common\CommonWebApiResources.resx"> |
249 | 56 | <Link>Properties\CommonWebApiResources.resx</Link> |
250 | 57 | <Generator>ResXFileCodeGenerator</Generator> |
251 | 58 | <LastGenOutput>CommonWebApiResources.Designer.cs</LastGenOutput> |
252 | 59 | </EmbeddedResource> |
253 | 60 | </ItemGroup> |
254 | 61 | <ItemGroup> |
| 62 | + <Compile Update="..\System.Net.Http.Formatting\Properties\Resources.Designer.cs"> |
| 63 | + <AutoGen>True</AutoGen> |
| 64 | + <DesignTime>True</DesignTime> |
| 65 | + <DependentUpon>Resources.resx</DependentUpon> |
| 66 | + </Compile> |
255 | 67 | <EmbeddedResource Include="..\System.Net.Http.Formatting\Properties\Resources.resx"> |
256 | 68 | <Link>Properties\Resources.resx</Link> |
257 | 69 | <Generator>ResXFileCodeGenerator</Generator> |
|
0 commit comments