title: Loading design-time WPF resources in Visual Studio through .csproj
body: <p>In Expression Blend 4, it's possible to load design-time resources by editing your project file. Here's an example of what that would look like:</p>
  
  <pre><code>&lt;Page Include="Properties\DesignTimeResources.xaml"
      Condition="'$(DesignTime)'=='true'
      OR ('$(SolutionPath)'!='' AND Exists('$(SolutionPath)')
      AND '$(BuildingInsideVisualStudio)'!='true'
      AND '$(BuildingInsideExpressionBlend)'!='true')"&gt;
      &lt;Generator&gt;MSBuild:Compile&lt;/Generator&gt;
      &lt;SubType&gt;Designer&lt;/SubType&gt;
      &lt;ContainsDesignTimeResources&gt;true&lt;/ContainsDesignTimeResources&gt;
  &lt;/Page&gt;
  </code></pre>
  
  <p>Now I've been trying to get the same thing working in Visual Studio 2010 without success. Has anyone gotten design-time data to load like this in Visual Studio or is this feature only supported using Expression Blend?</p>