Skip to content

Commit c3b2a81

Browse files
Cheesebarondevlead
authored andcommitted
Switch FilePaths to DirectoryPaths in Agent Info
1 parent 7326504 commit c3b2a81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Cake.Common/Build/AzurePipelines/Data/AzurePipelinesAgentInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public AzurePipelinesAgentInfo(ICakeEnvironment environment)
2828
/// The local path on the agent where all folders for a given build definition are created.
2929
/// </value>
3030
/// <example><c>c:\agent\_work\1</c>.</example>
31-
public FilePath BuildDirectory => GetEnvironmentString("AGENT_BUILDDIRECTORY");
31+
public DirectoryPath BuildDirectory => GetEnvironmentString("AGENT_BUILDDIRECTORY");
3232

3333
/// <summary>
3434
/// Gets the directory the agent is installed into. This contains the agent software.
@@ -38,15 +38,15 @@ public AzurePipelinesAgentInfo(ICakeEnvironment environment)
3838
/// The directory the agent is installed into.
3939
/// </value>
4040
/// <example><c>c:\agent\</c>.</example>
41-
public FilePath HomeDirectory => GetEnvironmentString("AGENT_HOMEDIRECTORY");
41+
public DirectoryPath HomeDirectory => GetEnvironmentString("AGENT_HOMEDIRECTORY");
4242

4343
/// <summary>
4444
/// Gets the working directory for this agent.
4545
/// </summary>
4646
/// <value>
4747
/// The working directory for this agent.
4848
/// </value>
49-
public FilePath WorkingDirectory => GetEnvironmentString("AGENT_WORKFOLDER");
49+
public DirectoryPath WorkingDirectory => GetEnvironmentString("AGENT_WORKFOLDER");
5050

5151
/// <summary>
5252
/// Gets the ID of the agent.
@@ -98,7 +98,7 @@ public AzurePipelinesAgentInfo(ICakeEnvironment environment)
9898
/// <value>
9999
/// The task directory.
100100
/// </value>
101-
public FilePath ToolsDirectory => GetEnvironmentString("AGENT_TOOLSDIRECTORY");
101+
public DirectoryPath ToolsDirectory => GetEnvironmentString("AGENT_TOOLSDIRECTORY");
102102

103103
/// <summary>
104104
/// Gets a value indicating whether the current agent is a Microsoft hosted agent.

0 commit comments

Comments
 (0)