|
| 1 | +<Project> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <_ChatWithCustomDataWebContentRoot>$(MSBuildThisFileDirectory)Microsoft.Extensions.AI.Templates\src\ChatWithCustomData\ChatWithCustomData.Web-CSharp\</_ChatWithCustomDataWebContentRoot> |
| 5 | + </PropertyGroup> |
| 6 | + |
| 7 | + <Target Name="ComputeGeneratedContentProperties"> |
| 8 | + <PropertyGroup> |
| 9 | + <!-- Define optional pinned versions of certain dependencies. --> |
| 10 | + <TemplatePinnedMicrosoftExtensionsAIVersion>9.3.0-preview.1.25161.3</TemplatePinnedMicrosoftExtensionsAIVersion> |
| 11 | + <TemplatePinnedMicrosoftEntityFrameworkCoreSqliteVersion>9.0.3</TemplatePinnedMicrosoftEntityFrameworkCoreSqliteVersion> |
| 12 | + |
| 13 | + <!-- By default, use pinned dependency versions. --> |
| 14 | + <TemplateUsePinnedMicrosoftExtensionsAIVersion Condition="'$(TemplateUsePinnedMicrosoftExtensionsAIVersion)' == ''">false</TemplateUsePinnedMicrosoftExtensionsAIVersion> |
| 15 | + <TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion Condition="'$(TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion)' == ''">false</TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion> |
| 16 | + |
| 17 | + <!-- Apply pinned dependency versions if enabled. --> |
| 18 | + <TemplateMicrosoftExtensionsAIVersion Condition="'$(TemplateUsePinnedMicrosoftExtensionsAIVersion)' == 'true'">$(TemplatePinnedMicrosoftExtensionsAIVersion)</TemplateMicrosoftExtensionsAIVersion> |
| 19 | + <TemplateMicrosoftEntityFrameworkCoreSqliteVersion Condition="'$(TemplateUsePinnedMicrosoftEntityFrameworkCoreSqliteVersion)' == 'true'">$(TemplatePinnedMicrosoftEntityFrameworkCoreSqliteVersion)</TemplateMicrosoftEntityFrameworkCoreSqliteVersion> |
| 20 | + |
| 21 | + <!-- Fall back on default dependency versions if pinned versions were not applied. --> |
| 22 | + <TemplateMicrosoftExtensionsAIVersion Condition="'$(TemplateMicrosoftExtensionsAIVersion)' == ''">$(Version)</TemplateMicrosoftExtensionsAIVersion> |
| 23 | + <TemplateMicrosoftEntityFrameworkCoreSqliteVersion Condition="'$(TemplateMicrosoftEntityFrameworkCoreSqliteVersion)' == ''">$(MicrosoftEntityFrameworkCoreSqliteVersion)</TemplateMicrosoftEntityFrameworkCoreSqliteVersion> |
| 24 | + |
| 25 | + <_TemplateUsingJustBuiltPackages Condition="'$(TemplateMicrosoftExtensionsAIVersion)' == '$(Version)'">true</_TemplateUsingJustBuiltPackages> |
| 26 | + |
| 27 | + <!-- Specify package version variables used in template content. --> |
| 28 | + <GeneratedContentProperties> |
| 29 | + $(GeneratedContentProperties); |
| 30 | + |
| 31 | + <!-- Repo properties --> |
| 32 | + ArtifactsShippingPackagesDir=$(ArtifactsShippingPackagesDir); |
| 33 | + |
| 34 | + <!-- Package version properties --> |
| 35 | + OllamaSharpVersion=$(OllamaSharpVersion); |
| 36 | + OpenAIVersion=$(OpenAIVersion); |
| 37 | + AzureAIProjectsVersion=$(AzureAIProjectsVersion); |
| 38 | + AzureAIOpenAIVersion=$(AzureAIOpenAIVersion); |
| 39 | + AzureIdentityVersion=$(AzureIdentityVersion); |
| 40 | + MicrosoftEntityFrameworkCoreSqliteVersion=$(TemplateMicrosoftEntityFrameworkCoreSqliteVersion); |
| 41 | + MicrosoftExtensionsAIVersion=$(TemplateMicrosoftExtensionsAIVersion); |
| 42 | + MicrosoftSemanticKernelCoreVersion=$(MicrosoftSemanticKernelCoreVersion); |
| 43 | + PdfPigVersion=$(PdfPigVersion); |
| 44 | + SystemLinqAsyncVersion=$(SystemLinqAsyncVersion); |
| 45 | + AzureSearchDocumentsVersion=$(AzureSearchDocumentsVersion); |
| 46 | + MicrosoftSemanticKernelConnectorsAzureAISearchVersion=$(MicrosoftSemanticKernelConnectorsAzureAISearchVersion); |
| 47 | + </GeneratedContentProperties> |
| 48 | + </PropertyGroup> |
| 49 | + |
| 50 | + <ItemGroup> |
| 51 | + <GeneratedContent |
| 52 | + Include="$(_ChatWithCustomDataWebContentRoot)ChatWithCustomData.Web-CSharp.csproj.in" |
| 53 | + OutputPath="$(_ChatWithCustomDataWebContentRoot)ChatWithCustomData.Web-CSharp.csproj" /> |
| 54 | + |
| 55 | + <!-- The following content only gets generated when using just-built packages --> |
| 56 | + <_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" /> |
| 62 | + |
| 63 | + <GeneratedContent |
| 64 | + Include="@(_GeneratedContentEnablingJustBuiltPackages)" |
| 65 | + Condition="'$(_TemplateUsingJustBuiltPackages)' == 'true'" /> |
| 66 | + <GeneratedContentToDelete |
| 67 | + Include="@(_GeneratedContentEnablingJustBuiltPackages)" |
| 68 | + Condition="'$(_TemplateUsingJustBuiltPackages)' != 'true'" /> |
| 69 | + </ItemGroup> |
| 70 | + </Target> |
| 71 | + |
| 72 | +</Project> |
0 commit comments