In Visual Studio (Visual C++)Project setting we able see these settings:
I want to know when to use these settings appropriately and what the main differences between these settings and how they affect on visual c++ linker and build time?
#using
is for C++/CLI, not for standard C++.
A directory to search to resolve file references passed to the
#using
Directive directive.
assembly_A.cpp
// compile with: /clr /LD
public ref class A {};
assembly_B.cpp
// compile with: /clr /LD
#using "assembly_A.dll"
public ref class B {
public:
void Test(A a) {}
void Test() {}
};
The option /AI[path]
would set a search path where assembly_A.dll is placed.
More official info: VCCLCompilerTool.AdditionalUsingDirectories Property