| Question: What is purpose of Assembly Linker or define SDK Tool in .NET Framework? Answer: In .NET whole the working should be with the helps of DLLs.So all of Visual Studio .Net compilers gernate assemblies or u can say dll.If we want to create an assembly with manifest of a module.We can also put this assembly in seprate file.This AL tol gernate a file with an assembly manifest from modules or resources fles.The syntax of using Al.exe is al [sources] [options] This tool helps in creating multi-file assembly outside Visual Studio .Net .This multi file can contain modules that are written in diffrenet langauage in one application. Question: Can you have two files with the same file name in GAC? Answer: GAC is just a Folder that contains .dll that have strong name.We can say that GAC is a very special folder, and it is not possible two place two files with the same name into a Windows folder,But GAC differentiates by version number as well, so it’s possible for MyApp.dll and MyApp.dll to co-exist in GAC if the first one is version 1.0.0.0 and the second one is 1.1.0.0. |
Answer: The GACPicker class allows the user to select an assembly from the Global Assembly Cache. It does this by looking at the filesystem representation of the GAC, since there appears to be no actual API in the current .NET environment.
Question: What do u mean by Satellite Assemblies ?
Answer: The assemblies which contains only culture information are known as satellite assemblies.This assembly is used to get language specific resources for an application .
Question: What’s the difference between private and shared assembly?
Answer: Privateassembly is used inside an application only and does not have
to be identified by a strong name.
Shared assembly can be used by multiple applications and has to have a strong name.
Question: What do you know about .NET assemblies?
Answer: Assemblies are the smallest units of versioning and deployment in the .NET application. Assemblies are also the building blocks for programs such as Web services, Windows services, serviced components, and .NET remoting applications.
Questions:-What is Version Number and Culture in Assembly Manifest ?
Answer:- Version number:- A major and minor version number, and a revision and build number. The common language runtime uses these numbers to enforce version policy.Means we can say it’s a primary key.
Culture:- This relates to Satellite assembly. This information should be used only to Pick an assembly as a satellite assembly containing culture- or language-specific information. (We can also that assembly with culture information is automatically assumed to be a satellite assembly.)
Questions:-What do you know about BCL?
Answer:- The BCL (Base Class Library) is a combination of classes or we can say that it’s a library of functionalities and types available to all languages that used in .NET Framework. To make the programmer job more easier dot net gave a advantage to includes the BCL in order to collect a large number of common functions, just like to read a file and write to file, graphic rendering, database interaction, and XML document manipulation at one place . The scope of this is large and standard libraries for most other languages, including C++, and would be comparable in scope to the standard libraries is just like Java. The BCL is sometimes incorrectly referred to as the Framework Class Library (FCL), which is a superset including the Microsoft namespaces.
Question: What’s a strong name ?
Answer: A strong name includes the name of the assembly, version number, culture identity, and a public key token.
Question: Whats an assembly ?
Answer: Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly.
Question: How can you debug failed assembly binds ?
Answer: Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched.
Question: Where are shared assemblies stored ?
Answer: Global assembly cache.
Question: How can you tell the application to look for assemblies at the locations other than its own install ?
Answer: Use the directive in the XML .config file for a given application.
should do the trick. Or you can add additional search paths in the Properties box of the deployed application.
Question: Where’s global assembly cache located on the system ?
Answer: Usually C:\winnt\assembly or C:\windows\assembly.
Question: How do you specify a custom attribute for the entire assembly (rather than for a class) ?
Answer: Global attributes must appear after any top-level using clauses and before the first type or namespace declarations. An example of this is as follows:
using System;
[assembly : MyAttributeClass] class X {}
Note that in an IDE-created project, by convention, these attributes are placed in AssemblyInfo.cs.
Question: What is delay signing ?
Answer:Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the development process is complete and the component or assembly is ready to be deployed. This process enables developers to work with shared assemblies as if they were strongly named, and it secures the private key of the signature from being accessed at different stages of development.
No comments:
Post a Comment