| Author |
Message |
   
Twitter
Side Hero Username: Twitter
Post Number: 7004 Registered: 10-2009 Posted From: 151.191.175.204
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 04:17 pm: |
    |
Jalsa:pass it as a parameter from the batch file like msbuild /p:Configuration:QA
we are passing in this way. |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15519 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 03:54 pm: |
    |
Twitter:<qa> <add> ... </qa> <pprod> <add> ... </pprod>
bro, chinna question. ee QA, pprod anedhi VS lo pre-configure chesukovaala leka can i pass it as a parameter from the batch file like msbuild /p:Configuration:QA |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15490 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:37 pm: |
    |
no problem bro. i will try the below. meeku veelunnappud mail cheyandi. |
   
Twitter
Side Hero Username: Twitter
Post Number: 6995 Registered: 10-2009 Posted From: 151.191.175.205
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:35 pm: |
    |
Jalsa:meeku veelaithe jalsa.ccdb at yahoo . com ki kotteyandi
sorry bro aithe intiki velle dhaka aagali i dont have access to any email. cant use work outlook for this. |
   
Twitter
Side Hero Username: Twitter
Post Number: 6994 Registered: 10-2009 Posted From: 151.191.175.204
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:20 pm: |
    |
yeah naa example lo end point and sample url undhi adhi copy avatledhu .. |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15487 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:20 pm: |
    |
meeku veelaithe jalsa.ccdb at yahoo . com ki kotteyandi |
   
Twitter
Side Hero Username: Twitter
Post Number: 6993 Registered: 10-2009 Posted From: 151.191.175.204
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:19 pm: |
    |
app config file -------------- <?xml> <configuration> <configsections> <section> </configsections> </configuration> |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15486 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:19 pm: |
    |
Twitter:
thanks bro. idhey raasthunna ippudu. adento xml code ikkada edutuntey cut ayipothundhi |
   
Twitter
Side Hero Username: Twitter
Post Number: 6992 Registered: 10-2009 Posted From: 151.191.175.204
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:18 pm: |
    |
sorry app config file is not copied properly app config file -------------- <?xml> <configuration> <configsections> <section> </configsections> </configuration> |
   
Twitter
Side Hero Username: Twitter
Post Number: 6991 Registered: 10-2009 Posted From: 151.191.175.204
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 01:17 pm: |
    |
Jalsa:exactly same scenario, but different sections pettaledhu. one section, where the values for keys have to be replaced with the values appropriate for that environment.
This sample is for mass update we are doing for one project. we will have all configs in master during deployment that whole section will be mass copied. eg for that app config file -------------- <?xml> <configuration> <configsections> <section> </configsections> </configuration> master config file for deploy project with different sections ------------------------------------------------------------ - <?xml> <configuration> <version>1.0.0</version> <qa> <add> ... </qa> <pprod> <add> ... </pprod> </configuration> msbuild file -------------- <choose> <when> <propertygroup> <env>QA</env> <srv>QAServername</srv> </propertygroup> </when> <when> <propertygroup> <env>PPRD</env> <srv>PPRDServername</srv> </propertygroup> </when> </choose> <target> <XmlMassUpdate ContentFile="$(ProjFolder)\$(ConfigFile)" MergedFile="$(ProjFolder)\_$(ConfigFile)" SubstitutionsFile="$(MASTERCONFIG)" ContentRoot="/configuration" SubstitutionsRoot="/configuration/ $(ENV)/$(SRV)"/> </target> |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15483 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 12:02 pm: |
    |
Twitter:ee scenario match authe cheppu examples ivvataniki try chestha.
exactly same scenario, but different sections pettaledhu. one section, where the values for keys have to be replaced with the values appropriate for that environment. |
   
Twitter
Side Hero Username: Twitter
Post Number: 6990 Registered: 10-2009 Posted From: 151.191.175.206
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 11:59 am: |
    |
Jalsa:great! thanks bro. Separate sections ela peduthunnaro koncham sample ivvagalava if you don't mind. ila separata sections maintain cheyachu gaani, when we add a new service reference, that new one has to be copied into these three sections kadhaa...andhuke during build replace chestey better emo anukunna.
ok here is our scenario. we have huge master config file which has all environments configuration sections separately . yes nuvvandhi correcte edhaina kotha keys vasthe repeat cheyyali each section ee file lo . next build file lo Choose when lo environment ni decide chesi dhanni batti paina cheppina master lo modifications chestham . so QA deplmt jarige tappudu master lo QA section keys theeskoni QA config lo substitue chestham ..alage preprod and so on so forth. ee scenario match authe cheppu examples ivvataniki try chestha. |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15480 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 11:35 am: |
    |
Twitter:memu same config file but different sections maintain chestham so environment related conflicts raaledhu . kaaka pothe konni sections lo ila marchalsi vacchinappudu Target lo <ModifyFile Path="$(Dir)\$(filename)" RegularExpression="keyName="$(INSTANCE)"" NewValue="keyName="$(RegKey)"" Force="true"/> nee scenario substitute cheskovocchu
great! thanks bro. Separate sections ela peduthunnaro koncham sample ivvagalava if you don't mind. ila separata sections maintain cheyachu gaani, when we add a new service reference, that new one has to be copied into these three sections kadhaa...andhuke during build replace chestey better emo anukunna. |
   
Twitter
Side Hero Username: Twitter
Post Number: 6988 Registered: 10-2009 Posted From: 151.191.175.207
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 11:31 am: |
    |
Jalsa:Different environments ki configuration ela change chestunnaru mee project lo? I want to do this during build time, before creating an MSI/
memu same config file but different sections maintain chestham so environment related conflicts raaledhu . kaaka pothe konni sections lo ila marchalsi vacchinappudu Target lo <ModifyFile Path="$(Dir)\$(filename)" RegularExpression="keyName="$(INSTANCE)"" NewValue="keyName="$(RegKey)"" Force="true"/> nee scenario substitute cheskovocchu |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15476 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 11:10 am: |
    |
Twitter:
thanks for replying. I am still in a flux. Different environments ki configuration ela change chestunnaru mee project lo? I want to do this during build time, before creating an MSI/ |
   
Twitter
Side Hero Username: Twitter
Post Number: 6987 Registered: 10-2009 Posted From: 151.191.175.205
Rating: N/A Votes: 0 (Vote!) | | Posted on Wednesday, January 26, 2011 - 11:07 am: |
    |
Jalsa:meeru prev post lo cheppindhi ela use chestunnaru mee project lo? just want to know where elese i can apply
Jalsa bro are you fine with this or need any help |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15425 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 11:54 pm: |
    |
Twitter: this can be anything boss like simple Message text or you can use replacetext with regex.
meeru prev post lo cheppindhi ela use chestunnaru mee project lo? just want to know where elese i can apply |
   
Twitter
Side Hero Username: Twitter
Post Number: 6986 Registered: 10-2009 Posted From: 74.90.13.31
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 11:52 pm: |
    |
Jalsa: bro propertygroup ardhamayindhi kaani, target enti? naa app.config lo endpoint is something like: <endpoint address="http://1.2.3.4:8080/service">> ikkada meeru ichina $(DevIp) ela vadachu?
this can be anything boss like simple Message text or you can use replacetext with regex. |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15417 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 11:33 pm: |
    |
Twitter:<propertygroup> <devip>xx </devip> .. </propertygroup> <target> $(DevIp)/.. </target>
bro propertygroup ardhamayindhi kaani, target enti? naa app.config lo endpoint is something like: <endpoint address="http://1.2.3.4:8080/service">> ikkada meeru ichina $(DevIp) ela vadachu? Thanks for the reply  |
   
Twitter
Side Hero Username: Twitter
Post Number: 6985 Registered: 10-2009 Posted From: 74.90.13.31
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 11:30 pm: |
    |
Jalsa:
sorry for the late reply .yup we can do with FileUpdate or mention <propertygroup> <devip>xx </devip> .. </propertygroup> <target> $(DevIp)/.. </target> |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15381 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 08:53 pm: |
    |
Twitter:
sure, thanks bro. i will wait. actually, i just want to have different ip addresses when building for different environments. I think, MSBuild's <fileupdatetask> will do the job, but will wait for your reply. @Cyber bro, I want to achieve the above without using code |
   
Twitter
Side Hero Username: Twitter
Post Number: 6983 Registered: 10-2009 Posted From: 166.137.139.150
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 08:49 pm: |
    |
Jalsa:
JalsA if I got it right it looks like you are looking for a msbuild command to replace the variables with desired value during deployment, if this is the case I have done something like this recently, right now I'm in the train can't give much info from top of my head I will get back to you in a while. |
   
Cyberabadsinnodu
Junior Artist Username: Cyberabadsinnodu
Post Number: 876 Registered: 02-2010 Posted From: 68.206.116.251
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 08:31 pm: |
    |
Jalsa:refer to property/setting defined
http://www.eggheadcafe.com/software/aspnet/35529442/adding-p roperty--to-the-app-config-file.aspx ఎంత చికాగో యునివర్సిటీ లో చదువుకున్నా చిలక్కొట్టుడికి సరైన ఇంగ్లీషు పదం దొరుకుతుందా..!! |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15371 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 07:16 pm: |
    |
bro adhi kaadhu naaku kaavalsindhi. App.config file lo can we refer to property/setting defined in the same app.config or different file |
   
Pomegranate_life
Comedian Username: Pomegranate_life
Post Number: 1697 Registered: 07-2010 Posted From: 32.97.110.60
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 06:56 pm: |
    |
Jalsa, http://stackoverflow.com/questions/785927/how-to-build-dynam ic-data-entry-forms-in-a-wpf-application |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15370 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 06:37 pm: |
    |
maa WPF application lo, we have lot of web service references. Avi create chesinappud endpoint configuration anthaa App.Config lo create avuthunnai. Now, at build time, i want to change the IP address of that endpoint to QA server address. MSBuild lo XmlMassUpdate task undhi gaani it will replace text for appSettings with a certain "key". e.g. <appSettings> <app key="test" value="dev"/> </appSettings> but endpoint address inko laaga define avuthundhi: <endpoint address="http://172.29.183.188:8080/servicename /> but ee ip address ni XmlMassUpdate tho replace cheyalenu because there is no "key" to this. is there any way i can use/refer a setting defined earlier in app.config here? e.g <endpoint address="http://$(ServerAddress):8080/servicename /> |
   
Jalsa
Moderator Username: Jalsa
Post Number: 15368 Registered: 02-2008
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 25, 2011 - 06:33 pm: |
    |
bro, maa WPF application lo, we have lot of web service references. Avi create chesinappud endpoint configuration anthaa App.Config lo create avuthunnai. Now, at build time, i want to change the IP address of that endpoint to QA server address. MSBuild lo XmlMassUpdate task undhi gaani it will replace text for appSettings with a certain "key". e.g. <appsettings> <app> </appsettings> but endpoint address inko laaga define avuthundhi: <endpoint> but ee ip address ni XmlMassUpdate tho replace cheyalenu because there is no "key" to this. is there any way i can use/refer a setting defined earlier in app.config here? e.g <endpoint> |