In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name – across all configurations. I would like to compile my application as:
MyAppDebug – in debug mode and just MyApp – in release mode
Does anyone know if this is possible?
Edit:
It seems some people are questioning the reasoning behind the question, so I’ll explain a little further:
I’m working on a Silverlight application which gets automatically uploaded to our test site when I to a ‘build solution’. The trouble is, the test team are now testing the online version, whilst I work on a new one. So, I want to have a url like .\MyApp.html for the regular version that the QA team will test and then .\MyApp.html?version=debug for the current version that I’m working on.
I’ve managed to achieve what I was after by using a post-build script:
My ftp script basically accepts an optional parameter at the end which is what to upload the file as. So on my local machine the filenames are always the same, but in debug mode we upload it with ‘Debug’ at the end of the filename. Now I can choose in my webpage which version to show.