Skip to content

Commit c82ba27

Browse files
committed
Turn off logging by default, centralize assembly info
1 parent 32fe921 commit c82ba27

File tree

12 files changed

+32
-143
lines changed

12 files changed

+32
-143
lines changed

src/InEngine.Commands/InEngine.Commands.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<Compile Include="Sample\SayHello.cs" />
4040
<Compile Include="Options.cs" />
4141
<Compile Include="MoreOptions.cs" />
42+
<Compile Include="..\SharedAssemblyInfo.cs">
43+
<Link>Properties\SharedAssemblyInfo.cs</Link>
44+
</Compile>
4245
</ItemGroup>
4346
<ItemGroup>
4447
<Folder Include="Sample\" />
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
4-
// Information about this assembly is defined by the following attributes.
5-
// Change them to the values specific to your project.
62

73
[assembly: AssemblyTitle("InEngine.Commands")]
8-
[assembly: AssemblyDescription("")]
9-
[assembly: AssemblyConfiguration("")]
10-
[assembly: AssemblyCompany("")]
11-
[assembly: AssemblyProduct("")]
12-
[assembly: AssemblyCopyright("${AuthorCopyright}")]
13-
[assembly: AssemblyTrademark("")]
14-
[assembly: AssemblyCulture("")]
15-
16-
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
17-
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
18-
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
19-
20-
[assembly: AssemblyVersion("1.0.*")]
21-
22-
// The following attributes are used to specify the signing key for the assembly,
23-
// if desired. See the Mono documentation for more information about signing.
24-
25-
//[assembly: AssemblyDelaySign(false)]
26-
//[assembly: AssemblyKeyFile("")]

src/InEngine.Core/InEngine.Core.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292
<Compile Include="Plugin.cs" />
9393
<Compile Include="IJobs.cs" />
9494
<Compile Include="IPluginType.cs" />
95+
<Compile Include="..\SharedAssemblyInfo.cs">
96+
<Link>Properties\SharedAssemblyInfo.cs</Link>
97+
</Compile>
9598
</ItemGroup>
9699
<ItemGroup>
97100
<None Include="packages.config" />
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
42

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
83
[assembly: AssemblyTitle("InEngine.Core")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("InEngine.Core")]
13-
[assembly: AssemblyCopyright("Copyright © 2017")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("1c604c4f-3f98-483c-89e3-c951be03366a")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]

src/InEngine.Net.sln

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{C82B03A2-0186-467D-9FBA-AA79F7A64E6E}"
77
ProjectSection(SolutionItems) = preProject
88
README.md = README.md
9+
SharedAssemblyInfo.cs = SharedAssemblyInfo.cs
910
EndProjectSection
1011
EndProject
1112
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InEngineScheduler", "InEngineScheduler\InEngineScheduler.csproj", "{93B8F28C-2A8A-4BC9-9D9F-6FF3CCEE5D6E}"

src/InEngineCli/InEngineCli.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
<Compile Include="Properties\AssemblyInfo.cs" />
6060
<Compile Include="Options.cs" />
6161
<Compile Include="ArgumentInterpreter.cs" />
62+
<Compile Include="..\SharedAssemblyInfo.cs">
63+
<Link>Properties\SharedAssemblyInfo.cs</Link>
64+
</Compile>
6265
</ItemGroup>
6366
<ItemGroup>
6467
<Content Include="NLog.config">

src/InEngineCli/NLog.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
</targets>
1212

1313
<rules>
14-
<logger name="*" minlevel="Trace" writeTo="c" />
14+
<!-- <logger name="*" minlevel="Error" writeTo="c" />-->
1515
</rules>
1616
</nlog>
+1-34
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
42

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("InEngine")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("InEngine")]
13-
[assembly: AssemblyCopyright("Copyright © 2017")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("df1a45fd-4887-4d65-8bad-ee17b70fe79d")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
3+
[assembly: AssemblyTitle("InEngine.Core")]

src/InEngineScheduler/InEngineScheduler.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
<Compile Include="Jobs.cs" />
5252
<Compile Include="ServerHost.cs" />
5353
<Compile Include="InEngineServerInstaller.cs" />
54+
<Compile Include="..\SharedAssemblyInfo.cs">
55+
<Link>Properties\SharedAssemblyInfo.cs</Link>
56+
</Compile>
5457
</ItemGroup>
5558
<ItemGroup>
5659
<None Include="packages.config" />

src/InEngineScheduler/NLog.config

+3-28
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,13 @@
44
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
55
autoReload="true"
66
throwExceptions="false"
7-
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
7+
internalLogLevel="Trace" internalLogFile="nlog-internal.log">
88

9-
<!-- optional, add some variables
10-
https://github.com/nlog/NLog/wiki/Configuration-file#variables
11-
-->
12-
<variable name="myvar" value="myvalue"/>
13-
14-
<!--
15-
See https://github.com/nlog/nlog/wiki/Configuration-file
16-
for information on customizing logging rules and outputs.
17-
-->
189
<targets>
19-
20-
<!--
21-
add your targets here
22-
See https://github.com/nlog/NLog/wiki/Targets for possible targets.
23-
See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
24-
-->
25-
26-
<!--
27-
Write events to a file with the date in the filename.
28-
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
29-
layout="${longdate} ${uppercase:${level}} ${message}" />
30-
-->
10+
<target name="c" xsi:type="Console" layout="${longdate} ${callsite} ${level} ${message}"/>
3111
</targets>
3212

3313
<rules>
34-
<!-- add your logging rules here -->
35-
36-
<!--
37-
Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace) to "f"
38-
<logger name="*" minlevel="Debug" writeTo="f" />
39-
-->
14+
<!-- <logger name="*" minlevel="Error" writeTo="c" />-->
4015
</rules>
4116
</nlog>
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32

4-
// Information about this assembly is defined by the following attributes.
5-
// Change them to the values specific to your project.
6-
7-
[assembly: AssemblyTitle("InEngineScheduler")]
8-
[assembly: AssemblyDescription("")]
9-
[assembly: AssemblyConfiguration("")]
10-
[assembly: AssemblyCompany("")]
11-
[assembly: AssemblyProduct("")]
12-
[assembly: AssemblyCopyright("${AuthorCopyright}")]
13-
[assembly: AssemblyTrademark("")]
14-
[assembly: AssemblyCulture("")]
15-
16-
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
17-
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
18-
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
19-
20-
[assembly: AssemblyVersion("1.0.*")]
21-
22-
// The following attributes are used to specify the signing key for the assembly,
23-
// if desired. See the Mono documentation for more information about signing.
24-
25-
//[assembly: AssemblyDelaySign(false)]
26-
//[assembly: AssemblyKeyFile("")]
3+
[assembly: AssemblyTitle("InEngine.Core")]

src/SharedAssemblyInfo.cs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Reflection;
2+
3+
// Assembly Info that is shared across the product
4+
[assembly: AssemblyProduct("InEngine.NET")]
5+
[assembly: AssemblyVersion("3.0.0.*")]
6+
[assembly: AssemblyInformationalVersion("3.0.0")]
7+
8+
[assembly: AssemblyConfiguration("")]
9+
[assembly: AssemblyCompany("Ethan Hann")]
10+
[assembly: AssemblyCopyright("Copyright © Ethan Hann 2017")]
11+
[assembly: AssemblyTrademark("")]
12+
[assembly: AssemblyCulture("")]
13+
[assembly: AssemblyDescription("")]

0 commit comments

Comments
 (0)