473,396 Members | 1,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Configurations, do they work properly?

I've been trying to create this "deploy" configuration and I've had to keep
deleting it then recreating again for one reason or another.

I assumed that deriving it from the "release" configuration ,when I create
it in configuration manager, would copy the exact settings across to my new
"deploy" configuration.
When I look at a project's Build and Advanced properties (from a selected
project's properties\configuration screen) I expect to see all the fields as
copies of the "release" configuration but they're not.
On top of that, older configurations that I deleted a while ago, appear in
the "Configuration" combo box at the top of the project property page.

Is there any way I can delete old configurations completely so that I can
start again with a clean sheet?

Claire
Nov 16 '05 #1
5 1256
Yes,
If I create a completely new configuration with a new name and copy it from
the "release" configuration then all my settings are correct and my solution
builds with no problems.
So it looks as if once you create a configuration, then even if it's deleted
from config manager, the old data isn't overwritten and it's there waiting
to break your program at another time. This is a real nuisance as I just
want to call my deployment "deploy" and not have to think of different
names.
Nov 16 '05 #2
You could try manually editing the *.sln and *.csproj in Notepad. I know this
doesn't make it any easier, but you can use the same name then.

READ: I haven't tried it, so be sure to make a backup. Here are the sections
that I see that you may need to delete.

In The *.csproj

<Config
Name = "Debug"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "DEBUG;TRACE"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>

In The *.sln

{365B5639-E9E2-4236-A24A-EA4EDEEE03D7}.Debug.ActiveCfg = Debug|.NET
{365B5639-E9E2-4236-A24A-EA4EDEEE03D7}.Debug.Build.0 = Debug|.NET

Once again, I haven't tried it, so be carfeul and make backups. Also, let us
know how it worked.

-Josh

"Claire" wrote:
Yes,
If I create a completely new configuration with a new name and copy it from
the "release" configuration then all my settings are correct and my solution
builds with no problems.
So it looks as if once you create a configuration, then even if it's deleted
from config manager, the old data isn't overwritten and it's there waiting
to break your program at another time. This is a real nuisance as I just
want to call my deployment "deploy" and not have to think of different
names.

Nov 16 '05 #3
Thanks Josh.
It's my "deploy" configuration that's at fault btw. Aside from that, I did a
search through the .sln file and only found the "Debug","Release" and
"DeployComms" configurations (these I hoped would be there). There was no
"deploy"
In the .csproj file however I found that "Deploy", "DeployVersion" and
"DeployComms" were all present despite previously deleting "Deploy" and
"DeployVersion" configurations. So I deleted these sections manually and it
all works ok. Thanks Josh.

I still had a problem tho'. The 3 configs in my solution built fine but I
still wanted my configuration to be named "deploy". So I created another
one, telling it to copy the "release" configuration. I got build errors that
I don't get in the other configs. They're errors about needing to be built
in unsafe mode or that I need to add references to certain assemblies. My
"DeployVersion" config was created in the same way and works fine. Anyway, I
renamed "DeployVersion" to "Deploy" and I'm happy.
Nov 16 '05 #4


Hello,

I wish to automate the generation of .sln & .vcproj files.

To this end I am looking for descriptions of the file formats and their
associated schemas for VS 2003.

I have tried to find this kind of information in the MSDN library and
have also tried the online chat

support but to no avail.

Any help will be greatly appreciated.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5
No, it didn't work properly in the end. I think the user configurations are
copied across to all .csproj files and they've lost synchronization with
each other. Im sure M/S have a good reason for doing it like this but it
doesn't work reliably.

thanks anyway.
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kevin McNeish [C# MVP] | last post by:
Does anyone know how to set the project constants property for "All Configurations" programmatically? The following code does this by setting each project individually: foreach...
0
by: Atara | last post by:
Is there a way I can use different references for different configurations of my project? I have different project (and solution) configurations. Do I have to 'Add reference' of all the dll's I...
2
by: NickP | last post by:
Hi there, I have a solution that I have created quite a few different configurations for through it's lifetime. Even though I have removed them from the solution they get left in the individual...
1
by: Chris Curvey | last post by:
Hi all, I've apparently tied myself up a bit using the logging package. In my project, I have a core set of model and controller classes that set up their logging using logging.fileConfig()....
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.