Commit Graph
76 Commits
Author SHA1 Message Date
Stephen Toub 1de0f651e4 Improve StaticTestGenerator and fix some visibility (dotnet/corefx#36472)
Worked through a bunch of additional assemblies and fixed cases where StaticTestGenerator was doing the wrong thing.  Also fixed the visibility on a bunch of test methods it wasn't able to access.

Commit migrated from https://github.com/dotnet/corefx/commit/475542441df2f054d5e9aa39576019775a5d2f52
2019-03-29 17:40:05 -04:00
Stephen Toub dce7647bbc Clean up lots of string.Format / SR.Format usage (dotnet/corefx#35777)
* Clean up lots of string.Format usage

This PR does a few things:
- Adds new SR.Format overloads, in particular to support accepting an IFormatProvider as the first argument.
- Fixes a bunch of calls to string.Format that should have been using SR.Format.  This not only helps in AOT builds where we want to be able to more cleanly remove resource strings, it enables easier auditing of the remaining string.Format uses to determine whether there are more appropriate implementations.
- Replaces some string.Format uses, in particular in asserts, with easier to read and maintain string interpolation
- Replaces some string.Format uses with string concatenation where it's simple and cheaper
- Fixes a bunch of SR.Format(SR.Something) calls where the SR.Format part is extraneous and should just be removed.
- Replaces a bunch of Debug.Assert(false, ...) calls with Debug.Fail(...).  This isn't directly related to string.Format, but I started this cleanup as part of cleaning up asserts that were using string.Format, and then ended up accidentally merging the chain into the same commit, and decided it was simple enough that I should just leave it rather than trying to separate it out again.

* Address PR feedback

* Fix breaks due to lower netstandard builds


Commit migrated from https://github.com/dotnet/corefx/commit/a6f76f4f620cbe74821c6445af3f13e048361658
2019-03-06 12:03:00 -08:00
Hugh Bellamy 2790f9648e Cleanup some Syndication code (dotnet/corefx#35175)
Commit migrated from https://github.com/dotnet/corefx/commit/327d8ed428b40491b499cad4d4114af4fa3f8f30
2019-03-05 13:22:50 -08:00
Hugh Bellamy 06397983d3 Add more Syndication tests (dotnet/corefx#35107)
* Add more Syndication tests


Commit migrated from https://github.com/dotnet/corefx/commit/013fd82b1bb218d171300e127a487ebc39e1fc2e
2019-03-05 11:49:26 -08:00
Viktor Hofer f8a8530d0f Project msbuild syntax cleanup (dotnet/corefx#35686)
* Remove license header from non-shipping files

* Remove obsolete Project attributes

* Remove xml header and remove DefaultTargets


Commit migrated from https://github.com/dotnet/corefx/commit/c390ce7df50252e11f5d322276e9d19e046d1332
2019-03-03 18:55:25 +01:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Viktor 993a0c2ef2 Change test data file paths to respect Content TargetPath
Commit migrated from https://github.com/dotnet/corefx/commit/fdc9de8db8785331749a985501fd05e2cc3673db
2018-10-17 01:04:44 +02:00
Wes Haggard 6dcf8b8bfb Update the configurations properties in projects
Commit migrated from https://github.com/dotnet/corefx/commit/fea86686c620242ce7e1911418f2fba7c4d52d4d
2018-08-29 09:45:04 -07:00
Wes Haggard 2da8717fc3 Add netcoreapp2.1 build for System.ServiceModel.Syndication
Commit migrated from https://github.com/dotnet/corefx/commit/0b71879a3aa8816de9c2ec575dcebb09995752f7
2018-08-29 09:38:30 -07:00
Hugh Bellamy 0e78006a4e Remove dead code from Syndication
Commit migrated from https://github.com/dotnet/corefx/commit/628edf4dd6552be37942f937d16b73a37f305f2f
2018-08-16 11:22:05 -07:00
Hugh Bellamy 58f1b2cbfd Misc cleanup in Syndication
Commit migrated from https://github.com/dotnet/corefx/commit/7cf68bbe92454e373ea02367132927b0e3becab1
2018-08-16 11:22:05 -07:00
Hugh Bellamy a76ced5420 Convert fields to auto properties
Commit migrated from https://github.com/dotnet/corefx/commit/d089e4e6de1f0c04bc941837950744b8161544b0
2018-08-16 11:22:05 -07:00
Hugh Bellamy 3111d0b34f Remove empty tracing code
Commit migrated from https://github.com/dotnet/corefx/commit/f5ddd892b2664d0bf9a05b102b331fcf9cda80b5
2018-08-16 11:22:05 -07:00
Hugh Bellamy 772f7962b6 Remove unecessary DiagnosticUtility from Syndication code (dotnet/corefx#31184)
* Remove unecessary DiagnosticUtility from Syndication code


Commit migrated from https://github.com/dotnet/corefx/commit/8b5269680e2bf05e610ecaa2320c965007cec84e
2018-07-31 14:03:08 -07:00
Santiago Fernandez Madero ccdea37829 Update netfx alias to target .NET 4.7.2 (dotnet/corefx#28883)
* Change netfx to target .NET 4.7.1

* Fix CoreFx.Private.TestUtilities to not reference System.Runtime.InteropServices.RuntimeInformation which is now inbox in netfx

* Fix StackTrace.Tests to be built against netstandard and run against netfx inbox

* Fix ValueTuple configurations to support net461 and add netfx placeholder configuration since in net471 it is now inbox

* Fix projects' package configurations that had netfx (net461) to still support net461 and netfx as a buildconfigurations

* Disable failing tests when running on .NET 4.7.1

* Make netfx target net472 and merge with master

* Update ActiveIssue comments to issue number only

* Workaround packages tests due to not installed targeting pack

* Match NSSupportPackage version to CLI's

* Remove netstandard support lib bin placing to runtime and testhost for netfx, fix reference paths to match new package

* Run UpdateVSConfigurations after merging conflicts with the newly updated SDK projects

* Add net461 package configuration to System.CodeDom

* Add net461 package configuration to System.Configuration.ConfigurationManager

* Add net461 package configuration to System.Security.Cryptography.Xml

* Add net461 package configuration to System.Security.Permissions

* Add net461 package configuration to System.ServiceModel.Syndication


Commit migrated from https://github.com/dotnet/corefx/commit/faad2e63b35bed10fe18195987a413308b97eded
2018-07-10 15:04:27 -07:00
Eric Erhardt 21b7a52139 Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/0343b37275d50fa44b8db91bd9ed8364f89600fc
2018-07-05 14:06:19 -05:00
Hugh Bellamy 4a784487dc Add parameter name where missing
Fixes `SyndicationContentTests.WriteTo_EmptyOrNullName_ThrowsArgumentException`

Fixes `ServiceElementExtensionTests.Ctor_EmptyOuterName_ThrowsArgumentException`


Commit migrated from https://github.com/dotnet/corefx/commit/434da5cff99deda2131aef1476cad8a61b679455
2018-07-02 12:07:37 -07:00
Hugh Bellamy 84e0380287 Add Syndication tests
Commit migrated from https://github.com/dotnet/corefx/commit/b0edc960e855e159fb9d329df08d47904963d75e
2018-07-02 12:07:37 -07:00
Hugh Bellamy aa871766b9 Cleanup Syndication tests
Commit migrated from https://github.com/dotnet/corefx/commit/e20e5173ac1af975eb52933f06ceec389bdc037e
2018-07-02 12:07:37 -07:00
Eric Erhardt 779486884e Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ec546de620c5248f3662d6aaca989ed382b86b6b
2018-06-28 21:28:41 -05:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Stephen Toub 4c9eb2ec25 Simplify built-in types across corefx tests (dotnet/corefx#30660)
Commit migrated from https://github.com/dotnet/corefx/commit/7ae1a252d7e68c5513d2658de7a401c37e9b0504
2018-06-25 22:42:04 -07:00
Stephen Toub 2fb9f847fc Simplify built-in types across corefx (dotnet/corefx#30656)
Commit migrated from https://github.com/dotnet/corefx/commit/e0ba7aa8026280ee3571179cc06431baf1dfaaac
2018-06-25 16:54:41 -07:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Stephen Toub 2ed60d5cdb Use nameof in more places (dotnet/corefx#30228)
I'd previously scrubbed the repo for places nameof could be used.  A lot more code has come into the repo since then, so I'm rescrubbing.

Commit migrated from https://github.com/dotnet/corefx/commit/54d15abce387fc7ea4cd9546179c4a955ff5ea85
2018-06-11 11:37:10 -04:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Wes Haggard fc526e8605 Bump assembly versions for libraries with packages
Commit migrated from https://github.com/dotnet/corefx/commit/6a1b5c0aeee747a535579da7374c05b8d878fb65
2018-04-27 14:56:18 -07:00
Eric St. John 8fcddacb0e Update for new API compat operand names
Commit migrated from https://github.com/dotnet/corefx/commit/a9f347950a1526b28f4577f2dbf94c23b3123d5c
2018-04-25 14:26:00 -07:00
Matt Connew 174b3e219a Skipping tests on NetFX which aren't applicable
Commit migrated from https://github.com/dotnet/corefx/commit/542ffdd5b2430998f436c3c83a3c6b7c92b36e28
2018-04-23 12:52:48 -07:00
Eric St. John 077cb61d08 ServiceModel.Syndication needs to expose facade on desktop
Commit migrated from https://github.com/dotnet/corefx/commit/e8b819698856732c850124a6df5f955776ebe7d8
2018-04-23 09:25:36 -07:00
Egor Bogatov 3dfcb8318b fix cs0177 when compiled on netf/mono (dotnet/corefx#29151)
Commit migrated from https://github.com/dotnet/corefx/commit/3e09b2f3b0a40e02ecd2913e6ea03fa03e056feb
2018-04-16 22:16:31 -07:00
Wes Haggard dccc06ade2 Baseline all reverse apicompat issues
Commit migrated from https://github.com/dotnet/corefx/commit/ddb31b5d2f393cf1a16653ff99736a6f25cd98b5
2018-03-09 15:43:29 -08:00
Jose Perez Rodriguez 2b978b922f Updating the package index for UAP and updating buildtools (dotnet/corefx#27787)
* Updating the package index for UAP and updating buildtools

* Having System.Reflection.DispatchProxy crosscompile for uap RS3

* Updating buildtools and fixing PR feedback

* Re-add support for uap to the assemblies that already had a netcoreapp2.0 config for Windows


Commit migrated from https://github.com/dotnet/corefx/commit/7be44d2de8661cd925955e540d940b4eb47e5753
2018-03-08 09:43:06 -08:00
Matt Connew f297895604 Implement the new SyndicationFeed object model api's
Commit migrated from https://github.com/dotnet/corefx/commit/924dce06fd6d2bef8a4425f2fabbdef299d833d6
2018-03-02 20:57:45 -08:00
Xing Mao 665e687566 Made changes per PR feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/a92e37b53ae84e0d035f29959fa5388e6545b4d0
2018-03-02 20:57:45 -08:00
Xing Mao 2b882c7c09 Changed Collection Properties.
Commit migrated from https://github.com/dotnet/corefx/commit/ae1fa01d98e45e5b4176732513ef542882f2a490
2018-03-02 20:57:45 -08:00
Xing Mao cfd7bcbdf3 Add setter for collection property.
Commit migrated from https://github.com/dotnet/corefx/commit/9d5cdf203d2156e31395c0f8e326c94e09d87fbb
2018-03-02 20:57:45 -08:00
Xing Mao 07d76aa2cc Renamed tests.
Commit migrated from https://github.com/dotnet/corefx/commit/a8388b11dd050b9f23bc1847c76fe04e6529fb4f
2018-03-02 20:57:45 -08:00
Xing Mao 03ffae5314 Added support for more optional elements.
Commit migrated from https://github.com/dotnet/corefx/commit/a08ab45c58b45b675670fde525a4972c8a5464d9
2018-03-02 20:57:45 -08:00
Xing Mao 4a5af81bdf Addressed PR feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/37f74615380a8c75834fcc27fc7991f972bb81ed
2018-03-02 20:57:45 -08:00
Xing Mao 1b37344972 Minor fixes.
Commit migrated from https://github.com/dotnet/corefx/commit/dca339473a410b5a20d023b1107f084d6b62c18b
2018-03-02 20:57:45 -08:00
Xing Mao a7c29efd63 Addressed PR feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/697763879d654a0e018e4b7cbc9287d86163e9c7
2018-03-02 20:57:45 -08:00
Xing Mao edfd0fc7f0 Syndication Support Documentation Element.
Ref dotnet/corefx#25608.


Commit migrated from https://github.com/dotnet/corefx/commit/b288a363d1d06726dc3bb65cdc4e859ca35e1cf5
2018-03-02 20:57:45 -08:00
Matt Connew 4cb144ee2e Changes from api review
Commit migrated from https://github.com/dotnet/corefx/commit/76b6432067e6f762bd108640e55829e07d7f0ad3
2018-03-02 16:50:49 -08:00
Xing Mao 952a826362 Addressed CR Feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/27ca66a04a5d5680227cd0c1e904cdda5e2b1734
2018-03-02 16:50:49 -08:00
Xing Mao 2d2bfcd2de Fixed errors due to merge conflicts.
Commit migrated from https://github.com/dotnet/corefx/commit/ef3ee229f9bf94d7036996d5370bfebdeaa1bbe1
2018-03-02 16:50:49 -08:00
Xing Mao 6c5523add5 Modify Syndicaiton Custom Parser APIs.
Ref dotnet/corefx#24668


Commit migrated from https://github.com/dotnet/corefx/commit/18757571a4f4227afd86e6f5a389fd1edcc70cc9
2018-03-02 16:50:49 -08:00
Jon Hanna 5ecc221cc7 Add license headers. (dotnet/corefx#26009)
Any *.cs file found without the usual license header has it added except:

1. Files that note they are auto-generated.
2. Files with a different header (unless it is very close to the usual,
in which case adjust for typos and old versions).
3. FxCopBaseline.cs files.

Commit migrated from https://github.com/dotnet/corefx/commit/e5da05d7100a64ab1d98c865436a1fb8b0ddd507
2017-12-22 12:51:37 -06:00