Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Accessibility.dll to WinForms (#593)
* Add Accessibility.dll to WinForms This is a primary interop assembly for OLEACC.dll. It's needed because both Winforms and WPF expose public types that depend on the COM interop types in OLEACC so they cannot embed the types. * Move RestoreSources to eng\Versions.props * Don't call ComputeIntermediateSatelliteAssemblies Calling this target directly can cause it to run out of order. This was happening when the pkg project built before source, and was causing CreateManifestResourceNames to remove all EmbeddedResources here https://github.com/Microsoft/msbuild/blob/d42d3504057ef2b88dd4f68c4bfc5591371bd6fe/src/Tasks/Microsoft.CSharp.CurrentVersion.targets#L121 because we hadn't run the targets that set %(EmbeddedResource.Type). Instead of doing this depend on the BuildOutputGroup. Output groups are meant to be safe to call in isolation, so they should always fully specify their target dependency chain to produce the correct items without modifying the project state. * Update to latest IL SDK And remove workaround for ILProj loading in VS. * number readme * Workaround Accessibility missing PDB Missing PDB was resulting in a failure during builds when attempting to push symbols. * Newlines
- Loading branch information
Showing
14 changed files
with
926 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Accessibility | ||
|
||
This directory contains source files used to build Accessibility.dll, the managed wrapper for COM accessibility interface. | ||
|
||
See https://docs.microsoft.com/en-us/dotnet/api/accessibility | ||
|
||
Source in this directory is generated by a tool and **should not be modified directly**. | ||
|
||
To produce the IL source the following process is used: | ||
1. Use http://aka.ms/tlbimp to generate an assembly for oleacc.dll | ||
|
||
```cmd | ||
tlbimp c:\windows\system32\oleacc.dll /out:Accessibility.dll | ||
``` | ||
|
||
2. Use ildasm to disassemble that assembly. | ||
|
||
```cmd | ||
ildasm Accessibility.dll /out=Accessibility.il | ||
``` | ||
|
||
3. Replace the desktop assembly references with their corresponding .NETCore assemblies (since .NETCore doesn't provide a version of tlbimp.exe yet) | ||
- replace `[mscorlib]System.Runtime.InteropServices` with `[INTEROP_ASSEMBLY]System.Runtime.InteropServices` | ||
- replace `[mscorlib]` with `[CORE_ASSEMBLY]` | ||
- review the diff | ||
|
||
4. Add assembly level attributes to the IL | ||
|
Oops, something went wrong.