Calling .NET experts (Twitter etc)... Chalanachithram.com | Topics | Search
Hide Clipart | Log Out | Register | Edit Profile

Last 30 mins | 1 | 2 | 4 hours     Last 1 | 7 Days

Chalanachithram.com DB » TF Industry related » Archive through January 27, 2011 » Calling .NET experts (Twitter etc) « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this 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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Jalsa:

pass it as a parameter from the batch file like
msbuild /p:Configuration:QA



we are passing in this way.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

no problem bro. i will try the below. meeku veelunnappud mail cheyandi.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

yeah naa example lo end point and sample url undhi adhi copy avatledhu ..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

meeku veelaithe jalsa.ccdb at yahoo . com ki kotteyandi
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

app config file
--------------

<?xml>
<configuration>
<configsections>
<section>
</configsections>
</configuration>
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Twitter:



thanks bro. idhey raasthunna ippudu. adento xml code ikkada edutuntey cut ayipothundhi
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

sorry app config file is not copied properly

app config file
--------------

<?xml>
<configuration>
<configsections>
<section>
</configsections>
</configuration>
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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>
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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=&quot;$(INSTANCE)&quot;" NewValue="keyName=&quot;$(RegKey)&quot;" 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.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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=&quot;$(INSTANCE)&quot;" NewValue="keyName=&quot;$(RegKey)&quot;" Force="true"/>
nee scenario substitute cheskovocchu
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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/
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Jalsa:


bro propertygroup ardhamayindhi kaani, target enti? naa app.config lo endpoint is something like:
&lt;endpoint address="http://1.2.3.4:8080/service"&gt;>

ikkada meeru ichina $(DevIp) ela vadachu?



this can be anything boss like simple Message text or you can use replacetext with regex.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Twitter:

<propertygroup>
<devip>xx </devip>
..
</propertygroup>

<target>
$(DevIp)/..
</target>



bro propertygroup ardhamayindhi kaani, target enti? naa app.config lo endpoint is something like:
&lt;endpoint address="http://1.2.3.4:8080/service"&gt;>

ikkada meeru ichina $(DevIp) ela vadachu?

Thanks for the reply :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Jalsa:



sorry for the late reply .yup we can do with FileUpdate or mention
<propertygroup>
<devip>xx </devip>
..
</propertygroup>

<target>
$(DevIp)/..
</target>
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Jalsa:

refer to property/setting defined


http://www.eggheadcafe.com/software/aspnet/35529442/adding-p roperty--to-the-app-config-file.aspx
ఎంత చికాగో యునివర్సిటీ లో చదువుకున్నా చిలక్కొట్టుడికి సరైన ఇంగ్లీషు పదం దొరుకుతుందా..!!
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

bro adhi kaadhu naaku kaavalsindhi.

App.config file lo can we refer to property/setting defined in the same app.config or different file
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Jalsa,

http://stackoverflow.com/questions/785927/how-to-build-dynam ic-data-entry-forms-in-a-wpf-application
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

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. &lt;appSettings&gt;
&lt;app key="test" value="dev"/&gt;
&lt;/appSettings&gt;

but endpoint address inko laaga define avuthundhi:
&lt;endpoint address="http://172.29.183.188:8080/servicename /&gt;

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 &lt;endpoint address="http://$(ServerAddress):8080/servicename /&gt;
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

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>

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x85e1628){Movie Clipart}
Show / Hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  


Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: