diff options
8 files changed, 43 insertions, 22 deletions
diff --git a/lib/VNLib.Data.Caching.Extensions/src/VNLib.Data.Caching.Extensions.csproj b/lib/VNLib.Data.Caching.Extensions/src/VNLib.Data.Caching.Extensions.csproj index 87772ab..a6e3124 100644 --- a/lib/VNLib.Data.Caching.Extensions/src/VNLib.Data.Caching.Extensions.csproj +++ b/lib/VNLib.Data.Caching.Extensions/src/VNLib.Data.Caching.Extensions.csproj @@ -2,11 +2,14 @@ <PropertyGroup> <TargetFramework>net8.0</TargetFramework> + <Nullable>enable</Nullable> <RootNamespace>VNLib.Data.Caching.Extensions</RootNamespace> <AssemblyName>VNLib.Data.Caching.Extensions</AssemblyName> - <Nullable>enable</Nullable> <GenerateDocumentationFile>True</GenerateDocumentationFile> - <AnalysisLevel>latest-all</AnalysisLevel> + </PropertyGroup> + + <PropertyGroup> + <AnalysisLevel Condition="'$(BuildingInsideVisualStudio)' == true">latest-all</AnalysisLevel> </PropertyGroup> <PropertyGroup> diff --git a/lib/VNLib.Data.Caching.ObjectCache/src/VNLib.Data.Caching.ObjectCache.csproj b/lib/VNLib.Data.Caching.ObjectCache/src/VNLib.Data.Caching.ObjectCache.csproj index cd5a12c..ee0d521 100644 --- a/lib/VNLib.Data.Caching.ObjectCache/src/VNLib.Data.Caching.ObjectCache.csproj +++ b/lib/VNLib.Data.Caching.ObjectCache/src/VNLib.Data.Caching.ObjectCache.csproj @@ -2,11 +2,14 @@ <PropertyGroup> <TargetFramework>net8.0</TargetFramework> - <RootNamespace>VNLib.Data.Caching.ObjectCache</RootNamespace> - <AssemblyName>VNLib.Data.Caching.ObjectCache</AssemblyName> <Nullable>enable</Nullable> + <RootNamespace>VNLib.Data.Caching.ObjectCache</RootNamespace> + <AssemblyName>VNLib.Data.Caching.ObjectCache</AssemblyName> <GenerateDocumentationFile>True</GenerateDocumentationFile> - <AnalysisLevel>latest-all</AnalysisLevel> + </PropertyGroup> + + <PropertyGroup> + <AnalysisLevel Condition="'$(BuildingInsideVisualStudio)' == true">latest-all</AnalysisLevel> </PropertyGroup> <PropertyGroup> diff --git a/lib/VNLib.Data.Caching/src/VNLib.Data.Caching.csproj b/lib/VNLib.Data.Caching/src/VNLib.Data.Caching.csproj index 3208d12..54c80d5 100644 --- a/lib/VNLib.Data.Caching/src/VNLib.Data.Caching.csproj +++ b/lib/VNLib.Data.Caching/src/VNLib.Data.Caching.csproj @@ -2,11 +2,14 @@ <PropertyGroup> <TargetFramework>net8.0</TargetFramework> + <Nullable>enable</Nullable> <RootNamespace>VNLib.Data.Caching</RootNamespace> <AssemblyName>VNLib.Data.Caching</AssemblyName> - <Nullable>enable</Nullable> <GenerateDocumentationFile>True</GenerateDocumentationFile> - <AnalysisLevel>latest-all</AnalysisLevel> + </PropertyGroup> + + <PropertyGroup> + <AnalysisLevel Condition="'$(BuildingInsideVisualStudio)' == true">latest-all</AnalysisLevel> </PropertyGroup> <PropertyGroup> diff --git a/lib/VNLib.Plugins.Extensions.VNCache/src/VNCacheExtensions.cs b/lib/VNLib.Plugins.Extensions.VNCache/src/VNCacheExtensions.cs index c434e22..f28ea74 100644 --- a/lib/VNLib.Plugins.Extensions.VNCache/src/VNCacheExtensions.cs +++ b/lib/VNLib.Plugins.Extensions.VNCache/src/VNCacheExtensions.cs @@ -143,8 +143,8 @@ namespace VNLib.Plugins.Extensions.VNCache ForwardOnlyWriter<char> writer = new(buffer); //Append prefix and entity id - writer.Append(Prefix); - writer.Append(entityId); + writer.AppendSmall(Prefix); + writer.AppendSmall(entityId); //Compute the simple hash of the combined values return ManagedHash.ComputeHash(writer.AsSpan(), Digest, Encoding); diff --git a/lib/VNLib.Plugins.Extensions.VNCache/src/VNLib.Plugins.Extensions.VNCache.csproj b/lib/VNLib.Plugins.Extensions.VNCache/src/VNLib.Plugins.Extensions.VNCache.csproj index 4d1827e..8185e9e 100644 --- a/lib/VNLib.Plugins.Extensions.VNCache/src/VNLib.Plugins.Extensions.VNCache.csproj +++ b/lib/VNLib.Plugins.Extensions.VNCache/src/VNLib.Plugins.Extensions.VNCache.csproj @@ -2,14 +2,17 @@ <PropertyGroup> <TargetFramework>net8.0</TargetFramework> + <Nullable>enable</Nullable> <RootNamespace>VNLib.Plugins.Extensions.VNCache</RootNamespace> <AssemblyName>VNLib.Plugins.Extensions.VNCache</AssemblyName> - <Nullable>enable</Nullable> - <AnalysisLevel>latest-all</AnalysisLevel> <GenerateDocumentationFile>True</GenerateDocumentationFile> </PropertyGroup> <PropertyGroup> + <AnalysisLevel Condition="'$(BuildingInsideVisualStudio)' == true">latest-all</AnalysisLevel> + </PropertyGroup> + + <PropertyGroup> <Authors>Vaughn Nugent</Authors> <Company>Vaughn Nugent</Company> <Product>VNLib.Plugins.Extensions.VNCache</Product> diff --git a/plugins/ObjectCacheServer/src/ObjectCacheServer.csproj b/plugins/ObjectCacheServer/src/ObjectCacheServer.csproj index 009e905..b434b5d 100644 --- a/plugins/ObjectCacheServer/src/ObjectCacheServer.csproj +++ b/plugins/ObjectCacheServer/src/ObjectCacheServer.csproj @@ -1,16 +1,19 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net8.0</TargetFramework> - <RootNamespace>VNLib.Data.Caching.ObjectCache.Server</RootNamespace> - <AssemblyName>ObjectCacheServer</AssemblyName> + <TargetFramework>net8.0</TargetFramework> <Nullable>enable</Nullable> - <AnalysisLevel>latest-all</AnalysisLevel> + <RootNamespace>VNLib.Data.Caching.ObjectCache.Server</RootNamespace> + <AssemblyName>ObjectCacheServer</AssemblyName> <ProduceReferenceAssembly>True</ProduceReferenceAssembly> <GenerateDocumentationFile>False</GenerateDocumentationFile> <!-- Resolve nuget dll files and store them in the output dir --> <EnableDynamicLoading>true</EnableDynamicLoading> </PropertyGroup> - + + <PropertyGroup> + <AnalysisLevel Condition="'$(BuildingInsideVisualStudio)' == true">latest-all</AnalysisLevel> + </PropertyGroup> + <PropertyGroup> <Authors>Vaughn Nugent</Authors> <Company>Vaughn Nugent</Company> diff --git a/plugins/VNLib.Data.Caching.Providers.Redis/src/VNLib.Data.Caching.Providers.Redis.csproj b/plugins/VNLib.Data.Caching.Providers.Redis/src/VNLib.Data.Caching.Providers.Redis.csproj index a896cf8..d17f2aa 100644 --- a/plugins/VNLib.Data.Caching.Providers.Redis/src/VNLib.Data.Caching.Providers.Redis.csproj +++ b/plugins/VNLib.Data.Caching.Providers.Redis/src/VNLib.Data.Caching.Providers.Redis.csproj @@ -2,10 +2,9 @@ <PropertyGroup> <TargetFramework>net8.0</TargetFramework> - <RootNamespace>VNLib.Data.Caching.Providers.Redis</RootNamespace> - <AssemblyName>VNLib.Data.Caching.Providers.Redis</AssemblyName> <Nullable>enable</Nullable> - <AnalysisLevel>latest-all</AnalysisLevel> + <RootNamespace>VNLib.Data.Caching.Providers.Redis</RootNamespace> + <AssemblyName>VNLib.Data.Caching.Providers.Redis</AssemblyName> <ProduceReferenceAssembly>True</ProduceReferenceAssembly> <GenerateDocumentationFile>False</GenerateDocumentationFile> <!-- Resolve nuget dll files and store them in the output dir --> @@ -13,6 +12,10 @@ </PropertyGroup> <PropertyGroup> + <AnalysisLevel Condition="'$(BuildingInsideVisualStudio)' == true">latest-all</AnalysisLevel> + </PropertyGroup> + + <PropertyGroup> <Authors>Vaughn Nugent</Authors> <Company>Vaughn Nugent</Company> <Product>VNLib.Data.Caching.Providers.Redis</Product> diff --git a/plugins/VNLib.Data.Caching.Providers.VNCache/src/VNLib.Data.Caching.Providers.VNCache.csproj b/plugins/VNLib.Data.Caching.Providers.VNCache/src/VNLib.Data.Caching.Providers.VNCache.csproj index ded805a..23fd747 100644 --- a/plugins/VNLib.Data.Caching.Providers.VNCache/src/VNLib.Data.Caching.Providers.VNCache.csproj +++ b/plugins/VNLib.Data.Caching.Providers.VNCache/src/VNLib.Data.Caching.Providers.VNCache.csproj @@ -2,10 +2,9 @@ <PropertyGroup> <TargetFramework>net8.0</TargetFramework> - <RootNamespace>VNLib.Data.Caching.Providers.VNCache</RootNamespace> - <AssemblyName>VNLib.Data.Caching.Providers.VNCache</AssemblyName> <Nullable>enable</Nullable> - <AnalysisLevel>latest-all</AnalysisLevel> + <RootNamespace>VNLib.Data.Caching.Providers.VNCache</RootNamespace> + <AssemblyName>VNLib.Data.Caching.Providers.VNCache</AssemblyName> <ProduceReferenceAssembly>True</ProduceReferenceAssembly> <GenerateDocumentationFile>False</GenerateDocumentationFile> <!-- Resolve nuget dll files and store them in the output dir --> @@ -13,6 +12,10 @@ </PropertyGroup> <PropertyGroup> + <AnalysisLevel Condition="'$(BuildingInsideVisualStudio)' == true">latest-all</AnalysisLevel> + </PropertyGroup> + + <PropertyGroup> <Authors>Vaughn Nugent</Authors> <Company>Vaughn Nugent</Company> <Product>VNLib.Data.Caching.Providers.VNCache</Product> |