哪里是machine.config中?machine、config

2023-09-02 20:41:56 作者:且行且珍惜

我想申请一个变化,这样我可以用我的C#3.5的应用程序服务器GC设置 - 我可以做到这一点通过编辑 machine.config的文件

唯一的问题是我不知道那是。

如何才能找到这个文件的可重复的方式在多个不同的机器上的路径

解决方案

32位

 %WINDIR% Microsoft.NET 框架 [版本]  CONFIG  machine.config中
 

64位

 %WINDIR% Microsoft.NET  Framework64  [版本]  CONFIG  machine.config中
 

[版本] 应等于 V1.0.3705 V1.1.4322 V2.0.50727 v4.0.30319

3.0 V3.5 只包含额外的组件,以 V2.0.50727 所以应该没有配置 machine.config的 v4.5.x V4.6 保存在 v4.0.30319

Machine.config 和 Web.config

I want to apply a change so That I can use Server GC settings for my C# 3.5 app - I can do that by editing the machine.config file.

The only problem is I do not know where that is.

How can I find the path of this file in a repeatable way across a number of different machines

解决方案

32-bit

%windir%Microsoft.NETFramework[version]configmachine.config

64-bit

%windir%Microsoft.NETFramework64[version]configmachine.config 

[version] should be equal to v1.0.3705, v1.1.4322, v2.0.50727 or v4.0.30319.

v3.0 and v3.5 just contain additional assemblies to v2.0.50727 so there should be no configmachine.config. v4.5.x and v4.6 are stored inside v4.0.30319.

 
精彩推荐
图片推荐