Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sdk/cs/src/Microsoft.AI.Foundry.Local.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<RepositoryType>git</RepositoryType>

<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<RuntimeIdentifiers>win-x64;win-arm64;linux-x64;osx-arm64</RuntimeIdentifiers>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
Expand Down Expand Up @@ -107,6 +108,10 @@
<PackageReference Include="Microsoft.AI.Foundry.Local.Core.WinML" Version="$(FoundryLocalCoreVersion)" />
</ItemGroup>

<ItemGroup Condition="'$(UseWinML)' != 'true'">
<PackageReference Include="Microsoft.AI.Foundry.Local.Core" Version="$(FoundryLocalCoreVersion)" />
</ItemGroup>

<Target Name="DumpValues" BeforeTargets="Build">
<Message Importance="Normal" Text="FoundryLocalCoreVersion: $(FoundryLocalCoreVersion)" />
<Message Importance="Normal" Text="RuntimeIdentifiers: $(RuntimeIdentifiers)" />
Expand Down
1 change: 0 additions & 1 deletion sdk/cs/test/FoundryLocal.Tests/AudioClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace Microsoft.AI.Foundry.Local.Tests;
using System.Threading.Tasks;


[SkipUnlessIntegration]
internal sealed class AudioClientTests
{
private static IModel? model;
Comment thread
prathikr marked this conversation as resolved.
Expand Down
1 change: 0 additions & 1 deletion sdk/cs/test/FoundryLocal.Tests/ChatCompletionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace Microsoft.AI.Foundry.Local.Tests;
using Betalgo.Ranul.OpenAI.ObjectModels.ResponseModels;
using Betalgo.Ranul.OpenAI.ObjectModels.SharedModels;

[SkipUnlessIntegration]
internal sealed class ChatCompletionsTests
{
private static IModel? model;
Expand Down
1 change: 0 additions & 1 deletion sdk/cs/test/FoundryLocal.Tests/EmbeddingClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Microsoft.AI.Foundry.Local.Tests;

using System.Threading.Tasks;

[SkipUnlessIntegration]
internal sealed class EmbeddingClientTests
{
private static IModel? model;
Expand Down
1 change: 0 additions & 1 deletion sdk/cs/test/FoundryLocal.Tests/EndToEnd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Microsoft.AI.Foundry.Local.Tests;
using System;
using System.Threading.Tasks;

[SkipUnlessIntegration]
internal sealed class EndToEnd
{
// end-to-end using real catalog. run manually as a standalone test as it alters the model cache.
Expand Down
1 change: 0 additions & 1 deletion sdk/cs/test/FoundryLocal.Tests/FoundryLocalManagerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace Microsoft.AI.Foundry.Local.Tests;
using Microsoft.AI.Foundry.Local;
using Microsoft.AI.Foundry.Local.Detail;

[SkipUnlessIntegration]
public class FoundryLocalManagerTests
{
[Test]
Expand Down
3 changes: 0 additions & 3 deletions sdk/cs/test/FoundryLocal.Tests/LiveAudioTranscriptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public async Task CoreErrorResponse_TryParse_TransientError()
// --- Session state guard tests ---

[Test]
[SkipUnlessIntegration]
public async Task AppendAsync_BeforeStart_Throws()
{
await using var session = new LiveAudioTranscriptionSession("test-model");
Expand All @@ -153,7 +152,6 @@ public async Task AppendAsync_BeforeStart_Throws()
}

[Test]
[SkipUnlessIntegration]
public async Task GetTranscriptionStream_BeforeStart_Throws()
{
await using var session = new LiveAudioTranscriptionSession("test-model");
Expand All @@ -177,7 +175,6 @@ public async Task GetTranscriptionStream_BeforeStart_Throws()
// --- E2E streaming test with synthetic PCM audio ---

[Test]
[SkipUnlessIntegration]
public async Task LiveStreaming_E2E_WithSyntheticPCM_ReturnsValidResponse()
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>

<!-- Ensure native DLLs are flat in the output for net8.0 (non-WinML) so that
the Core DLL can find onnxruntime.dll in its own directory, eliminating
the DLL resolution mismatch that surfaces the CompileApi bug. -->
<PropertyGroup Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp' And '$(UseWinML)' != 'true'">
<RuntimeIdentifier>$(NETCoreSdkRuntimeIdentifier)</RuntimeIdentifier>
</PropertyGroup>

<PropertyGroup Condition="'$(UseWinML)'=='true'">
<TargetFrameworks>net8.0-windows10.0.26100.0;</TargetFrameworks>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
Expand Down
19 changes: 0 additions & 19 deletions sdk/cs/test/FoundryLocal.Tests/SkipInCIAttribute.cs

This file was deleted.

20 changes: 0 additions & 20 deletions sdk/cs/test/FoundryLocal.Tests/SkipUnlessIntegrationAttribute.cs

This file was deleted.

34 changes: 0 additions & 34 deletions sdk/cs/test/FoundryLocal.Tests/SkipUnlessIntegrationTests.cs

This file was deleted.

Loading