Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-debugMode: Persist the ProjectInstance along with the log files. #24

Closed
1 task done
sayedihashimi opened this issue Feb 8, 2014 · 0 comments
Closed
1 task done
Milestone

Comments

@sayedihashimi
Copy link
Member

When Invoke-MSBuild is called with the -debugMode flag at the end of the build we should save the resulting ProjectInstance to a file. We can use the log folder as the location to persist that file. We should perhaps have an options/parameter for that.

After persisting this to disk we should also keep track of this path in the buildResult object which is saved for later use.

Then we can create the following cmdlets / advanced functions

  • Get-PSBuildPostBuildResult (or something along those lines). The idea is that we would return the path to the .csproj file that contains the final "view" that MSBuild had for the project file. This would be really helpful for debugging.

This can be achieved with $projectInstance.ToProjectRootElement().Save('<path>')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant