When conditioning source files between TFMs, build only errors always get reported against first TFM #2811
Labels
Feature-Error-List
Reporting compile/build errors, warnings, and messages to the Error List.
Feature-Multi-Targeting
Targeting and building for multiple frameworks.
Triage-Approved
Reviewed and prioritized
Milestone
Filed on behalf:
https://developercommunity.visualstudio.com/content/problem/103384/a-multi-target-csproj-project-cant-open-file-with.html.
https://developercommunity.visualstudio.com/content/problem/233599/error-output-incorrect-on-multi-trageting-targetfr.html
Expected: Two builds errors:
Actual: Three build errors
If you switch to build only you can see that the error coming out of the net452 build is actually being reported against netcoreapp2.0.
MultiTargetBug.zip
The text was updated successfully, but these errors were encountered: