-
Notifications
You must be signed in to change notification settings - Fork 19
/
Directory.Build.props
45 lines (39 loc) · 2.36 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<Project>
<PropertyGroup>
<!-- Use a single installation of Node.js Extensions for all projects in the solution. Currently, only works on
Windows. -->
<UseGlobalNodeJsExtensionsNpmPackage>true</UseGlobalNodeJsExtensionsNpmPackage>
<NodeJsExtensionsNpmPackageSourcePath>$(MSBuildThisFileDirectory)node_modules/.nx</NodeJsExtensionsNpmPackageSourcePath>
</PropertyGroup>
<PropertyGroup>
<!-- Instruct Node.js Extensions to create .eslintrc, .stylelintrc and .prettierrc files in the current directory, which is the
solution root directory. -->
<NodeJsExtensionsGlobalESLintConfigurationDirectory>$(MSBuildThisFileDirectory)</NodeJsExtensionsGlobalESLintConfigurationDirectory>
<NodeJsExtensionsGlobalStylelintConfigurationDirectory>$(MSBuildThisFileDirectory)</NodeJsExtensionsGlobalStylelintConfigurationDirectory>
<NodeJsExtensionsGlobalPrettierStyleConfigurationDirectory>$(MSBuildThisFileDirectory)</NodeJsExtensionsGlobalPrettierStyleConfigurationDirectory>
</PropertyGroup>
<!-- Copying the Lombiq logo as an icon to all NuGet-published projects. -->
<Target Name="Copy NuGet icon"
AfterTargets="AfterResolveReferences"
Condition="'$(PackageLicenseFile)' != ''">
<Copy SourceFiles="$(MSBuildThisFileDirectory)LombiqSymbolLogoColorWhiteFlaskSquareForNuGetPackages.png"
DestinationFiles="$(ProjectDir)NuGetIcon.png"
SkipUnchangedFiles="true" />
</Target>
<!-- Uncomment this to switch to how NuGet-publishing GitHub Actions builds work, including referencing Lombiq NuGet
package dependencies instead of submodules. -->
<!--<PropertyGroup>
<NuGetBuild>true</NuGetBuild>
</PropertyGroup>-->
<!-- Uncomment this to run .NET static code analyzers during rebuilds. -->
<!--<PropertyGroup>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
</PropertyGroup>-->
<Import Project="tools/Lombiq.Analyzers/Lombiq.Analyzers.OrchardCore/Build.props" />
<!-- This option hasn't improved the build time in this solution, but we'll keep it turned on regardless because it
might be the default one day, it can perhaps help in some cases, and it's not causing any issues.
See https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions/issues/423. -->
<PropertyGroup>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
</PropertyGroup>
</Project>