cake-contrib / Cake.Incubator

This project contains various experimental but useful extension methods and aliases for Cake
http://cakebuild.net/api/Cake.Incubator/
Other
19 stars 26 forks source link

Respect the AppendTargetFrameworkToOutputPath setting to compilation output #175

Closed wnorvelleadc closed 2 years ago

wnorvelleadc commented 2 years ago

Adds a check on the AppendTargetFrameworkToOutputPath property to avoid incorrectly appending the target framework to the output path

Description

Adds a check on AppendTargetFrameworkToOutputPath via document.GetFirstElementValue to XDocumentExtensions.GetOutputPaths and then factors this in when deciding if the target framework should be appended to the output paths.

Related Issue

Fixes #174

Motivation and Context

Currently the value of AppendTargetFrameworkToOutputPath is ignored, thus when it is set to anything other than the default (which is true) the output paths will be incorrect.

How Has This Been Tested?

Two additional tests:

Types of changes

Checklist: