Skip to content

Commit 3f4edb7

Browse files
committed
v1.2.0
1 parent 895945c commit 3f4edb7

35 files changed

+4451
-1399
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ bld/
2121
[Bb]in/
2222
[Oo]bj/
2323
[Ll]og/
24+
[Ll]ogs/
2425

2526
# Visual Studio 2015 cache/options directory
2627
.vs/

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<!--
44
=======================================================================================
5-
RAD Customized build process v1.0.2
5+
RAD Customized build process v1.0.3
66
=======================================================================================
77
-->
88

Version.props

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
-->
99
<PropertyGroup>
1010
<RadMajor>1</RadMajor>
11-
<RadMinor>1</RadMinor>
11+
<RadMinor>2</RadMinor>
1212
<RadPatch>0</RadPatch>
13-
<RadBuild>515</RadBuild>
14-
<PackageVersionShort>1.1.0</PackageVersionShort>
15-
<PackageVersionFull>1.1.0+515.181229223445.release.7d9ca8f-dirty</PackageVersionFull>
16-
<GitCommit>7d9ca8f-dirty</GitCommit>
17-
<GitBranch>release</GitBranch>
13+
<RadBuild>538</RadBuild>
14+
<PackageVersionShort>1.2.0</PackageVersionShort>
15+
<PackageVersionFull>1.2.0+538.190122135212.master.2404837</PackageVersionFull>
16+
<GitCommit>2404837</GitCommit>
17+
<GitBranch>master</GitBranch>
1818
</PropertyGroup>
1919
</Project>

build.tasks/GenerateNuSpecFileTask.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ public class GenerateNuSpecFileTask : Task
8484
/// URL to package license
8585
/// </summary>
8686
public string PackageLicenseUrl { get; set; }
87-
87+
8888
/// <summary>
8989
/// Package license type
9090
/// </summary>
9191
public string PackageLicense { get; set; }
92-
92+
9393
/// <summary>
9494
/// URL to package project
9595
/// </summary>
@@ -227,10 +227,14 @@ public override bool Execute()
227227
{
228228
foreach (var r in PackageReferences)
229229
{
230-
var item = r.ItemSpec;
231-
if (item != "NETStandard.Library")
230+
var isImplicit = r.GetMetadata("IsImplicitlyDefined") == "true";
231+
var privateAssets = r.GetMetadata("PrivateAssets");
232+
if (string.IsNullOrWhiteSpace(privateAssets)) privateAssets = "build,analyzers";
233+
var isAllPrivate = privateAssets.ToLower() == "all";
234+
235+
if (!isImplicit && !isAllPrivate)
232236
sb.AppendLine(
233-
$" <dependency id=\"{r.ItemSpec}\" version=\"{r.GetMetadata("Version")}\" exclude=\"Build,Analyzers\" />");
237+
$" <dependency id=\"{r.ItemSpec}\" version=\"{r.GetMetadata("Version")}\" exclude=\"{privateAssets}\" />");
234238
}
235239
}
236240

build/custom/Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PropertyGroup>
99
<Authors>Radek Adamec</Authors>
1010
<Company>Radek Adamec</Company>
11-
<Copyright>Radek Adamec 2018</Copyright>
11+
<Copyright>Radek Adamec 2019</Copyright>
1212
<Description>Library of common helpers, utilities and extensions</Description>
1313
<PackageLicenseUrl>https://github.com/adamecr/Commons/blob/master/license.txt</PackageLicenseUrl>
1414
<PackageLicense>MIT</PackageLicense>

build/custom/Build.props.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
=======================================================================================
88
-->
99
<PropertyGroup>
10-
10+
<MarkupDocGenerate>true</MarkupDocGenerate>
1111
</PropertyGroup>
1212

1313
</Project>

build/readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ The source-only package is created from the (partial) class or classes in the pr
113113
- `<NuProp.Tags></NuProp.Tags>` - package tags (optional)
114114
- `<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.
115115
- `<NuProp.Using id = "" version=""/>` - package dependencies (optional). Version for a dependency is optional. These dependencies will be defined within the package
116-
- `<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**.
116+
- `<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**.
117+
- `<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).
117118

118119
`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.
119120

changelog.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,37 @@ All notable changes to this project will be documented in this file.
33

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

6+
## [1.2.0] - 2019-01-22 ##
7+
### Added ###
8+
- Added `Disposer` - Keeps the stack of disposable objects, and disposes them when the disposer is being disposed.
9+
- Added `Scope` - The runtime "container" for scoped operations.
10+
The scope can be both state-less and state-full and it's valid until it's disposed.
11+
The scopes can be nested (when the scope is disposed, the children are disposed as well)
12+
and there can be multiple child scopes (siblings) living in parallel.
13+
The base implementation just manages the life time, child scopes and keeps the state (when provided).
14+
Inherit from the `Scope<TState>` (and `IScope<TState>`)
15+
to add the scope related operations (inherited classes have the access to state).
16+
- Added `Context` - The runtime "container" for context operations.
17+
The context can be both state-less and state-full and it's valid until it's disposed.
18+
The current context is accessible via static property `Current`.
19+
The contexts are chained, when a new context is created using static method `BeginContext()`,
20+
the `Current` context became the `Parent` of the new one and
21+
the newly created context will be set as the `Current` one.
22+
When the context is disposed, the `Current` context is set to `Parent` of disposing context.
23+
The base implementation just manages the life time, context chain and keeps the state (when provided).
24+
Inherit from the `Context<TState>` to add the context related operations
25+
(inherited classes have the access to state).
26+
- 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
27+
- Added `ArrayExtensions.AppendBytes` - adds the byte array to the current one and returns resulting array (concatenates two byte arrays into a new one).
28+
29+
### Changed ###
30+
- BaseDisposable - thread safety, added AssertNotDisposed check
31+
632
## [1.1.0] - 2018-12-29 ##
733

834
### Added ###
935
- CommonLogging: extended methods for Trace
10-
- CommonLogging: extended methods for pass-throu exception logging of existing exceptions
36+
- CommonLogging: extended methods for pass-through exception logging of existing exceptions
1137
- CommonLogging: extended methods for exception logging in catch filters
1238

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

59+
[1.2.0]: https://github.com/adamecr/Commons/compare/v1.1.0...v1.2.0
3360
[1.1.0]: https://github.com/adamecr/Commons/compare/v1.0.0...v1.1.0
3461
[1.0.0]: https://github.com/adamecr/Commons/compare/v0.1.0...v1.0.0
3562
[0.1.0]: https://github.com/adamecr/Commons/releases/tag/v0.1.0

0 commit comments

Comments
 (0)