Expression Blend does not allow you to choose a solution configuration / platform

Our solution is built using Release | x86; however, when our designers try to build using Blend, they are forced to use any CPU that we don’t want to add, because it is going to change the behavior. I checked version 4 and it does not seem to address this issue.

Can I specify a solution configuration / platform when using Blend? Any workarounds?

+3
source share
1 answer

It looks like you edited your .csproj files manually, instead of using the GUI. Unlike Visual Studio, Blend reads the platform and configuration from each project file, not from the solution file. Your project files probably start as follows:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

This is the standard configuration for the project and what Blend reads. Modify each .csproj to specify Release and x86 as the default configuration, and Blend should respect it.

From what I see, there is no way to specify this configuration in Blend - it always selects the default value.

+3
source

Source: https://habr.com/ru/post/1744549/


All Articles