Files
agent-framework/dotnet/src/Shared/Demos
T

Demos

Contains a helper that adds an override System.Environment class to a project. This override version has an enhanced GetEnvironmentVariable method that prompts the user to enter a value if the environment variable is not set.

The code is still fully copyable to another project. These sample projects just allow for a simplified user experience for users who are new and just getting started.

To use this in your project, add the following to your .csproj file:

<ItemGroup>
  <Using Include="SampleHelpers.SampleEnvironment" Alias="Environment" />
</ItemGroup>

<ItemGroup>
  <Compile Include="$(MSBuildThisFileDirectory)\..\src\Shared\Demos\*.cs" LinkBase="" Visible="false" />
</ItemGroup>