-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use target for GenerateBindingRedirectsOutputType per dotnet/msbuild#…
- Loading branch information
1 parent
bbcb06a
commit a09f589
Showing
2 changed files
with
13 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- GenerateBindingRedirectsOutputType needs to be set in a target, see https://github.com/Microsoft/msbuild/issues/1310#issuecomment-309596435 --> | ||
<Target Name="_Xunit_ForceGenerationOfBindingRedirects" | ||
AfterTargets="ResolveAssemblyReferences" | ||
BeforeTargets="GenerateBindingRedirects" | ||
Condition="'$(AutoGenerateBindingRedirects)' == 'true'"> | ||
<PropertyGroup> | ||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<!-- Support for importing targets via the runner --> | ||
<Import Condition=" '$(_Xunit_ImportTargetsFile)' != '' " Project="$(_Xunit_ImportTargetsFile)" /> | ||
</Project> |