Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
# Relative path that refers to any dll files prefixed by Foo in the solution
**/Foo*.dll

# Absolute path that refers to any dll files in any sub-directories of the lib directory of the drive T
T:/lib/**/*.dll

 

Special expressions In some advanced use cases (which should not occur too often if you follow our best practices), the following placeholders can be used in path patterns:

ExpressionDescription
$(SolutionDir)Root directory of the solution, this is the directory where the ".sln" file is located.
$(ProjectName)Name of the currently analyzed project of the solution.
$(AssemblyName)Name of the assembly generated by the currently analyzed solution. Works only for non-ASP projects.
$(AssemblyVersion)Version of the assembly generated by the currently analyzed solution.
$(OutputType)Type of the assembly. Can be "dll" or "exe".
$(RootNamespace)Root namespace of the currently analyzed project.

For example:

Code Block
languagebash
$(SolutionDir)/../lib/**.*dll
$(SolutionDir)/BUILD/**/$(AssemblyName).$(OutputType)
Note
titleAvoid too much complex configuration of paths

If you start using absolute paths or placeholders in path patterns, this means that your configuration becomes more complex and you are likely to face issues sooner or later. Everything has been done to make sure you need to write as few configuration lines as possible.

 

Advanced Usage

Setting the .NET SDK to use

...