diff options
Diffstat (limited to 'main/Directory.Build.targets')
-rw-r--r-- | main/Directory.Build.targets | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/Directory.Build.targets b/main/Directory.Build.targets index 34211c42ff..9a1d564490 100644 --- a/main/Directory.Build.targets +++ b/main/Directory.Build.targets @@ -13,4 +13,13 @@ <AllowedReferenceRelatedFileExtensions>.pdb;.xml;.dll.config;.exe.config</AllowedReferenceRelatedFileExtensions> </PropertyGroup> + <Target Name="FixWindowsAccessibilityReference" + AfterTargets="ResolveAssemblyReference" + BeforeTargets="CoreCompile;FindReferenceAssembliesForReferences" + Condition="'$(OS)' == 'Windows_NT'"> + <ItemGroup> + <ReferencePath Remove="@(ReferencePath)" Condition="%(ReferencePath.OriginalItemSpec) == 'Accessibility'" /> + </ItemGroup> + </Target> + </Project> |