Skip to content

Commit

Permalink
Update NuGet package
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Oct 31, 2012
1 parent 13209b6 commit 7f34d02
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 33 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
_ReSharper.*
*.resharper
*.mdb
*.nupkg
/TestResults
/packages
16 changes: 16 additions & 0 deletions MetroLog.WinRT/MetroLog ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
As WinRT isn't fully supported in NuGet yet, you'll need to manually add a reference
to the MetroLog.WinRT.winmd file in your \packages\MetroLog.*\WinRT directory. Just
add the reference to the WinMD file, not anything else in the directory.

To hook up the debug logger to your WinJS console, in your default.js file, add the
following at the top, right under 'var nav = WinJS.Navigation;'

MetroLog.WinRT.Logger.addEventListener("onlogmessage", function(message) {
Debug.writeln(message);
});

Then, in each module/js file you can add the following, putting in a useful name
for the logger, such as the relative file name.

var logger = MetroLog.WinRT.Logger.getLogger("pages/myfile.js");

3 changes: 3 additions & 0 deletions MetroLog.WinRT/MetroLog.WinRT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="EventTarget.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="MetroLog ReadMe.txt" />
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
<VisualStudioVersion>11.0</VisualStudioVersion>
</PropertyGroup>
Expand Down
42 changes: 42 additions & 0 deletions MetroLog.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MetroLog</id>
<version>0.7.0</version>
<title>MetroLog Lightweight Logging for Portable and WinJS</title>
<authors>Matt Baxter-Reynolds,Oren Novotny</authors>
<owners>onovotny</owners>
<licenseUrl>https://raw.github.com/mbrit/MetroLog/master/LICENSE.txt</licenseUrl>
<projectUrl>https://github.com/mbrit/MetroLog</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>MetroLog is a lightweight logging framework designed for portable code and WinJS. Although the API is based on NLog and log4net, the intention is that it's a very basic logging system.

This version targets .NET 4.5,.NET Core 4.5 (Windows Store apps) and WinJS</description>
<summary />
<releaseNotes>Added a WinRT wrapper to enable use by WinJS apps</releaseNotes>
<tags>Logging WinRT NLog log4net portable pcl WinJS</tags>
</metadata>
<files>
<file src="MetroLog.WinRT\MetroLog ReadMe.txt" target="content\win8-javascript\MetroLog ReadMe.txt" />
<file src="MetroLog\bin\Release\MetroLog.dll" target="lib\net45\MetroLog.dll" />
<file src="MetroLog.NetFx\bin\Release\MetroLog.NetFx.dll" target="lib\net45\MetroLog.NetFx.dll" />
<file src="MetroLog.NetFx\bin\Release\MetroLog.NetFx.pdb" target="lib\net45\MetroLog.NetFx.pdb" />
<file src="MetroLog\bin\Release\MetroLog.pdb" target="lib\net45\MetroLog.pdb" />
<file src="MetroLog\bin\Release\MetroLog.dll" target="lib\netcore45\MetroLog.dll" />
<file src="MetroLog.NetCore\bin\Release\MetroLog.NetCore.dll" target="lib\netcore45\MetroLog.NetCore.dll" />
<file src="MetroLog.NetCore\bin\Release\MetroLog.NetCore.pdb" target="lib\netcore45\MetroLog.NetCore.pdb" />
<file src="MetroLog.NetCore\bin\Release\MetroLog.NetCore.pri" target="lib\netcore45\MetroLog.NetCore.pri" />
<file src="MetroLog\bin\Release\MetroLog.pdb" target="lib\netcore45\MetroLog.pdb" />
<file src="MetroLog\bin\Release\MetroLog.dll" target="lib\portable-net45+win8\MetroLog.dll" />
<file src="MetroLog\bin\Release\MetroLog.pdb" target="lib\portable-net45+win8\MetroLog.pdb" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.dll" target="WinRT\MetroLog.dll" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.NetCore.dll" target="WinRT\MetroLog.NetCore.dll" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.NetCore.pdb" target="WinRT\MetroLog.NetCore.pdb" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.NetCore.pri" target="WinRT\MetroLog.NetCore.pri" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.pdb" target="WinRT\MetroLog.pdb" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.WinRT.pdb" target="WinRT\MetroLog.WinRT.pdb" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.WinRT.pri" target="WinRT\MetroLog.WinRT.pri" />
<file src="MetroLog.WinRT\bin\Release\MetroLog.WinRT.winmd" target="WinRT\MetroLog.WinRT.winmd" />
<file src="**\*.cs" target="src" exclude="_ReSharper.*\**\*.*;packages\**\*.*;**\Debug\**\*.*;Samples\**\*.*;Win8Sample\**\*.*;WebTargetSample\**\*.*" />
</files>
</package>
33 changes: 0 additions & 33 deletions Nuget/MetroLog.nuspec

This file was deleted.

1 change: 1 addition & 0 deletions pack.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.nuget\nuget.exe pack MetroLog.nuspec -Symbols

0 comments on commit 7f34d02

Please sign in to comment.