Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
AnswerRe: what are the main steps to develop graphic games Pin
Richard MacCutchan13-Sep-11 2:48
mveRichard MacCutchan13-Sep-11 2:48 
QuestionHow to get value from a config file of other project Pin
NarVish12-Sep-11 23:07
NarVish12-Sep-11 23:07 
AnswerRe: How to get value from a config file of other project Pin
Daniel.Grondal12-Sep-11 23:35
Daniel.Grondal12-Sep-11 23:35 
GeneralRe: How to get value from a config file of other project Pin
NarVish12-Sep-11 23:44
NarVish12-Sep-11 23:44 
GeneralRe: How to get value from a config file of other project Pin
Daniel.Grondal13-Sep-11 0:09
Daniel.Grondal13-Sep-11 0:09 
GeneralRe: How to get value from a config file of other project Pin
NarVish13-Sep-11 1:34
NarVish13-Sep-11 1:34 
GeneralRe: How to get value from a config file of other project Pin
Daniel.Grondal13-Sep-11 1:39
Daniel.Grondal13-Sep-11 1:39 
AnswerRe: How to get value from a config file of other project PinPopular
BobJanova13-Sep-11 0:27
BobJanova13-Sep-11 0:27 
This seems like one of those things which is a bit hard because you shouldn't be doing it. I see a few scenarios where you might think you want this, and an answer to each of them.

The two tasks are part of one overall task, which is to create the files and then work on them.
Solution: make them both part of the same project.
The second task uses files created in the first as input, but is not directly linked.
Solution: put the path in the config of both projects. If the tasks can be run independently, those paths might not be the same. By reading from the config of one project you are forcing that project to be there, even though all you need is the files it created.
The two tasks are loosely coupled (so shouldn't be one project) but expected to be run in sequence in the same location
Solution: either have a controller project which calls one and then the other, passing the path as some sort of parameter (command line would be fine); or, store configuration information in a known common place (e.g. registry, user Local Settings folder, etc) and have both projects refer to that. (Essentially that is a controller but with no code, only data.)


By explicitly reading from an app.config file for another application, you are requiring that that application is present in order to run yours. If Project2 has that sort of requirement on Project1, it should be a part of the same project. My guess is that it doesn't, it only depends on the files Project1 creates, and therefore you should either point it at those files in its own config, or chain the two projects from a controller which sets the location for both of them.
GeneralRe: How to get value from a config file of other project Pin
#realJSOP13-Sep-11 2:25
professional#realJSOP13-Sep-11 2:25 
GeneralRe: How to get value from a config file of other project Pin
BobJanova13-Sep-11 2:49
BobJanova13-Sep-11 2:49 
GeneralRe: How to get value from a config file of other project Pin
#realJSOP13-Sep-11 3:23
professional#realJSOP13-Sep-11 3:23 
AnswerRe: How to get value from a config file of other project Pin
#realJSOP13-Sep-11 2:32
professional#realJSOP13-Sep-11 2:32 
AnswerRe: How to get value from a config file of other project Pin
PIEBALDconsult13-Sep-11 2:40
mvePIEBALDconsult13-Sep-11 2:40 
QuestionHow To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
rasoolfazeli12-Sep-11 3:49
rasoolfazeli12-Sep-11 3:49 
AnswerRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak12-Sep-11 4:33
mveDave Kreskowiak12-Sep-11 4:33 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
rasoolfazeli12-Sep-11 4:49
rasoolfazeli12-Sep-11 4:49 
QuestionRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Luc Pattyn12-Sep-11 5:45
sitebuilderLuc Pattyn12-Sep-11 5:45 
AnswerRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak12-Sep-11 6:24
mveDave Kreskowiak12-Sep-11 6:24 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Luc Pattyn12-Sep-11 7:09
sitebuilderLuc Pattyn12-Sep-11 7:09 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak12-Sep-11 7:57
mveDave Kreskowiak12-Sep-11 7:57 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
rasoolfazeli13-Sep-11 20:30
rasoolfazeli13-Sep-11 20:30 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak14-Sep-11 2:00
mveDave Kreskowiak14-Sep-11 2:00 
Questionexcel Pin
arkiboys12-Sep-11 0:35
arkiboys12-Sep-11 0:35 
AnswerRe: excel Pin
Alan N12-Sep-11 1:26
Alan N12-Sep-11 1:26 
GeneralRe: excel Pin
arkiboys12-Sep-11 2:05
arkiboys12-Sep-11 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.