EV: .NET 学习

1. Get location of the version of .NET and type of platform (e.g. 64 bit). A typical example, might be: C:\Windows\Microsoft.NET\Framework\v4.0.30319.

In your C# application code, the following will return the location:
System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()

More ...

 2. Syntax of type attribute in config file.

type="<TypeFullName>, <AssemblyName>, <Other assembly properties>"

--------------------------------------------------------------------

<configuration>
    <system.codedom>
        <compilers>
            <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/optimize" warningLevel="1" />
        </compilers>
    </system.codedom>
</configuration>

--------------------------------------------------------------------

More ...

 

posted on 2015-03-01 20:25  weihongji  阅读(159)  评论(0编辑  收藏  举报

导航