Blend 5 Preview - Build Configuration
-
Tuesday, December 04, 2012 11:52 PM
Hello,
In the Blend 5 Preview how can I specify that I want to build using the 'Debug' build configuration? When I open the solution (a WPF executable) in VS 2012 it correctly identifies 'Debug' as the Active build configuration and builds to the bin\Debug directories as expected; however, opening the solution in Blend 5 Preview and building uses the 'Release' configuration and thus builds to bin\Release. Since VS 2012 works correctly I believe the solution is configured correctly so I'm puzzled as to what Blend 5 Preview is doing.
NOTE: I do not have any PLATFORM environment variable set.
Any advice would be appreciated, I wish that a Configuration selector were available in Blend 5 but I can only dream :)
Thanks,
Jason
All Replies
-
Wednesday, December 05, 2012 1:17 AMModerator
Blend uses basically the same thing as typing msbuild from the command line under the hood. Is the default build config set to release?
A default project has lines like this in the .csproj file:
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>That sets the default config to release if it isn't set.
Could you pos tthe .csproj file?
I would also try opening a VS command prompt and typing "msbuild yoursln.sln" or "msbuild yourproj.csproj" and see what gets built.
-
Wednesday, December 05, 2012 2:57 PM
Hey Chuck,
Thanks so much for the reply! This morning I noticed my machine required a reboot due to Windows Updates, after rebooting Blend is now back to building Debug as expected. Thanks for the information, it is very helpful!
Jason

