Skip to content

Commit

Permalink
fix(sdk-dotnet): Correct project path
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Nov 4, 2024
1 parent b6c2957 commit 926b9a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
id: increment_version
shell: pwsh
run: |
$projectFile = Get-ChildItem -Path . -Filter *.csproj | Select-Object -First 1
$projectFile = Get-ChildItem -Path ./src -Filter *.csproj | Select-Object -First 1
if (-not $projectFile) {
throw "No .csproj file found in current directory"
}
Expand All @@ -115,7 +115,7 @@ jobs:
# Update project file
$xml.Project.PropertyGroup.Version = $newVersion
$xml.Save($xmlPath)
$xml.Save($projectFile.FullName)
# Set output for later steps
echo "new_version=$newVersion" >> $GITHUB_OUTPUT
Expand Down
6 changes: 3 additions & 3 deletions sdk-dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dotnet add package Inferable

To create a new Inferable client, use the `InferableClient` class:

```csharp
```cs
using Inferable;

var options = new InferableOptions
Expand All @@ -45,7 +45,7 @@ If you don't provide an API key or base URL, it will attempt to read them from t

Register a "sayHello" [function](https://docs.inferable.ai/pages/functions). This file will register the function with the [control-plane](https://docs.inferable.ai/pages/control-plane).

```csharp
```cs
public class MyInput
{
public string Message { get; set; }
Expand Down Expand Up @@ -112,7 +112,7 @@ The following code will create an [Inferable run](https://docs.inferable.ai/page
> - in the [playground UI](https://app.inferable.ai/) via `inf app`
> - in the [CLI](https://www.npmjs.com/package/@inferable/cli) via `inf runs list`
```csharp
```cs
var run = await inferable.CreateRunAsync(new CreateRunInput
{
Message = "Say hello to John",
Expand Down
1 change: 0 additions & 1 deletion sdk-dotnet/tests/Inferable.Tests/InferableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ async public void Inferable_Run_E2E()
}
}
}

//TODO: Test transient /call failures
//TODO: TEST /machines failures
}

0 comments on commit 926b9a5

Please sign in to comment.