Skip to content

Update properties when a rule set is removed#1048

Merged
tmeschter merged 1 commit intodotnet:masterfrom
tmeschter:Fix260
Mar 9, 2015
Merged

Update properties when a rule set is removed#1048
tmeschter merged 1 commit intodotnet:masterfrom
tmeschter:Fix260

Conversation

@tmeschter
Copy link
Contributor

Fixes #260.

When a rule set file is removed or renamed we need to update the
related CodeAnalysisRuleSet properties in the project file. Otherwise
the build will break when the compiler complains that it cannot find the
file.

Fixes dotnet#260.

When a rule set file is removed or renamed we need to update the
related CodeAnalysisRuleSet properties in the project file. Otherwise
the build will break when the compiler complains that it cannot find the
file.
@tmeschter
Copy link
Contributor Author

@srivatsn @mavasani @shyamnamboodiripad @heejaechang @jmarolf @JohnHamby Could you take a look, please?

@mavasani
Copy link
Contributor

mavasani commented Mar 6, 2015

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this trigger diagnostic re-computation in the IDE diagnostic service to account for rule changes? I presume it should as it is a project change, but still would be good to confirm through a manual test, if you haven't already done so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does, if changing the .ruleset file causes the compiler options to change. I would not necessarily expect them to be recomputed if the old file and the new file end up with the same options.

@shyamnamboodiripad
Copy link
Contributor

👍

Choose a reason for hiding this comment

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

Consider adding <!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. --> at the top of the file after the xml declation.

tmeschter added a commit that referenced this pull request Mar 9, 2015
Update properties when a rule set is removed
@tmeschter tmeschter merged commit 59931e5 into dotnet:master Mar 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting/renaming a ruleset in SolnExplorer should automatically update ProjectProperties

5 participants