-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rohit Agrawal
committed
Sep 8, 2016
1 parent
cbdc164
commit 9b899f5
Showing
38 changed files
with
1,954 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
using Microsoft.Build.Framework; | ||
using Microsoft.Build.Utilities; | ||
using NuGet.Common; | ||
|
||
namespace NuGet.Build.Tasks.Pack | ||
{ | ||
/// <summary> | ||
/// TaskLoggingHelper -> ILogger | ||
/// </summary> | ||
internal class MSBuildLogger : Common.ILogger | ||
{ | ||
private readonly TaskLoggingHelper _taskLogging; | ||
|
||
public MSBuildLogger(TaskLoggingHelper taskLogging) | ||
{ | ||
_taskLogging = taskLogging; | ||
} | ||
|
||
public void LogDebug(string data) | ||
{ | ||
_taskLogging.LogMessage(MessageImportance.Low, data); | ||
} | ||
|
||
public void LogError(string data) | ||
{ | ||
// Log errors as warnings. Then log the error summary as actual errors. | ||
LogWarning(data); | ||
} | ||
|
||
public void LogErrorSummary(string data) | ||
{ | ||
_taskLogging.LogMessage(MessageImportance.High, data); | ||
} | ||
|
||
public void LogInformation(string data) | ||
{ | ||
_taskLogging.LogMessage(MessageImportance.Normal, data); | ||
} | ||
|
||
public void LogInformationSummary(string data) | ||
{ | ||
LogInformation(data); | ||
} | ||
|
||
public void LogMinimal(string data) | ||
{ | ||
_taskLogging.LogMessage(MessageImportance.High, data); | ||
} | ||
|
||
public void LogVerbose(string data) | ||
{ | ||
_taskLogging.LogMessage(MessageImportance.Low, data); | ||
} | ||
|
||
public void LogWarning(string data) | ||
{ | ||
_taskLogging.LogWarning(data); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.xproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | ||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>e1e473c5-2954-45e4-af95-287b506b696d</ProjectGuid> | ||
<RootNamespace>NuGet.Build.Tasks.Pack</RootNamespace> | ||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | ||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | ||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
</Project> |
Oops, something went wrong.