Commit Graph
9 Commits
Author SHA1 Message Date
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 4d97955681 Consolidate matching ref generated baseline files
This change collapses some baseline files as well as fixes
some of the reference mis-matches


Commit migrated from https://github.com/dotnet/corefx/commit/8842923d3d6bc357d39b34c93353df952ac02079
2018-03-09 15:43:29 -08:00
Tomáš Matoušek 60360b1cfc Add API that allows the emitter to indicate presence of localloc (dotnet/corefx#27589)
* Add API that allows the emitter to indicate presence of localloc

* Regenerate ref assembly source


Commit migrated from https://github.com/dotnet/corefx/commit/3fc3900a4b22d1444010b90dfba57f14bbe43961
2018-03-08 10:22:42 -08:00
Kassem Sandarusi c935fac773 TypeDefinition.IsNested Property (dotnet/corefx#25963)
* Adding API TypeDefinition.IsNested. Closes dotnet/corefx#5377

* Adding related tests.

* fixing backward asserts.

* Switching to expression-bodied syntax.

* Adding doc comment. Switching to an assembly that actually has nested types.

* Fixing xml doc comment to align with msdn comment style.

* Update TypeDefinition.cs

Fixing bad grammar in comments.


Commit migrated from https://github.com/dotnet/corefx/commit/af18a5fe0d4aab25d8fcb6900fcffa8c99befb60
2018-02-04 13:26:16 -08:00
Wes Haggard fc9b090ef0 Update references assemblies to include private fields for structs
Contributes to https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Wes Haggard 72e76002bf Fix readonly/ref ApiCompat issues found with new compat rules
Most of these are just ref assemblies that are outdated with
the implementation. This gets the contracts in sync with the current
readonly/ref annotations in the implementation.


Commit migrated from https://github.com/dotnet/corefx/commit/e116b949bd3364e9971c513f8642cdc6064cb53f
2018-01-04 21:29:32 -08:00
Stephen Toub 09612a41dd Update ref assemblies with readonly changes
Commit migrated from https://github.com/dotnet/corefx/commit/45b724f6b6391910edea8a70f3f22a4a7996696d
2017-11-03 09:48:47 -04:00
Maryam Ariyan 59be828169 Added GetAssemblyName API for AssemblyDefinition and AssemblyReference (dotnet/corefx#23396)
* Added GetAssemblyName API to MetadataReader

Also added GetAssemblyName API to AssemblyReference and
AssemblyDefinition

* Adding more changes

Removing unnecessary usings in StringUtils and StringUtilsTests

Adding private methods in MetadataReader to set flags and hashAlgorithm

* adding helper class for AssemblyName

* Removing helper class and simplifying flag setup

Adding sample unit tests. will add more in next changeset

* Correcting two impl. mistakes in GetAssemblyName()

Correcting EnableJITcompileOptimizer flag casting

Correcting flag casting mistake on AssemblyNameFlag

* new GetAssemblyName tests + fix for netstandard1.1

* applying the code review comments

* correcting public key computation and improving flag computation

* code cleanup in the AssemblyDefinitionTests class

* using AssemblyFlags.ContentTypeMask instead of magic number 0x0E00

* refactored tests + renamed files to netstandard2.1

* setting methods to private in test class

* added test validating assemblyname with publickey

added another test validating assemblyname with culture

applied some code review comments

* code cleanup in AssemblyDefinitionTests

* renaming new netstandard2.0 files to versionless netstandard

* further cleaning up test classes


Commit migrated from https://github.com/dotnet/corefx/commit/146fd85208e0251a480318d419cdc178db350761
2017-08-31 16:52:31 -07:00
Eric Mellino c054d234e9 Add a "GenerateReferenceAssembly" target and generate four assemblies.
* The GenerateReferenceAssembly target can be run as a manual step on a
  project. When run, it produces a source code file <Assembly>.cs, in the
  reference assembly folder for the library. This source file can be used
  to compile an equivalent reference assembly.
* Use the target to generate reference assemblies for the following
  libraries:
  * System.Collections.Immutable
  * System.Reflection.Metadata
  * System.Threading.Tasks.Dataflow
  * System.Threading.Tasks.Extensions


Commit migrated from https://github.com/dotnet/corefx/commit/c92788e773afae26bc61e93e83a0f3c2b5eee91a
2017-05-24 11:13:10 -07:00