Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sample WP7 project updates.

  • Loading branch information...
commit af430de03f57c12ac1e026349ad92c805977dc00 1 parent 5916770
@jkowalski authored
View
2  examples/NLogWindowsPhoneApplication/MainPage.xaml.cs
@@ -17,7 +17,7 @@ public MainPage()
private void button1_Click(object sender, RoutedEventArgs e)
{
- logger.Info("Hello!");
+ logger.Info("Hello <> 'foo' \"bar\" !");
}
}
}
View
7 examples/NLogWindowsPhoneApplication/NLog.config
@@ -3,11 +3,12 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
- <target name="server" xsi:type="LogReceiverService" endpointAddress="http://localhost:5000/LogReceiver.svc" />
- <target xsi:type="Console" name="console" />
+ <target name="n" type="Network" address="http://localhost:9999">
+ <layout><![CDATA[<entry>${xml-encode:${message}}</entry>]]></layout>
+ </target>
</targets>
<rules>
- <logger name="*" minlevel="Debug" writeTo="server,console" />
+ <logger name="*" minlevel="Debug" writeTo="n" />
</rules>
</nlog>
View
11 examples/NLogWindowsPhoneApplication/NLogWindowsPhoneApplication.csproj
@@ -50,7 +50,6 @@
<ItemGroup>
<Reference Include="Microsoft.Phone" />
<Reference Include="Microsoft.Phone.Interop" />
- <Reference Include="NLog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL" />
<Reference Include="System.Windows" />
<Reference Include="system" />
<Reference Include="System.Core" />
@@ -77,7 +76,9 @@
</Page>
</ItemGroup>
<ItemGroup>
- <Content Include="NLog.config" />
+ <Content Include="NLog.config">
+ <SubType>Designer</SubType>
+ </Content>
<None Include="Properties\AppManifest.xml" />
<None Include="Properties\WMAppManifest.xml" />
</ItemGroup>
@@ -90,6 +91,12 @@
</Content>
<Content Include="SplashScreenImage.jpg" />
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\src\NLog\NLog.wp7.csproj">
+ <Project>{8A0E38D3-6E7E-45B0-A360-218F7E98743D}</Project>
+ <Name>NLog.wp7</Name>
+ </ProjectReference>
+ </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
View
8 src/NLog.wp7.sln
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NLog.UnitTests.wp7", "..\te
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleExtensions.wp7", "..\tests\SampleExtensions\SampleExtensions.wp7.csproj", "{8A0E38D3-1512-45B0-A360-218F7E98743D}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NLogWindowsPhoneApplication", "..\examples\NLogWindowsPhoneApplication\NLogWindowsPhoneApplication.csproj", "{17F2F126-6945-48A0-900F-A0859A3F1A0D}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -26,6 +28,12 @@ Global
{8A0E38D3-1512-45B0-A360-218F7E98743D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8A0E38D3-1512-45B0-A360-218F7E98743D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A0E38D3-1512-45B0-A360-218F7E98743D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {17F2F126-6945-48A0-900F-A0859A3F1A0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {17F2F126-6945-48A0-900F-A0859A3F1A0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {17F2F126-6945-48A0-900F-A0859A3F1A0D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {17F2F126-6945-48A0-900F-A0859A3F1A0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {17F2F126-6945-48A0-900F-A0859A3F1A0D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {17F2F126-6945-48A0-900F-A0859A3F1A0D}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Please sign in to comment.
Something went wrong with that request. Please try again.