* Adding API TypeDefinition.IsNested. Closesdotnet/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
* 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
* Enable tests to compile with netstandard
Most of the tests have netstandard configurations and it doesn't compile. the changes here is to fix the configurations and the tests to compile.
This is important step to get netfx tests compile too as we are in most of the time netfx fallback to netstandard configuration
The changes include some fixes to compile teh sources too.
* Fix System.Collections.Immutable
* update src configuration
* remove netstandard17 defines
* Split netcoreapp code to its own files
* Remove 17 from the test class name
Commit migrated from https://github.com/dotnet/corefx/commit/15b4f51c2f3cb924840e5407bb8d5fe03bb282ea
* Enable compiling the test projects against the configuration
The tests were compiled using the vertical configuration and not the best configuration picked from Configurations.props. this change is fix that and have all test projects configured accordingly.
This change ensuring netcoreapp runs successfully and we'll have another rounds later for other configurations like netfx, UAP...etc.
* Fix openssl test project on Linux distros
* Update the project configurations
* Update VS solution files
* update solution files
Commit migrated from https://github.com/dotnet/corefx/commit/e79912f8b77bc22abfd85e94b74c06e5d99e8381
CoreFX tests will now compile against netstandard1.3 as references and will now deploy for the platforms listed in their respective supports clause, provided the appropriate TestTFM is passed in. The supports are fully listed inside runtime.json in the new TestSuite metapackage in buildtools. The tests will default to netcoreapp1.0 as their TestTFM.
CoreFx test projects now utilise a test csproj to pkgproj reference which determine the appropriate compile time and runtime assets needed.
Dependent on https://github.com/dotnet/buildtools/pull/770
Commit migrated from https://github.com/dotnet/corefx/commit/b4841454de7ddcd75e92e2bb24ebb238a82df43f
The newest version of MSBuild has fixed the embedded resource culture
issue that was preventing us from using periods in embedded resource
names. This reverts the changes to the System.Reflection.Metadata tests
which removed the periods from some embedded resource file names in the
test assembly.
Commit migrated from https://github.com/dotnet/corefx/commit/933a0cd2faaa26b479b75ae5e54a5b57ed9c15f6
We have to lock down a v1.2 S.R.Metadata now, but there are features
(metadata writer, signature decoder) that we're pushing out to a v1.3.
Set up the build to produce both packages and configure the project
such that the default configurations are v1.2 and the *_Future
configurations are v1.3.
Currently, v1.2 just internalizes the features of v1.3, but we can
consider stripping them out entirely.
Commit migrated from https://github.com/dotnet/corefx/commit/7152971f4a940aa897c29fcdbed8934a692a928e
Up to now, System.Reflection.Metadata provides low-level access to
ECMA-335 CLI metadata, but only provides signatures as blobs that must
be parsed with direct knowledge of the format as described in the
section II.23.2 of the CLI specification. There is a BlobReader for
reading various elements out of blobs, but it is up to the caller to
read the right things at the right positions.
This was by-design as the library is designed to sit at the lowest level
behind the scenes of higher level API such as Reflection proper, Roslyn,
or CCI.
The challenge with signatures is that they are variable-length and
encode tree structures, and each higher level model that could sit on
top of System.Reflection.Metadata will have different representations
for the trees. We do not want to introduce an API to build a fully
formed tree that then has to be traversed and rewritten to match the
actual use case.
This API is therefore a middle ground between:
1. Here are the bytes and some helpers. Read the spec to decode.
(Status quo.)
2. Yet another high-level metadata API.
(Out of scope for this layer.)
It works as follows:
1. The caller chooses an arbitrary representation, TType, for type
symbols and implements ISignatureTypeProvider<TType> .
2. Signatures are parsed by recursive descent and the provider is
called to create new type nodes:
* Give me the TType that represents this primitive
* Give me the TType that represents this TypeDefinition
* Give me the TType that represents an array of this other TType
* etc.
Commit migrated from https://github.com/dotnet/corefx/commit/0bc15ebcff855acf36d0970d0ed95d770adf2882
Setting <DebugSymbols> and <DebugType> like this breaks building cross
platform because Roslyn can't emit PDBs. Our top level properties files
define these settings to false when building cross platform and there is
no reason these projects need to be doing their own thing.
Commit migrated from https://github.com/dotnet/corefx/commit/f430cedb84b28ed40b688f8fe5cd6ba5769db9e0