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

Fix for #10779 to clean build to work in SSDT post ADS build #10882

Merged
merged 5 commits into from
Jun 12, 2020

Conversation

udeeshagautam
Copy link
Contributor

This PR fixes ##10779
This was happening to due generated assests.json - adding a after clean target for the same to be called at rebuild and clean tasks.

@udeeshagautam udeeshagautam changed the title Bug/cleanobj Fix for #10779 to clean build to work in SSDT post ADS build Jun 11, 2020
@coveralls
Copy link

coveralls commented Jun 11, 2020

Coverage Status

Coverage decreased (-0.1%) to 34.464% when pulling c39888c on bug/cleanobj into a7110d8 on master.

const afterCleanNode = this.projFileXmlDoc.documentElement.getElementsByTagName(constants.Target)[i];
const name = afterCleanNode.getAttribute(constants.Name);
if (name === constants.AfterCleanTarget) {
return await this.createCleanFileNode(afterCleanNode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this adding another Clean file node even if one already gets found?

Copy link
Contributor Author

@udeeshagautam udeeshagautam Jun 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no no, if it finds AfterClean target - it adds a child to it to add the clean file node. if it does not find an after clean target - then it adds the target and then adds the child. Actually just writing a test on that :) will send shortly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok I was initially confused because I didn't realize this was only called the one time the project gets updated for round tripping from SSDT

const afterCleanNode = this.projFileXmlDoc.documentElement.getElementsByTagName(constants.Target)[i];
const name = afterCleanNode.getAttribute(constants.Name);
if (name === constants.AfterCleanTarget) {
return await this.createCleanFileNode(afterCleanNode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok I was initially confused because I didn't realize this was only called the one time the project gets updated for round tripping from SSDT

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

Successfully merging this pull request may close these issues.

3 participants