What tool generates Settings.Designer.cs?

  • Thread starter Thread starter Frank Rizzo
  • Start date Start date
F

Frank Rizzo

Hello, I am trying to automate deployment of the same project to several
servers in one shot (e.g. dev, qa, etc...). Depending on the server,
the app should access a different web service. The web service seems to
be defined in the Settings.Designer.cs (which is a generated file). I
am wondering which tool generates this file.

Thanks.
 
Hi Frank,

That file is generated by SettingsSingleFileGenerator and it shouldn't be
modifed.
Instead you should consider alternative ways, such as user-scoped settings
or putting url in the user.config file or something like that.
 
I don't understand why you say it shouldn't be modified. It is
well-documented how to make your own. Personally, I like this example of
how to do it:

http://www.drewnoakes.com/snippets/WritingACustomCodeGeneratorToolForVisualStudio/


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Miha Markic said:
Hi Frank,

That file is generated by SettingsSingleFileGenerator and it shouldn't be
modifed.
Instead you should consider alternative ways, such as user-scoped settings
or putting url in the user.config file or something like that.

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Frank Rizzo said:
Hello, I am trying to automate deployment of the same project to several
servers in one shot (e.g. dev, qa, etc...). Depending on the server, the
app should access a different web service. The web service seems to be
defined in the Settings.Designer.cs (which is a generated file). I am
wondering which tool generates this file.

Thanks.
 
I was trying to say that the generated file shouldn't be manually modifed.
Sorry for the confusion :-)

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Nicholas Paldino said:
I don't understand why you say it shouldn't be modified. It is
well-documented how to make your own. Personally, I like this example of
how to do it:

http://www.drewnoakes.com/snippets/WritingACustomCodeGeneratorToolForVisualStudio/


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Miha Markic said:
Hi Frank,

That file is generated by SettingsSingleFileGenerator and it shouldn't be
modifed.
Instead you should consider alternative ways, such as user-scoped
settings or putting url in the user.config file or something like that.

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Frank Rizzo said:
Hello, I am trying to automate deployment of the same project to several
servers in one shot (e.g. dev, qa, etc...). Depending on the server,
the app should access a different web service. The web service seems to
be defined in the Settings.Designer.cs (which is a generated file). I
am wondering which tool generates this file.

Thanks.
 
Miha said:
I was trying to say that the generated file shouldn't be manually modifed.
Sorry for the confusion :-)

How do I invoke this code generation tool from the command line?
I don't see any SettingsSingleFileGenerator.exe files.
 
You can't easily afaik - this is a COM component invoked through certain
inerface(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top