If your test runner insists that you have a marker attribute for a method that allows you to execute it, all you can do is follow this requirement. (As another answer says, TD.NET works with you on this)
So, assuming you need to have some class of FactAttributedistributed type, the next interception point is to dynamically cause the task to Skipped at runtime a la my examples in this xUnit.net function request
, , devenv.exe , , . , Resharper , , ? (TeamCity [ , R #] - . xunit MSBuild .)