简体   繁体   中英

Where do ASP.NET “website prejects” store default reference/assembly settings for VB/C#?

MY understanding is like this, for the "website type" of projects:

for VB, the default setting for the namespaces and the default setting for references are both stored in C:\\Windows\\Microsoft.Net\\Framework\\V4.0.30319\\Config\\Web.config.

but C# does not seem to use this global web.config file to store its default namespaces and references settings. One evidence is that you see a lot of "using ..." statements at the top of all C# files whereas you don't see many "imports ..." statements at the top of all VB files. So C# stores the namespace settings in individual .cs files, but where does C# store the reference settings then? Or the C# compiler knows all the reference without having to store it somewhere?

It seems to me VB is way more naturally compatible with the whole .NET setup. (I'm quite new to .NET). Thanks.

在C:\\ Program Files \\ Microsoft Visual Studio 10.0 \\ Common7 \\ IDE中搜索WebForm.zip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM