zoukankan      html  css  js  c++  java
  • C#之app.config、exe.config和vshost.exe.config作用区别

    vshost.exe.config是程序运行时的配置文本
    exe.config是程序运行后会复制到vshost.exe.config
    app.config是在vshost.exe.config和exe.config没有情况起作用,从app.config复制到exe.config再复制到vshost.exe.config

    写配置文件都是写到exe.config文件中了,app.config不会变化。
    app.config只在exe.config丢失的情况下在开发环境中重新加载app.config,vshost.exe.config和exe.config会自动创建内容跟app.config一样。

    vshost.exe.config和app.config两个文件可不要,但exe.config文件不可少。

    网络上有很多文章是讲app.config读写方法的,可是事实上这个文件程序就不能改变它。

  • 相关阅读:
    8月18号心得
    题解
    考试题
    1055心得
    1055解
    1055题
    心得
    考试三道题
    2017.8.1 居然是倒数第二天了……
    1055
  • 原文地址:https://www.cnblogs.com/wxylog/p/6879156.html
Copyright © 2011-2022 走看看