Skip to content

Commit 41bd61e

Browse files
committed
Add Microsoft.SemanticKernel packages directly into the repo
1 parent 99e3208 commit 41bd61e

12 files changed

+20
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Temporarily directly include packages from Microsoft.SemanticKernel until
2+
# the sqlite-vec integration ships publicly.
3+
!*.nupkg

src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/NuGet.config.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<!-- Clear to avoid inheriting from the repo root NuGet.config -->
1313
<clear />
1414
<add key="local-shipping" value="${ArtifactsShippingPackagesDir}" />
15+
<add key="additional-packages" value="${AdditionalPackagesDir}" />
1516
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
1617
</packageSources>
1718
<disabledPackageSources>

test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Infrastructure/TemplateExecutionTestClassFixtureBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public async Task RestoreProjectAsync(Project project)
9595
var restoreResult = await new DotNetCommand("restore")
9696
.WithWorkingDirectory(project.StartupProjectFullPath)
9797
.WithEnvironmentVariable("LOCAL_SHIPPING_PATH", WellKnownPaths.LocalShippingPackagesPath)
98+
.WithEnvironmentVariable("ADDITIONAL_PACKAGES_PATH", WellKnownPaths.AdditionalPackagesPath)
9899
.WithEnvironmentVariable("NUGET_PACKAGES", WellKnownPaths.NuGetPackagesPath)
99100
.ExecuteAsync(OutputHelper);
100101
restoreResult.AssertSucceeded();

test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Infrastructure/WellKnownPaths.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ internal static class WellKnownPaths
1919
public static readonly string TemplateInstallNuGetConfigPath;
2020
public static readonly string TemplateTestNuGetConfigPath;
2121
public static readonly string LocalShippingPackagesPath;
22+
public static readonly string AdditionalPackagesPath;
2223
public static readonly string NuGetPackagesPath;
2324

2425
static WellKnownPaths()
@@ -40,6 +41,7 @@ static WellKnownPaths()
4041
"Release";
4142
#endif
4243
LocalShippingPackagesPath = Path.Combine(RepoRoot, "artifacts", "packages", BuildConfigurationFolder, "Shipping");
44+
AdditionalPackagesPath = Path.Combine(TemplateFeedLocation, "AdditionalPackages");
4345
NuGetPackagesPath = Path.Combine(TemplateSandboxOutputRoot, "packages");
4446
}
4547

0 commit comments

Comments
 (0)