|
1 | 1 | <Project> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | | - <_ChatWithCustomDataWebContentRoot>$(MSBuildThisFileDirectory)Microsoft.Extensions.AI.Templates\src\ChatWithCustomData\ChatWithCustomData.Web-CSharp\</_ChatWithCustomDataWebContentRoot> |
| 4 | + <!-- |
| 5 | + Configures which chat template variant to use when debugging locally. |
| 6 | + Options are: |
| 7 | + - singleproject |
| 8 | + - aspire |
| 9 | + --> |
| 10 | + <_LocalChatTemplateVariant>aspire</_LocalChatTemplateVariant> |
| 11 | + |
| 12 | + <_ChatWithCustomDataContentRoot>$(MSBuildThisFileDirectory)Microsoft.Extensions.AI.Templates\src\ChatWithCustomData\</_ChatWithCustomDataContentRoot> |
5 | 13 | </PropertyGroup> |
6 | 14 |
|
7 | 15 | <Target Name="ComputeGeneratedContentProperties"> |
8 | 16 | <PropertyGroup> |
9 | 17 | <!-- Define optional pinned versions of certain dependencies. --> |
10 | | - <TemplatePinnedMicrosoftExtensionsAIVersion>9.3.0-preview.1.25161.3</TemplatePinnedMicrosoftExtensionsAIVersion> |
| 18 | + <TemplatePinnedRepoPackagesVersion>9.3.0-preview.1.25161.3</TemplatePinnedRepoPackagesVersion> |
11 | 19 | <TemplatePinnedMicrosoftEntityFrameworkCoreSqliteVersion>9.0.3</TemplatePinnedMicrosoftEntityFrameworkCoreSqliteVersion> |
12 | 20 |
|
13 | | - <!-- By default, use pinned dependency versions. --> |
14 | | - <TemplateUsePinnedMicrosoftExtensionsAIVersion Condition="'$(TemplateUsePinnedMicrosoftExtensionsAIVersion)' == ''">false</TemplateUsePinnedMicrosoftExtensionsAIVersion> |
| 21 | + <!-- By default, don't use pinned dependency versions. --> |
| 22 | + <TemplateUsePinnedRepoPackagesVersion Condition="'$(TemplateUsePinnedRepoPackagesVersion)' == ''">false</TemplateUsePinnedRepoPackagesVersion> |
15 | 23 | <TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion Condition="'$(TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion)' == ''">false</TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion> |
16 | 24 |
|
17 | 25 | <!-- Apply pinned dependency versions if enabled. --> |
18 | | - <TemplateMicrosoftExtensionsAIVersion Condition="'$(TemplateUsePinnedMicrosoftExtensionsAIVersion)' == 'true'">$(TemplatePinnedMicrosoftExtensionsAIVersion)</TemplateMicrosoftExtensionsAIVersion> |
| 26 | + <TemplateRepoPackagesVersion Condition="'$(TemplateUsePinnedRepoPackagesVersion)' == 'true'">$(TemplatePinnedRepoPackagesVersion)</TemplateRepoPackagesVersion> |
19 | 27 | <TemplateMicrosoftEntityFrameworkCoreSqliteVersion Condition="'$(TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion)' == 'true'">$(TemplatePinnedMicrosoftEntityFrameworkCoreSqliteVersion)</TemplateMicrosoftEntityFrameworkCoreSqliteVersion> |
20 | 28 |
|
21 | 29 | <!-- Fall back on default dependency versions if pinned versions were not applied. --> |
22 | | - <TemplateMicrosoftExtensionsAIVersion Condition="'$(TemplateMicrosoftExtensionsAIVersion)' == ''">$(Version)</TemplateMicrosoftExtensionsAIVersion> |
| 30 | + <TemplateRepoPackagesVersion Condition="'$(TemplateRepoPackagesVersion)' == ''">$(Version)</TemplateRepoPackagesVersion> |
23 | 31 | <TemplateMicrosoftEntityFrameworkCoreSqliteVersion Condition="'$(TemplateMicrosoftEntityFrameworkCoreSqliteVersion)' == ''">$(MicrosoftEntityFrameworkCoreSqliteVersion)</TemplateMicrosoftEntityFrameworkCoreSqliteVersion> |
24 | 32 |
|
25 | | - <_TemplateUsingJustBuiltPackages Condition="'$(TemplateMicrosoftExtensionsAIVersion)' == '$(Version)'">true</_TemplateUsingJustBuiltPackages> |
| 33 | + <_TemplateUsingJustBuiltPackages Condition="'$(TemplateRepoPackagesVersion)' == '$(Version)'">true</_TemplateUsingJustBuiltPackages> |
26 | 34 |
|
27 | 35 | <!-- Specify package version variables used in template content. --> |
28 | 36 | <GeneratedContentProperties> |
|
32 | 40 | ArtifactsShippingPackagesDir=$(ArtifactsShippingPackagesDir); |
33 | 41 |
|
34 | 42 | <!-- Package version properties --> |
35 | | - OllamaSharpVersion=$(OllamaSharpVersion); |
36 | | - OpenAIVersion=$(OpenAIVersion); |
| 43 | + AspireVersion=$(AspireVersion); |
| 44 | + AspireAzureAIOpenAIVersion=$(AspireAzureAIOpenAIVersion); |
37 | 45 | AzureAIProjectsVersion=$(AzureAIProjectsVersion); |
38 | 46 | AzureAIOpenAIVersion=$(AzureAIOpenAIVersion); |
39 | 47 | AzureIdentityVersion=$(AzureIdentityVersion); |
| 48 | + AzureSearchDocumentsVersion=$(AzureSearchDocumentsVersion); |
| 49 | + CommunityToolkitAspireHostingOllamaVersion=$(CommunityToolkitAspireHostingOllamaVersion); |
| 50 | + CommunityToolkitAspireHostingSqliteVersion=$(CommunityToolkitAspireHostingSqliteVersion); |
| 51 | + CommunityToolkitAspireMicrosoftEntityFrameworkCoreSqliteVersion=$(CommunityToolkitAspireMicrosoftEntityFrameworkCoreSqliteVersion); |
| 52 | + CommunityToolkitAspireOllamaSharpVersion=$(CommunityToolkitAspireOllamaSharpVersion); |
40 | 53 | MicrosoftEntityFrameworkCoreSqliteVersion=$(TemplateMicrosoftEntityFrameworkCoreSqliteVersion); |
41 | | - MicrosoftExtensionsAIVersion=$(TemplateMicrosoftExtensionsAIVersion); |
| 54 | + MicrosoftExtensionsAIVersion=$(TemplateRepoPackagesVersion); |
| 55 | + MicrosoftExtensionsHttpResilienceVersion=$(TemplateRepoPackagesVersion); |
| 56 | + MicrosoftExtensionsServiceDiscoveryVersion=$(MicrosoftExtensionsServiceDiscoveryVersion); |
| 57 | + MicrosoftSemanticKernelConnectorsAzureAISearchVersion=$(MicrosoftSemanticKernelConnectorsAzureAISearchVersion); |
| 58 | + MicrosoftSemanticKernelConnectorsQdrantVersion=$(MicrosoftSemanticKernelConnectorsQdrantVersion); |
42 | 59 | MicrosoftSemanticKernelCoreVersion=$(MicrosoftSemanticKernelCoreVersion); |
| 60 | + OllamaSharpVersion=$(OllamaSharpVersion); |
| 61 | + OpenAIVersion=$(OpenAIVersion); |
| 62 | + OpenTelemetryVersion=$(OpenTelemetryVersion); |
43 | 63 | PdfPigVersion=$(PdfPigVersion); |
44 | 64 | SystemLinqAsyncVersion=$(SystemLinqAsyncVersion); |
45 | | - AzureSearchDocumentsVersion=$(AzureSearchDocumentsVersion); |
46 | | - MicrosoftSemanticKernelConnectorsAzureAISearchVersion=$(MicrosoftSemanticKernelConnectorsAzureAISearchVersion); |
| 65 | + |
| 66 | + <!-- Other properties --> |
| 67 | + LocalChatTemplateVariant=$(_LocalChatTemplateVariant); |
| 68 | + UsingJustBuiltPackages=$(_TemplateUsingJustBuiltPackages); |
47 | 69 | </GeneratedContentProperties> |
48 | 70 | </PropertyGroup> |
49 | 71 |
|
50 | 72 | <ItemGroup> |
51 | 73 | <GeneratedContent |
52 | | - Include="$(_ChatWithCustomDataWebContentRoot)ChatWithCustomData.Web-CSharp.csproj.in" |
53 | | - OutputPath="$(_ChatWithCustomDataWebContentRoot)ChatWithCustomData.Web-CSharp.csproj" /> |
| 74 | + Include="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.sln.in" |
| 75 | + OutputPath="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.sln" /> |
| 76 | + <GeneratedContent |
| 77 | + Include="$(_ChatWithCustomDataContentRoot)Directory.Build.targets.in" |
| 78 | + OutputPath="$(_ChatWithCustomDataContentRoot)Directory.Build.targets" /> |
| 79 | + <GeneratedContent |
| 80 | + Include="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.Web\ChatWithCustomData-CSharp.Web.csproj.in" |
| 81 | + OutputPath="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.Web\ChatWithCustomData-CSharp.Web.csproj" /> |
| 82 | + <GeneratedContent |
| 83 | + Include="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.Web\Directory.Build.targets.in" |
| 84 | + OutputPath="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.Web\Directory.Build.targets" /> |
| 85 | + <GeneratedContent |
| 86 | + Include="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.AppHost\ChatWithCustomData-CSharp.AppHost.csproj.in" |
| 87 | + OutputPath="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.AppHost\ChatWithCustomData-CSharp.AppHost.csproj" /> |
| 88 | + <GeneratedContent |
| 89 | + Include="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.ServiceDefaults\ChatWithCustomData-CSharp.ServiceDefaults.csproj.in" |
| 90 | + OutputPath="$(_ChatWithCustomDataContentRoot)ChatWithCustomData-CSharp.ServiceDefaults\ChatWithCustomData-CSharp.ServiceDefaults.csproj" /> |
54 | 91 |
|
55 | 92 | <!-- The following content only gets generated when using just-built packages --> |
56 | 93 | <_GeneratedContentEnablingJustBuiltPackages |
57 | | - Include="$(_ChatWithCustomDataWebContentRoot)NuGet.config.in" |
58 | | - OutputPath="$(_ChatWithCustomDataWebContentRoot)NuGet.config" /> |
59 | | - <_GeneratedContentEnablingJustBuiltPackages |
60 | | - Include="$(_ChatWithCustomDataWebContentRoot)Directory.Build.targets.in" |
61 | | - OutputPath="$(_ChatWithCustomDataWebContentRoot)Directory.Build.targets" /> |
| 94 | + Include="$(_ChatWithCustomDataContentRoot)NuGet.config.in" |
| 95 | + OutputPath="$(_ChatWithCustomDataContentRoot)NuGet.config" /> |
62 | 96 |
|
63 | 97 | <GeneratedContent |
64 | 98 | Include="@(_GeneratedContentEnablingJustBuiltPackages)" |
|
0 commit comments