From 5b8213f789ae08dc4086958e433ce764d8564e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Foidl?= Date: Mon, 17 May 2021 19:40:40 +0200 Subject: [PATCH] IsPackable set via Directory.Build.props --- Directory.Build.props | 9 +++++++-- .../MyCSharp.HttpUserAgentParser.AspNetCore.csproj | 1 - .../HttpUserAgentParserMemoryCachedProvider.cs | 2 ++ .../MyCSharp.HttpUserAgentParser.MemoryCache.csproj | 1 - .../MyCSharp.HttpUserAgentParser.csproj | 1 - .../Providers/IHttpUserAgentParserProvider.cs | 12 ++++++++++-- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index edeb4c3..8420f38 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,12 +1,10 @@ 2.12 - true MyCSharp.de, Benjamin Abt, Günther Foidl and Contributors https://github.com/mycsharp/HttpUserAgentParser MIT en-US - $(MSBuildProjectName.Contains('Test')) HTTP User Agent Parser for .NET true preview @@ -14,6 +12,13 @@ true true embedded + $(MSBuildProjectName.Contains('Test')) + $(MsBuildProjectName.Contains('Benchmark')) false + + + true + true + diff --git a/src/MyCSharp.HttpUserAgentParser.AspNetCore/MyCSharp.HttpUserAgentParser.AspNetCore.csproj b/src/MyCSharp.HttpUserAgentParser.AspNetCore/MyCSharp.HttpUserAgentParser.AspNetCore.csproj index f122bc5..b856538 100644 --- a/src/MyCSharp.HttpUserAgentParser.AspNetCore/MyCSharp.HttpUserAgentParser.AspNetCore.csproj +++ b/src/MyCSharp.HttpUserAgentParser.AspNetCore/MyCSharp.HttpUserAgentParser.AspNetCore.csproj @@ -4,7 +4,6 @@ HTTP User Agent Parser Extensions for ASP.NET Core HTTP User Agent Parser Extensions for ASP.NET Core net5.0 - true diff --git a/src/MyCSharp.HttpUserAgentParser.MemoryCache/HttpUserAgentParserMemoryCachedProvider.cs b/src/MyCSharp.HttpUserAgentParser.MemoryCache/HttpUserAgentParserMemoryCachedProvider.cs index f618c5f..cb542f4 100644 --- a/src/MyCSharp.HttpUserAgentParser.MemoryCache/HttpUserAgentParserMemoryCachedProvider.cs +++ b/src/MyCSharp.HttpUserAgentParser.MemoryCache/HttpUserAgentParserMemoryCachedProvider.cs @@ -6,6 +6,7 @@ namespace MyCSharp.HttpUserAgentParser.MemoryCache { + /// public class HttpUserAgentParserMemoryCachedProvider : IHttpUserAgentParserProvider { private readonly IMemoryCache _memoryCache; @@ -17,6 +18,7 @@ public HttpUserAgentParserMemoryCachedProvider(IMemoryCache memoryCache, HttpUse _options = options; } + /// public HttpUserAgentInformation Parse(string userAgent) { CacheKey key = this.GetKey(userAgent); diff --git a/src/MyCSharp.HttpUserAgentParser.MemoryCache/MyCSharp.HttpUserAgentParser.MemoryCache.csproj b/src/MyCSharp.HttpUserAgentParser.MemoryCache/MyCSharp.HttpUserAgentParser.MemoryCache.csproj index dd632d6..6e6a58f 100644 --- a/src/MyCSharp.HttpUserAgentParser.MemoryCache/MyCSharp.HttpUserAgentParser.MemoryCache.csproj +++ b/src/MyCSharp.HttpUserAgentParser.MemoryCache/MyCSharp.HttpUserAgentParser.MemoryCache.csproj @@ -4,7 +4,6 @@ HTTP User Agent Parser Extensions for IMemoryCache HTTP User Agent Parser Extensions for IMemoryCache netstandard2.1 - true diff --git a/src/MyCSharp.HttpUserAgentParser/MyCSharp.HttpUserAgentParser.csproj b/src/MyCSharp.HttpUserAgentParser/MyCSharp.HttpUserAgentParser.csproj index 2aabcf0..d958e0c 100644 --- a/src/MyCSharp.HttpUserAgentParser/MyCSharp.HttpUserAgentParser.csproj +++ b/src/MyCSharp.HttpUserAgentParser/MyCSharp.HttpUserAgentParser.csproj @@ -4,7 +4,6 @@ HTTP User Agent Parser Parses user agents for Browser, Platform and Bots. netstandard2.1 - true diff --git a/src/MyCSharp.HttpUserAgentParser/Providers/IHttpUserAgentParserProvider.cs b/src/MyCSharp.HttpUserAgentParser/Providers/IHttpUserAgentParserProvider.cs index f0eb9a9..73feab1 100644 --- a/src/MyCSharp.HttpUserAgentParser/Providers/IHttpUserAgentParserProvider.cs +++ b/src/MyCSharp.HttpUserAgentParser/Providers/IHttpUserAgentParserProvider.cs @@ -1,9 +1,17 @@ -// Copyright © myCSharp 2020-2021, all rights reserved +// Copyright © myCSharp 2020-2021, all rights reserved namespace MyCSharp.HttpUserAgentParser.Providers { + /// + /// Provides the basic parsing of user agent strings. + /// public interface IHttpUserAgentParserProvider { + /// + /// Parsed the -string. + /// + /// The user agent to parse. + /// The parsed user agent information HttpUserAgentInformation Parse(string userAgent); } -} \ No newline at end of file +}