Selectively suppress custom Obsolete warnings

I’m using the Obsolete attribute (as just suggested by fellow programmers) to show a warning if a certain method is used. Is there a way to suppress the warning similar to CodeAnalysis’ SuppressMessage at points where the use is justified? This needs to work for [Obsolete(“Some message”)] which generates warning 618 and the plain [Obsolete] … Read more

Visual Studio Post Build Event – Copy to Relative Directory Location

On a successful build, I wish to copy the contents of the output directory to a different location under the same “base” folder. This parent folder is a relative part and can vary based on Source Control settings. I have listed a few of the Macro values available to me … $(SolutionDir) = D:\GlobalDir\Version\AppName\Solution1\build $(ProjectDir) … Read more

NUnit vs. Visual Studio 2008’s test projects for unit testing [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

I want to delete all bin and obj folders to force all projects to rebuild everything

I work with multiple projects, and I want to recursively delete all folders with the name ‘bin’ or ‘obj’ that way I am sure that all projects will rebuild everything (sometimes it’s the only way to force Visual Studio to forget all about previous builds). Is there a quick way to accomplish this (with a … Read more