Permalink
Browse files

Renamed RunTimCodeGeneratorLogging.xml to RunTimCodeGeneratorLoggingC…

…onfig.xml
  • Loading branch information...
1 parent 0cdb7cd commit 356833e56e0e8d6ee52a87417246c7a81fae3dbd @shashankshetty shashankshetty committed Jul 7, 2009
@@ -13,11 +13,6 @@ public class AssemblyGenerator : IAssemblyGenerator
{
private static readonly ILog Log = LogManager.GetLogger(typeof(AssemblyGenerator));
- public AssemblyGenerator()
- {
- XmlConfigurator.Configure(new FileInfo(DefaultSettings.LogFile));
- }
-
public bool Compile(string[] classNames, AssemblyAttributes assemblyAttributes)
{
CSharpCodeProvider codeProvider = new CSharpCodeProvider(new Dictionary<string, string>
@@ -42,6 +37,8 @@ public bool Compile(string[] classNames, AssemblyAttributes assemblyAttributes)
private static void GenerateErrorReport(CompilerErrorCollection errorsCollection)
{
+ XmlConfigurator.Configure(new FileInfo(DefaultSettings.LogFile));
+
if (errorsCollection.Count == 0)
{
return;
@@ -2,7 +2,6 @@ namespace RunTimeCodeGenerator
{
public class DefaultSettings
{
- public static string LogFile = "RunTimCodeGeneratorLogging.xml";
-
+ public static string LogFile = "RunTimCodeGeneratorLoggingConfig.xml";
}
}
@@ -73,8 +73,8 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
- <Content Include="RunTimCodeGeneratorLogging.xml">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ <Content Include="RunTimCodeGeneratorLoggingConfig.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

0 comments on commit 356833e

Please sign in to comment.