Skip to content

Commit

Permalink
Merge pull request #602 from jmarolf/log-msbuild-location
Browse files Browse the repository at this point in the history
adding msbuild path loggin on highest verbosity
  • Loading branch information
jmarolf committed Mar 9, 2020
2 parents 352e3bb + a77c9b0 commit 2ace784
Show file tree
Hide file tree
Showing 15 changed files with 101 additions and 29 deletions.
6 changes: 5 additions & 1 deletion src/Program.cs
Expand Up @@ -129,9 +129,13 @@ public static async Task<int> Run(string folder, string workspace, string verbos
// register an assembly loader that will load assemblies from the msbuild path with
// equal or higher version numbers than requested.
LooseVersionAssemblyLoader.Register(msBuildInstance.MSBuildPath);

Build.Locator.MSBuildLocator.RegisterInstance(msBuildInstance);

if (logLevel == LogLevel.Trace)
{
logger.LogInformation(Resources.Using_msbuildexe_located_in_0, msBuildInstance.MSBuildPath);
}

var fileMatcher = SourceFileMatcher.CreateMatcher(include, exclude);

var formatOptions = new FormatOptions(
Expand Down
59 changes: 31 additions & 28 deletions src/Resources.resx
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
Expand All @@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
Expand Down Expand Up @@ -219,4 +219,7 @@
<data name="A_list_of_relative_file_or_folder_paths_to_exclude_from_formatting" xml:space="preserve">
<value>A list of relative file or folder paths to exclude from formatting.</value>
</data>
</root>
<data name="Using_msbuildexe_located_in_0" xml:space="preserve">
<value>Using MSBuild.exe located in '{0}'</value>
</data>
</root>
5 changes: 5 additions & 0 deletions src/xlf/Resources.cs.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.de.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.es.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.fr.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.it.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.ja.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.ko.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.pl.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.pt-BR.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.ru.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.tr.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.zh-Hans.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.zh-Hant.xlf
Expand Up @@ -162,6 +162,11 @@
<target state="new">Formatted code file '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="Using_msbuildexe_located_in_0">
<source>Using MSBuild.exe located in '{0}'</source>
<target state="new">Using MSBuild.exe located in '{0}'</target>
<note />
</trans-unit>
<trans-unit id="Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings">
<source>Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</source>
<target state="new">Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.</target>
Expand Down

0 comments on commit 2ace784

Please sign in to comment.