Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Update Web.config file Dynamically using DTE in VSExtention

$
0
0

Hi Team,

I have update Web.config file Dynamically using DTE but its Work only When Web.config file open. if Web.config File Close its throw Argument incrorrect Exception.

doc = dte.Documents.Item(dte.Solution.FindProjectItem("web.config").Name);

 doc.ReplaceText("assemblyName","newAssemblyName");

  I need to update Web.config file Dynamically using DTE if file state open or Close. after update file it's not showing reload dialoguebox.Please any one tell me sloution.

Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>