Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adamecr committed Jan 22, 2019
1 parent 895945c commit 3f4edb7
Show file tree
Hide file tree
Showing 35 changed files with 4,451 additions and 1,399 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/

# Visual Studio 2015 cache/options directory
.vs/
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
=======================================================================================
RAD Customized build process v1.0.2
RAD Customized build process v1.0.3
=======================================================================================
-->

Expand Down
12 changes: 6 additions & 6 deletions Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
-->
<PropertyGroup>
<RadMajor>1</RadMajor>
<RadMinor>1</RadMinor>
<RadMinor>2</RadMinor>
<RadPatch>0</RadPatch>
<RadBuild>515</RadBuild>
<PackageVersionShort>1.1.0</PackageVersionShort>
<PackageVersionFull>1.1.0+515.181229223445.release.7d9ca8f-dirty</PackageVersionFull>
<GitCommit>7d9ca8f-dirty</GitCommit>
<GitBranch>release</GitBranch>
<RadBuild>538</RadBuild>
<PackageVersionShort>1.2.0</PackageVersionShort>
<PackageVersionFull>1.2.0+538.190122135212.master.2404837</PackageVersionFull>
<GitCommit>2404837</GitCommit>
<GitBranch>master</GitBranch>
</PropertyGroup>
</Project>
14 changes: 9 additions & 5 deletions build.tasks/GenerateNuSpecFileTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ public class GenerateNuSpecFileTask : Task
/// URL to package license
/// </summary>
public string PackageLicenseUrl { get; set; }

/// <summary>
/// Package license type
/// </summary>
public string PackageLicense { get; set; }

/// <summary>
/// URL to package project
/// </summary>
Expand Down Expand Up @@ -227,10 +227,14 @@ public override bool Execute()
{
foreach (var r in PackageReferences)
{
var item = r.ItemSpec;
if (item != "NETStandard.Library")
var isImplicit = r.GetMetadata("IsImplicitlyDefined") == "true";
var privateAssets = r.GetMetadata("PrivateAssets");
if (string.IsNullOrWhiteSpace(privateAssets)) privateAssets = "build,analyzers";
var isAllPrivate = privateAssets.ToLower() == "all";

if (!isImplicit && !isAllPrivate)
sb.AppendLine(
$" <dependency id=\"{r.ItemSpec}\" version=\"{r.GetMetadata("Version")}\" exclude=\"Build,Analyzers\" />");
$" <dependency id=\"{r.ItemSpec}\" version=\"{r.GetMetadata("Version")}\" exclude=\"{privateAssets}\" />");
}
}

Expand Down
2 changes: 1 addition & 1 deletion build/custom/Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PropertyGroup>
<Authors>Radek Adamec</Authors>
<Company>Radek Adamec</Company>
<Copyright>Radek Adamec 2018</Copyright>
<Copyright>Radek Adamec 2019</Copyright>
<Description>Library of common helpers, utilities and extensions</Description>
<PackageLicenseUrl>https://github.com/adamecr/Commons/blob/master/license.txt</PackageLicenseUrl>
<PackageLicense>MIT</PackageLicense>
Expand Down
2 changes: 1 addition & 1 deletion build/custom/Build.props.debug
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
=======================================================================================
-->
<PropertyGroup>

<MarkupDocGenerate>true</MarkupDocGenerate>
</PropertyGroup>

</Project>
3 changes: 2 additions & 1 deletion build/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ The source-only package is created from the (partial) class or classes in the pr
- `<NuProp.Tags></NuProp.Tags>` - package tags (optional)
- `<NuProp.Includes type = "" />` - file includes (optional). If type is `Folder`, the package will include all compile files in folder, if type is `FolderRecursive` the subfolders will be also included.
- `<NuProp.Using id = "" version=""/>` - package dependencies (optional). Version for a dependency is optional. These dependencies will be defined within the package
- `<NuProp.Needs id="" />` - "external" dependencies (optional) - not included in package, just info when consuming!!! Meaning that the **consumer has to include the dependency on its own**.
- `<NuProp.Needs id="" />` - "external" dependencies (optional) - not included in package, just info when consuming!!! Meaning that the **consumer has to include the dependency on its own**.
- `<NuProp.Remarks cref="" />` - (optional), when set references to a type to get the XML Documentation remarks from to document the source only package using [MarkupDoc](https://github.com/adamecr/MarkupDoc).

`GeneratePartNuSpecFilesForSourceOnly` target, executed during the build, checks all compilation files and generates the `.partnuspec` files for source files containing valid `<NuProp.Id>` XML Documentation Comments (metadata). `.partnuspec` file is a partial NuSpec file that is later on extended with solution wide properties and serves as a base for packaging of source-only packages.

Expand Down
29 changes: 28 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,37 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [1.2.0] - 2019-01-22 ##
### Added ###
- Added `Disposer` - Keeps the stack of disposable objects, and disposes them when the disposer is being disposed.
- Added `Scope` - The runtime "container" for scoped operations.
The scope can be both state-less and state-full and it's valid until it's disposed.
The scopes can be nested (when the scope is disposed, the children are disposed as well)
and there can be multiple child scopes (siblings) living in parallel.
The base implementation just manages the life time, child scopes and keeps the state (when provided).
Inherit from the `Scope<TState>` (and `IScope<TState>`)
to add the scope related operations (inherited classes have the access to state).
- Added `Context` - The runtime "container" for context operations.
The context can be both state-less and state-full and it's valid until it's disposed.
The current context is accessible via static property `Current`.
The contexts are chained, when a new context is created using static method `BeginContext()`,
the `Current` context became the `Parent` of the new one and
the newly created context will be set as the `Current` one.
When the context is disposed, the `Current` context is set to `Parent` of disposing context.
The base implementation just manages the life time, context chain and keeps the state (when provided).
Inherit from the `Context<TState>` to add the context related operations
(inherited classes have the access to state).
- Common Logging - added StackTrace event property that will be filled from the exception stacktrace or from the current stack trace when the exception has not been thrown yet
- Added `ArrayExtensions.AppendBytes` - adds the byte array to the current one and returns resulting array (concatenates two byte arrays into a new one).

### Changed ###
- BaseDisposable - thread safety, added AssertNotDisposed check

## [1.1.0] - 2018-12-29 ##

### Added ###
- CommonLogging: extended methods for Trace
- CommonLogging: extended methods for pass-throu exception logging of existing exceptions
- CommonLogging: extended methods for pass-through exception logging of existing exceptions
- CommonLogging: extended methods for exception logging in catch filters

### Changed ###
Expand All @@ -30,6 +56,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Initial release
- NuGet packages are not published yet, they will be published with v1.0.0

[1.2.0]: https://github.com/adamecr/Commons/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/adamecr/Commons/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/adamecr/Commons/compare/v0.1.0...v1.0.0
[0.1.0]: https://github.com/adamecr/Commons/releases/tag/v0.1.0
Loading

0 comments on commit 3f4edb7

Please sign in to comment.