Skip to content

Fixing improper file format APIScan issue for DirectWriteForwarder - #11817

Open
dipeshmsft wants to merge 1 commit into
mainfrom
user/dipesh/dwf-apiscan-issue-fix
Open

Fixing improper file format APIScan issue for DirectWriteForwarder#11817
dipeshmsft wants to merge 1 commit into
mainfrom
user/dipesh/dwf-apiscan-issue-fix

Conversation

@dipeshmsft

@dipeshmsft dipeshmsft commented Aug 5, 2026

Copy link
Copy Markdown
Member

Description

Fixes the API Scan Issue - ImproperFileFormat exception in DirectWriteForwarder DLL which happened after the compilation mode shift.

Microsoft Reviewers: Open in CodeFlow

@dipeshmsft
dipeshmsft requested review from a team and Copilot August 5, 2026 11:44
@dipeshmsft
dipeshmsft requested a review from a team as a code owner August 5, 2026 11:44
@dotnet-policy-service dotnet-policy-service Bot added the PR metadata: Label to tag PRs, to facilitate with triage label Aug 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the DirectWriteForwarder native project’s linker settings to address an APIScan failure (“ImproperFileFormat”) introduced after a compilation-mode change.

Changes:

  • Add a Release-only linker flag (/PROFILE) to DirectWriteForwarder.vcxproj to avoid the APIScan “ImproperFileFormat” exception.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +66 to +68
<Link>
<AdditionalOptions Condition="'$(Configuration)'=='Release'">%(AdditionalOptions) /PROFILE</AdditionalOptions>
</Link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants