-
Notifications
You must be signed in to change notification settings - Fork 540
Expand file tree
/
Copy pathMicrosoft.Azure.Cosmos.AI.csproj
More file actions
89 lines (79 loc) · 5.09 KB
/
Microsoft.Azure.Cosmos.AI.csproj
File metadata and controls
89 lines (79 loc) · 5.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Microsoft.Azure.Cosmos.AI</AssemblyName>
<RootNamespace>Microsoft.Azure.Cosmos.AI</RootNamespace>
<LangVersion>$(LangVersion)</LangVersion>
<!-- This package depends on ICosmosEmbeddingGenerator and EmbeddingSource which are
#if PREVIEW-gated public types in the core SDK. Setting IsPreview=true here ensures
Directory.Build.props adds the PREVIEW compile symbol for this project (and transitively
for the core SDK when using ProjectReference via AdditionalProperties), so VS and plain
'dotnet build' both work without passing /p:IsPreview=true on the command line. -->
<IsPreview>true</IsPreview>
<CosmosAIVersion Condition=" '$(IsPreview)' != 'true' ">$(CosmosAIOfficialVersion)</CosmosAIVersion>
<CosmosAIVersion Condition=" '$(IsPreview)' == 'true' ">$(CosmosAIPreviewVersion)</CosmosAIVersion>
<CosmosAIVersionSuffix Condition=" '$(IsPreview)' == 'true' ">$(CosmosAIPreviewSuffixVersion)</CosmosAIVersionSuffix>
<Version Condition=" '$(CosmosAIVersionSuffix)' == '' ">$(CosmosAIVersion)</Version>
<Version Condition=" '$(CosmosAIVersionSuffix)' != '' ">$(CosmosAIVersion)-$(CosmosAIVersionSuffix)</Version>
<CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd))</CurrentDate>
<Company>Microsoft Corporation</Company>
<Authors>Microsoft</Authors>
<Description>AI extensions library for Azure Cosmos DB for NoSQL. Provides an Azure OpenAI / Foundry-backed embedding provider for automatic vector embedding generation in hybrid and vector search queries. Designed to be extensible for broader AI scenarios including semantic re-ranking, OCR, and model integrations. For more information, refer to https://aka.ms/CosmosDB</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Title>Microsoft Azure Cosmos DB AI extensions library</Title>
<PackageId>Microsoft.Azure.Cosmos.AI</PackageId>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Azure/azure-cosmos-dotnet-v3</PackageProjectUrl>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<PackageTags>microsoft;azure;cosmos;cosmosdb;documentdb;nosql;azureofficial;dotnetcore;netcore;netstandard;ai;embedding;vector;openai;semanticranking</PackageTags>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\Microsoft.Azure.Cosmos\src\stylecop.json" Link="stylecop.json" />
</ItemGroup>
<!-- Core SDK reference: project ref when building from source, otherwise NuGet pin.
This package depends on ICosmosEmbeddingGenerator and EmbeddingSource which are
#if PREVIEW-gated in the core SDK, so we always need a preview-built SDK.
- ProjectReference: AdditionalProperties forces IsPreview=true on the core SDK build
so the preview-gated types are compiled as public, without requiring the caller
to pass /p:IsPreview=true globally.
- NuGet: always reference the preview version (preview NuGet is built with PREVIEW defined). -->
<ItemGroup Condition=" '$(SdkProjectRef)' != 'True' ">
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.60.0-preview.0" />
</ItemGroup>
<ItemGroup Condition=" '$(SdkProjectRef)' == 'True' ">
<ProjectReference Include="..\..\Microsoft.Azure.Cosmos\src\Microsoft.Azure.Cosmos.csproj"
AdditionalProperties="IsPreview=true" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\Icon.png" Pack="true" PackagePath=""/>
</ItemGroup>
<!-- Required by Microsoft.Azure.Cosmos SDK; PrivateAssets=All keeps it off the public dependency graph -->
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="10.0.2" NoWarn="NU1903" PrivateAssets="All" />
</ItemGroup>
<!-- Azure OpenAI provider dependency -->
<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
</ItemGroup>
<!-- Analyzers -->
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="16.0.102" PrivateAssets="All" />
</ItemGroup>
<!-- Strong-name signing -->
<PropertyGroup>
<SigningType>Product</SigningType>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>..\..\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(SdkProjectRef)' == 'True' ">
<DefineSdkProjectRefSymbol Condition=" '$(DefineSdkProjectRefSymbol)' == '' ">true</DefineSdkProjectRefSymbol>
</PropertyGroup>
<PropertyGroup Condition=" '$(DefineSdkProjectRefSymbol)' == 'true' ">
<DefineConstants>$(DefineConstants);SDKPROJECTREF</DefineConstants>
</PropertyGroup>
</Project>