![]() |
VOOZH | about |
dotnet add package UtilPack.ResourcePooling.MSBuild --version 1.0.0
NuGet\Install-Package UtilPack.ResourcePooling.MSBuild -Version 1.0.0
<PackageReference Include="UtilPack.ResourcePooling.MSBuild" Version="1.0.0" />
<PackageVersion Include="UtilPack.ResourcePooling.MSBuild" Version="1.0.0" />Directory.Packages.props
<PackageReference Include="UtilPack.ResourcePooling.MSBuild" />Project file
paket add UtilPack.ResourcePooling.MSBuild --version 1.0.0
#r "nuget: UtilPack.ResourcePooling.MSBuild, 1.0.0"
#:package UtilPack.ResourcePooling.MSBuild@1.0.0
#addin nuget:?package=UtilPack.ResourcePooling.MSBuild&version=1.0.0Install as a Cake Addin
#tool nuget:?package=UtilPack.ResourcePooling.MSBuild&version=1.0.0Install as a Cake Tool
Acting as a bridge between project and MSBuild world, this project provides only one type, AbstractResourceUsingTask.
This type should be extended by MSBuild custom tasks, which intend to use the project to deliver their functionality.
One such example of task is a task which dumps the contents of SQL file into the database.
The AbstractResourceUsingTask class implements canceability fully, and leaves two abstract methods for derived classes to implement.
Most of other methods are virtual, allowing derived classes to override them.
This method is used as a sanity check before actually starting to search for AsyncResourceFactoryProvider type from project.
The SQL dump running task could here e.g. check whether file exists.
This method should perform the actual domain-specific functionality, using the resource it receives as parameter.
The SQL dump running task would here read the SQL statements from file and execute them using the resource (which would be of type SQLConnection).
The AbstractResourceUsingTask introduces a number of task parameters, none of them statically marked as required, since most of the implementation can be overridden.
However, the default implementation, unless overridden, requires the following parameters:
PoolProviderPackageID of type String: should specify the NuGet package ID of the package holding type implementing the AsyncResourceFactoryProvider type from project.PoolConfigurationFileContents of type String: sometimes it is more conventient to give configuration file contents directly, then this property should be used. This property takes precedence over PoolConfigurationFilePath.PoolConfigurationFilePath of type String: should specify the path to JSON file containing serialized configuration for object passed as parameter to CreateOneTimeUseResourcePool method of AsyncResourceFactoryProvider type from project. The Microsoft.Extensions.Configuration.Json package will be used to deserialize the value.The default implementation, unless overridden, has the following optional parameters:
PoolProviderVersion of type String: the version part paired with PoolProviderPackageID, should specify the version of the NuGet package holding type implementing AsyncResourceFactoryProvider type from project. If not specified, newest version will be used.PoolProviderAssemblyPath of type String: the path within the NuGet package specified by PoolProviderPackageID and PoolProviderVersion parameters, where the assembly holding type implementing AsyncResourceFactoryProvider type from project resides. Is used only for NuGet packages with more than one assembly in their framework-specific folder.PoolProviderTypeName of type String: once the assembly is loaded using PoolProviderPackageID, PoolProviderVersion and PoolProviderAssemblyPath parameters, this parameter may be used to specify the name of the type implementing AsyncResourceFactoryProvider type from project. If left out, the first suitable type from all types defined in the assembly will be used.RunSynchronously of type Boolean: this is infrastructure-related parameter, and actually is always used, since the usage is in non-virtual method. This parameter, if true, will skip calling Yield method.The NuGet package has the same package ID as this folder name. The task provided by this project should be loaded using task factory.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp1.0 netcoreapp1.0 was computed. netcoreapp1.1 netcoreapp1.1 was computed. netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard1.3 netstandard1.3 is compatible. netstandard1.4 netstandard1.4 was computed. netstandard1.5 netstandard1.5 was computed. netstandard1.6 netstandard1.6 was computed. netstandard2.0 netstandard2.0 was computed. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen30 tizen30 was computed. tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Universal Windows Platform | uap uap was computed. uap10.0 uap10.0 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on UtilPack.ResourcePooling.MSBuild:
| Package | Downloads |
|---|---|
|
CBAM.SQL.MSBuild
The Connection-Based Asynchronous Messaging (CBAM) SQL.MSbuild assembly contains abstract SQL-oriented MSBuild task, and task which reads file and executes SQL statements contained within. |
This package is not used by any popular GitHub repositories.
Added property for specifying configuration file contents directly as string.