Граф коммитов

  • 88f1df2730
    Merge 745120b502 into a55e96a451 Lubomyr 2024-09-30 10:59:15 -0700
  • a55e96a451
    Enable TSA/Policheck (#427) main William Godbe 2024-09-27 14:30:30 -0700
  • aa4a6d6793
    Enable TSA/Policheck William Godbe 2024-09-27 13:26:51 -0700
  • 82979e88e7
    Stop using -pt images (#426) William Godbe 2024-09-19 14:49:47 -0700
  • 874c3d5ca1
    Stop using -pt images William Godbe 2024-09-19 14:49:34 -0700
  • e0d566c7a1
    Merge pull request #425 from terrajobst/add-security-md Immo Landwerth 2024-09-13 00:33:52 -0700
  • ac13758d83 Update wording as this isn't a .NET Core related project Immo Landwerth 2024-09-12 10:57:40 -0700
  • a815d5d356 Add SECURITY.md Immo Landwerth 2024-09-10 16:52:47 -0700
  • db8df4a7f2
    Create tsaoptions.json (#422) William Godbe 2024-07-31 10:10:08 -0700
  • 43615553dd
    Create tsaoptions.json William Godbe 2024-07-31 09:28:15 -0700
  • 745120b502
    Fix: Correct documentation for Users property Lubomyr 2024-06-05 12:41:14 +0200
  • d3c4055b36
    Switch to 1es template (#416) William Godbe 2024-03-07 17:24:33 -0800
  • 06f156330e Fix it again wtgodbe 2024-03-07 17:01:02 -0800
  • 578748b9da params wtgodbe 2024-03-07 16:48:17 -0800
  • 537f11f581 No binlog wtgodbe 2024-03-07 16:28:48 -0800
  • f8a46bf35e public stage wtgodbe 2024-03-07 16:17:01 -0800
  • 4eaf4cb129 BL wtgodbe 2024-03-07 16:15:28 -0800
  • 6ac35f5bea ^ wtgodbe 2024-03-07 15:54:29 -0800
  • dd77811d8f Fix nuget.config wtgodbe 2024-03-07 15:40:22 -0800
  • cb45799689 Fix publish wtgodbe 2024-03-07 15:19:32 -0800
  • 7989b03de1 Switch to 1es templates wtgodbe 2024-03-07 15:14:55 -0800
  • 8d6d09acc8 Remove Codeql3000 wtgodbe 2024-03-07 15:09:52 -0800
  • 4844a3c7d1
    Create azure-pipelines-public.yml (#415) William Godbe 2024-03-07 15:06:47 -0800
  • 2149032984
    Create azure-pipelines-public.yml William Godbe 2024-03-07 15:06:37 -0800
  • 07f95dcd12 Ignore header validation for etag Anders Wåglund 2023-09-06 17:07:29 +0200
  • 1231b77d79
    Prepare for 5.3.0-preview1 (#401) v3.3.0 William Godbe 2023-03-16 12:56:48 -0700
  • 8bf85a54f2
    Merge branch 'main' into wtgodbe/5.3.0 William Godbe 2023-03-16 09:44:02 -0700
  • e3a6d27f97 Update AssemblyVersions for formatting wtgodbe 2023-03-16 09:43:36 -0700
  • 509661e54f
    Separate Microsoft.TestCommon more (#400) Doug Bunting 2023-03-15 15:20:25 -0700
  • ab02d78364 Prepare for 5.3.0-preview1 Will Godbe 2023-03-15 10:52:21 -0700
  • f478f213c0
    Separate Microsoft.TestCommon more - pre-restore and prebuild the project before anything that depends on it - avoid references from other test projects doing any real work - make ordering even more explicit - avoid confusion between batching builds and `$(BuildInParallel)` - turns out this also reduces the number of double writes binary logs show significantly Doug Bunting 2023-03-14 17:10:54 -0700
  • 6949d439be
    Restore `pushd` and `popd` (#397) Doug Bunting 2023-03-07 16:39:29 -0800
  • e376cb4343
    Restore `pushd` and `popd` - oops, needed on TeamCity to find global.json - left this unconditional, mostly for the odd local build from another folder Doug Bunting 2023-03-07 12:26:06 -0800
  • 2da072a141
    Use `msbuild` from VS 2022 if available (#395) Doug Bunting 2023-03-06 22:07:37 -0800
  • 63890faddd
    Go back to x86 `msbuild` - seems to resolve `Moq` assembly load issue Doug Bunting 2023-03-06 21:45:26 -0800
  • 7ca7468118
    Put `PortReserver` users into an xUnit collection Doug Bunting 2023-03-06 21:05:55 -0800
  • 8e12737ae9
    React to new build issues - follow up to #396 (unsure why new FxCop and "spelling" errors didn't fail that PR) Doug Bunting 2023-03-06 17:50:31 -0800
  • 336038d008
    Use `msbuild` from VS 2022 if available - should ease local and TeamCity builds - make `%InstallDir%` unquoted (unlike `%vswhere%`) - shorten `%Path%` slightly - nits: - switch to 64bit `msbuild` - use script location more; no need to change directories Doug Bunting 2023-03-03 19:15:45 -0800
  • 6451d777f7
    Throw `PlatformNotSupportedException` in `netstandard1.3` (#396) Doug Bunting 2023-03-06 17:26:11 -0800
  • aad1b51ab3
    Throw `PlatformNotSupportedException` in `netstandard1.3` - stop trying to use DCS in the JSON and XML formatters - if `UseDataContractSerializer` or `!UseXmlSerializer`: - `CanReadType(...)` and `CanWriteType(...)` always return `false` - `ReadFromStreamAsync(...)` and `WriteToStreamAsync(...)` always `throw` - change default XML formatter configuration to use `XmlSerializer` - adjust and disable tests in reaction - add tests of new `netstandard1.3` behavior - nits: - correct namespace of `SerializerConsistencyTests`; was alone in previous namespace - s/DataContractFormatter/XmlSerializerFormatter/ to reflect actual `XmlMediaTypeFormatter` test actions Doug Bunting 2023-03-03 16:02:24 -0800
  • cb7628ff70
    Support `DBNull` in `netstandard1.3` assembly (#394) Doug Bunting 2023-03-01 16:53:44 -0800
  • 141363486d
    !fixup! Add `$(System.JobId)` to artifact names - `publish` / `PublishPipelineArtifact@1` task doesn't overwrite an existing build artifact - bit different from `PublishBuildArtifacts@1` - follow guidance at <https://learn.microsoft.com/en-us/azure/devops/pipelines/artifacts/pipeline-artifacts?view=azure-devops&tabs=yaml-task#q-can-i-delete-pipeline-artifacts-when-re-running-failed-jobs> Doug Bunting 2023-03-01 13:08:02 -0800
  • 393e123544
    Support `DBNull` in `netstandard1.3` assembly - available from the System.Data.Common package - extend `DBNull` testing to include `net6.0` - s/NETCOREAPP/NETCOREAPP2_1/ where possible - fix comments in `HttpValueCollectionTest` - comments about `DBNull` there were incorrect Doug Bunting 2023-02-28 11:59:26 -0800
  • d56a97f593
    Rename Formatting projects and more (#392) Doug Bunting 2023-02-28 11:52:52 -0800
  • 89412eb84d
    Remove RuntimePortable.sln - solution name no longer makes much sense and division adds little or no value - add .NET Standard projects to Runtime.sln - add solution filters for .NET Framework and .NET Standard projects - remove `$(BuildPortable)` property and `@(SolutionsToBuild)` item group Doug Bunting 2023-02-24 22:11:52 -0800
  • be409a81e4
    Use `NETSTANDARD1_3` and `Testing_NetStandard1_3` - `NETFX_CORE` name no longer makes much sense - remove both `NETFX_CORE` C# defined constant and `msbuild` property - manually-defined constant completely unnecessary in src/ code Doug Bunting 2023-02-24 15:43:07 -0800
  • e65b647471
    Adjust `netstandard` Formatting output paths - align w/ new project names Doug Bunting 2023-02-24 15:20:01 -0800
  • 9e51e8a519
    Rename `netstandard` Formatting projects - Formatting.NetCore and Formatting.NetStandard names no longer make sense Doug Bunting 2023-02-24 14:55:53 -0800
  • eae75d6044
    Correct `ValidateStreamForReading(...)` (#390) Doug Bunting 2023-02-23 20:06:51 -0800
  • 0d58c8269a
    Revert part of the previous commit - `ReadAsStreamAsync()` introduces unwanted behaviours - returned `Stream` cannot be read multiple times and is not recreated on next `ReadAsStreamAsync` call - method buffers the `HttpContent`, invalidating the intent of `unBuffered` Doug Bunting 2023-02-23 17:16:41 -0800
  • da6d49a6c4
    Apply suggestions from code review Doug Bunting 2023-02-23 15:47:34 -0800
  • 6977684f6b
    Correct `ValidateStreamForReading(...)` - fix #389 - check `Stream` before first read attempt - check `CanRead` (not `CanSeek`) before second or later read attempts - add lots of tests of related scenarios - nit: correct a recent `HttpContentMessageExtensions` comment Doug Bunting 2023-02-16 17:16:39 -0800
  • 30c4ecee2f
    Use -Svc pools from here on out (#388) Doug Bunting 2023-02-21 12:36:28 -0800
  • de3e48487c
    Use -Svc pools from here on out - we _only_ service this repo Doug Bunting 2023-02-17 20:36:27 -0800
  • 979e6ac663
    Add `Content` to all `HttpResponseMessage`s (#387) Doug Bunting 2023-02-17 12:14:39 -0800
  • ecadf28dcc
    Add `Content` to all `HttpResponseMessage`s - fix #386 - reenable `net6.0` tests disabled in #384 for this issue - also, check `Stream.CanSeek` less when calculating `HttpMessageContent.ContentLength` value - use inner `HttpContent.Headers.ContentLength` if available - this changes behaviour slightly for both requests and responses - observable as `HttpMessageContent.Headers.ContentLength!=null` for empty messages - for responses, avoids `ContentLength==null` versus `ContentLength==0` inconsistencies (depending on platform) - `ContentLength==null` may still occur in some corner cases (which existed before) - e.g. when inner `HttpContent` doesn't know its length and `ReadAsStreamAsync()` hasn't completed - main change means `HttpResponseMessage`s we expose to user code are consistent across platforms - note: user code won't see `EmptyContent` in `HttpResponseMessage`s we create Doug Bunting 2022-12-09 16:01:16 -0800
  • 0f4c62480b
    Test Formatting assemblies w/ `net6.0` (#384) Doug Bunting 2023-02-13 12:39:52 -0800
  • a74ea59921
    !fixup! Reference #386 - fix comming **Real Soon Now™️** 😁 Doug Bunting 2023-02-13 12:07:05 -0800
  • 28faf44bb1
    Move `%Path%` setting up into build.cmd - nit: clean up a few comments and tighten scripting up Doug Bunting 2023-02-11 15:02:38 -0800
  • 8d4b6672c6
    Test Formatting assemblies w/ `net6.0` - expand our text matrix to include a modern (and LTS) TFM - change how Formatting test assemblies are found - `netcoreapp` is no longer the only relevant folder prefix - use the latest .NET 6 SDK - install the 2.1.x runtime in the pipeline - don't require .NET in VS - will use binplaced `msbuild` instead - have `git` ignore the new .msbuild/ folder - react to new `Exception.Message`s in `netcoreapp3.1` - handle different formatting of argument info in `ArgumentException.Message`s - handle slightly greater `decimal` precision in a `JsonReaderException.Message` - react to new `Exception.Message`s and other changes in `net6.0` - handle different `Message` in `InvalidOperationException`s about invalid request URIs - react to other changes in `net6.0` - handle inability to mock a `Stream` if a writer passes a `ReadOnlySpan<byte>` in `net6.0` - see moq/moq4#829, moq/moq4#979, and dotnet/runtime#45152 about the issue - skip tests failing due to `HttpResponseMessage` changes - see dotnet/runtime@b48900f3b3 which introduced this - nits: - simplify define use now that `NETCOREAPP3_1_OR_GREATER` and so on are available - clean up .gitignore Doug Bunting 2022-12-09 16:01:16 -0800
  • 169d95fc06
    Bump test project dependencies (#383) Doug Bunting 2023-01-30 20:52:17 -0800
  • 729b554d5d
    React to new Moq changes - avoid `ProtectedMock\`1.ThrowIfPublicMethod(...)` `throw`ing - use new overloads introduced in the Moq 4.11.0 release - adjust to Moq hiding the `ObjectProxy` type better - update `ControllerContext` mocking to avoid NREs - setting `HttpContext.User` on the `Object` left `get` value `null` (did nothing) - nit: use `SetupGet(...)` for another property Doug Bunting 2023-01-24 15:10:30 -0800
  • f74dff0736
    Resolve xUnit issues new analyzers find - address xUnit2000 warnings - pass expected values to `Assert.Equal(...)` as correct (left) argument - make generic method types explicit to avoid `error CS0121: The call is ambiguous between the following methods or properties: ...` - note: cannot remove unnecessary xUnit1013 suppression - related bug (xunit/xunit#1466) apparently not fixed in 1.0.0 analyzers package - was xunit/xunit.analyzers#82 fix (in 2017) insufficient? Doug Bunting 2022-08-18 19:58:59 -0700
  • 146107a8c0
    React to changed xUnit APIs - adjust Microsoft.TestCommon code - nit: use `Array.Empty<byte>()` in `TranscodingStreamTests` - `TranscodingStream` `internal`s can be `private` instead Doug Bunting 2023-01-27 19:01:02 -0800
  • f328f4cb04
    Bump test project dependencies - Castle.Core, Moq, and xUnit versions were all out of date - hold xunit.runner.visualstudio version back in .NET SDK test projects - can be moved to latest version after we stop testing on netcoreapp2.1 - add missing xunit.analyzers reference to System.Web.Razor.Test project - move all test projects to .NET v4.6.2 (a supported framework) - remove `netstandard` reference in System.Net.Http.Formatting.Test; not needed w/ new TFM & updated references - further separate build of Microsoft.TestCommon project when invoked from NetCore.Test project - special case `RestorePackages` for this case - add System.Net.Http references to avoid conflicting versions e.g. src/ and test/ TFMs differ Doug Bunting 2022-08-18 17:34:38 -0700
  • 2ed73bc49d
    Move NetCore project to use .NET SDK (#380) Doug Bunting 2023-01-28 13:39:45 -0800
  • 9844be06c5
    !fixup! Improve `XmlReader` comments - mention `XmlDictionaryReader` instead Doug Bunting 2023-01-27 23:04:59 -0800
  • 8d057eb42d
    !fixup! Remove added `AggressiveInlining` requests - new `[MethodImpl(...)]` attributes have downsides - also don't match `[StackTraceHidden]` semantics Doug Bunting 2023-01-26 20:57:00 -0800
  • 6e875582f7
    Ensure a couple more assemblies are available - don't seem to be copied into test folder in CI builds Doug Bunting 2023-01-21 21:50:11 -0800
  • 9dc9b2b1d1
    Work around missing features in `netstandard1.3` - get classes now included in NetCore assembly compiling - `SerializationAttribute` is not available - therefore `Exception` is not serializable - therefore `DefaultContractResolver.IgnoreSerializableAttribute` is not available - `Stream.(Begin|End)(Read|Write)` and `Stream.Close()` are not available Doug Bunting 2023-01-21 15:30:12 -0800
  • 21eb655ddb
    Remove unnecessary NETFX_CORE workarounds - use `DefaultContractResolver`, `GuidAttribute`, `TypeDescriptor`, `XmlElement`, `XmlNode` classes - use `IRequiredMemberSelector` interface - use `RequestMessage.CreateResponse()` extension method - all available in `netstandard1.3` - `JsonContractResolver` use is something of a late Newtonsoft.Json version reaction - was held back by missing `IRequiredMemberSelector` Doug Bunting 2022-11-25 15:38:49 -0800
  • a2724a9994
    Add `IRequiredMemberSelector` support in NetCore assembly Doug Bunting 2022-11-27 21:30:01 -0800
  • beac59f6a8
    Add `MediaTypeMappings` support in NetCore assembly Doug Bunting 2022-11-27 21:25:46 -0800
  • 07c32fcaef
    Use `TranscodingStream` in JSON and XML formatters - remove `ReadOnlyStreamWithEncodingPreamble` and its tests - was insufficient in general and doesn't work correctly in `netstandard1.3` - see dotnet/runtime#80160 Doug Bunting 2023-01-15 21:39:13 -0800
  • 2e4c577370
    Adjust `TranscodingStream` and related code to compile and run here - add conditions to avoid references to version-specific API - remove references to internal dotnet/runtime code - rewrite some code more generically if performance impact likely minor - use Microsoft.TestCommon instead of directly relying on Xunit in tests - use C# 9.0 Doug Bunting 2022-12-22 10:42:39 -0800
  • a51922e0bb
    Copy `TranscodingStream` and related files from dotnet/runtime - my runtime clone was at 88868b7a781f4e5b9037b8721f30440207a7aa42 Doug Bunting 2023-01-12 22:37:12 -0800
  • 38f14277dc
    Add `UseDataContractJsonSerializer` support in NetCore assembly - `XsdDataContractExporter` remains unavailable - update XML DCS tests to handle this (previously not in NetCore assembly) - try various workarounds - `ReadOnlyStreamWithEncodingPreamble` causes tests to hit dotnet/runtime#80160 - restriction to UTF8 when writing is a significant issue Doug Bunting 2022-11-27 18:01:58 -0800
  • d5ef276a5b
    Add `MaxDepth` support in NetCore assembly - remove an unnecessary suppression about `MaxDepth` in `BaseJsonMediaTypeFormatter` Doug Bunting 2022-11-27 17:51:21 -0800
  • d14845bc5a
    Use `NameValueCollection` everywhere - available (but not serializable) in `netstandard1.3` Doug Bunting 2022-11-25 16:02:05 -0800
  • 163f187eac
    Remove unnecessary NetCore-specific GlobalSuppressions.cs file Doug Bunting 2022-11-25 14:14:27 -0800
  • 84d7ed733e
    Add simple classes to NetCore project - use `ICloneable` copy to get more classes compiling - helps NetCore in similar way to existing `MediaTypeHeaderValueExtensions` - use `InvalidEnumArgumentException` copy to simplify code and testing - both not available in `netstandard1.3` (or available packages) but easily duplicated Doug Bunting 2022-11-25 14:11:18 -0800
  • 86fdf4c2f6
    Remove `UriQueryUtility` because `WebUtility` is available everywhere - leave test to confirm `WebUtility` continues to behave about the same - handle `WebUtility` being a `public` class - change other tests to handle `WebUtility.UrlEncode(...)` encoding to uppercase - unlike `UriQueryUtility.UrlEncode(...)` Doug Bunting 2022-11-25 14:01:23 -0800
  • d53a5b06b7
    Remove unnecessary `ConcurrentDictionary` class - was not available in `Profile259` - leave tests to confirm correct operation w/ "real" class Doug Bunting 2022-12-12 18:00:03 -0800
  • 702846d596
    React to using Newtonsoft.Json.Bson everywhere - remove deprecated `BsonWriter` mentions entirely - remove legacy BSON writer test workaround Doug Bunting 2022-12-18 22:03:51 -0800
  • ff15152081
    Move NetCore project to use .NET SDK - Formatting.NetCore now targets `netstandard1.3` - was `Profile259` aka `portable-net45+wp80+win8+wpa81`, approximately `netstandard1.0` - but Newtonsoft.Json.Bson supports `netstandard1.3` and up - use Newtonsoft.Json.Bson in NetCore projects - can now multi-target NetCore.Test as well Doug Bunting 2022-08-04 11:51:24 -0700
  • fc1cf70d82
    Use latest 2.1.x .NET SDK (#381) Doug Bunting 2023-01-24 15:42:49 -0800
  • 0674e0ac58
    Use latest 2.1.x .NET SDK - noticed CI builds were using old 2.1.500 - `UseDotNet@2` seems to ignore `rollForward` when using global.json :frown: - nits: - quiet `dotnet` in CI (where `dotnet` is always new) - complain about all potentially missing components when VS isn't found - add a missing blank line Doug Bunting 2023-01-21 21:20:44 -0800
  • 8515e0bedd
    Address a few more nits (#378) Doug Bunting 2023-01-20 10:45:23 -0800
  • 24fe70a45c
    Address a few more nits - avoid repeated NuGet.exe downloads - remove extra bits in modern file versions before parsing - suppress warnings about targeting `netcoreapp2.1` Doug Bunting 2023-01-01 20:22:44 -0800
  • 1e2a82c42c
    Use .NET SDK in two test projects (#371) Doug Bunting 2022-12-12 16:13:35 -0800
  • 82f520bf4c
    Create general `TestAssembly` target - rename WebStack.xunit.targets -> WebStack.testing.targets - rename `Xunit` target -> `TestAssembly` - move `dotnet vstest` use into new target - handle exit codes more consistently Doug Bunting 2022-11-29 21:57:58 -0800
  • 8ee67e0a48
    Use .NET SDK in Microsoft.TestCommon - allows reference in .NET SDK test projects Doug Bunting 2022-08-07 15:32:38 -0700
  • c01cbed4dc
    Use .NET SDK in NetCore.Test project - for now, unable to target `netcoreapp2.1` in NetCore.Test project - Microsoft.Net.Http is not compatible - System.Net.Http types have different identities, causing compilation failures - switch to use `dotnet vstest` for any .NET Core assemblies (just one currently) - can use `Xunit` target for all .NET Framework assemblies - make XunitXml.TestLogger available for .NET Core App testing - use above test logger in repo-level testing - integrate w/ tests that use the `Xunit` target - don't import from xunit.msbuild.runner when targeting .NET Core; not needed - add `$(CopyLocalLockFileAssemblies)` to these (now both .NET SDK) test projects - xUnit assemblies were not copied (when they should have been) w/o this Doug Bunting 2022-11-12 16:24:37 -0800
  • c98af896fc
    Build w/ VS 2019; restore w/ `msbuild` (#375) Doug Bunting 2022-12-12 11:16:33 -0800
  • 1c8de17ce1
    Build w/ VS 2019; restore w/ `msbuild` - handle both SDK-style and legacy projects in one way - set `$(RestorePackagesConfig)` to cover both project types - allow newer .NET SDKs to align w/ VS components - make a few `<import/>`s conditional to avoid problems in `Restore` target evaluation - restore global packages.config before building to make StyleCop available - move second copies of packages.config packages into packages/ folder - update FxCop TFM - .NET 4.0 not supported because current FxCopSdk is built against .NET 4.7.2 - suppress new warnings about old FxCop approach and not using `IFormatProvider` Doug Bunting 2022-11-11 17:13:54 -0800
  • feb9b134b0
    Move NuGet.config to repo root (#374) Doug Bunting 2022-12-11 21:22:42 -0800
  • b943c83b3f
    Autodetect CI environment (#373) Doug Bunting 2022-12-11 21:22:19 -0800
  • 3dba12abda
    Move NuGet.config to repo root - not sure why this wasn't done ages ago Doug Bunting 2022-12-09 16:53:10 -0800
  • 712340db13
    Autodetect CI environment - check for CI environment variables in build.cmd Doug Bunting 2022-12-09 16:56:37 -0800
  • f6a9ae3d7d Add workflow to sync eng/common/templates from arcade Will Godbe 2022-11-28 12:25:20 -0800