title: When publishing solution, is it possible to ignore certain projects?
body: <p>We have some projects that are only used in some environments so I would like publishing to skip them.  However, when publishing the whole solution I get the following msbuild error:</p>
  
  <pre><code>"C:\Source\Solution.sln" (default target) (1) -&gt;
  "C:\Source\Project\Project.csproj" (default target) (51) -&gt;
  (ValidatePublishProfileSettings target) -&gt;
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4253,5): error : The value for PublishProfile is set to 'Sta
  ge', expected to find the file at 'C:\Source\Project\Properties\PublishProfiles\Stage.pubxml' but it could not be found. [C:\Source\Project\Project.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4260,4): error : PublishProfile(Stage) is set. But the $(Web
  PublishMethod) does not have a valid value.  Current Value is "". [C:\Source\Project\Project.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4267,5): error : Target ValidatePublishProfileSettings Faile
  d [C:\Source\Project\Project.csproj]
  </code></pre>
  
  <p>Is there any way to ignore the project when publishing the solution so I don't get build errors?</p>