Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 787 Bytes

File metadata and controls

14 lines (13 loc) · 787 Bytes

Running Examples

  1. Use git to clone the OCI SDK for .NET repository:
git clone https://github.com/oracle/oci-dotnet-sdk.git
  1. Create a configuration file in your home directory (~/.oci/config). See SDK and Tool Configuration for more information.
  2. Change directory into the .NET Examples folder. For example:
cd ./oci-dotnet-sdk/Examples/
  1. All of the examples require the environment variable OCI_COMPARTMENT_ID populated with the tenant ID or compartment ID. More environment variables might be required depending on the example.
  2. From the command line, run dotnet run . The Audit Example runs by default.
  3. To run any other example, make sure it has a Main() function.