fix: Changed WorkingDirectory to $(OutDir) as default and $(OutputPath) as fallback #223
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Exec WorkingDirectory should be
$(OutDir)
as default and$(OutputPath)
as fallback.$(OutputPath)
might not work on large complex solutions.See https://github.com/dotnet/msbuild/blob/f914c9bfb613d32edb658b803c7fe046f9ee3c37/src/Tasks/Microsoft.Common.CurrentVersion.targets#L107-L122
'OutDir and OutputPath are distinguished for legacy reasons, and OutDir should be used if at all possible.'
Experienced this error in my solution where
$(OutDir)
is used.Also there were quotation marks missing causing an exit code 9009 (file not found) on calling the dscom tool if it is located in a path containing spaces.
This Pull Request fixes these issues.