Skip to content

Commit

Permalink
✨ Adds build props (#17)
Browse files Browse the repository at this point in the history
Adds more build props.

+semver:minor
  • Loading branch information
connorjs authored Nov 28, 2024
1 parent 07d882b commit 3637e03
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Build
artifacts/

## IDE
*.user
.idea/
.vs/
8 changes: 1 addition & 7 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<Project>
<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup>
<UseArtifactsOutput>true</UseArtifactsOutput>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)connorjs-analyzers\build\connorjs-analyzers.props" />
</Project>
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ My personal .NET analyzer package.
Includes `StyleCop.Analyzers` and `SonarAnalyzer.CSharp` analyzer packages.
Configures rules in a `.globalconfig` file.
Turns off all rules that conflict with `CSharpier`.

Also includes .NET build properties such as `UseArtifactsOutput` and C#’s `Nullable`.
1 change: 0 additions & 1 deletion connorjs-analyzers.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "root", "root", "{E393E29D-8
.gitignore = .gitignore
.github\workflows\pipeline.yaml = .github\workflows\pipeline.yaml
ci-build.ps1 = ci-build.ps1
Directory.Build.props = Directory.Build.props
GitVersion.yml = GitVersion.yml
global.json = global.json
LICENSE = LICENSE
Expand Down
8 changes: 7 additions & 1 deletion connorjs-analyzers/build/connorjs-analyzers.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" />
</ItemGroup>

<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup>
<UseArtifactsOutput>true</UseArtifactsOutput>

<!-- MSBuild properties (for .NET) -->
<!-- https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props -->

Expand Down Expand Up @@ -47,7 +53,7 @@
</PropertyGroup>

<!-- Overrides for test projects -->
<PropertyGroup Condition="$(IsTestProject)">
<PropertyGroup Condition="$(IsTestProject) == 'true'">
<!-- Test projects do not generate documentation -->
<GenerateDocumentationFile>false</GenerateDocumentationFile>

Expand Down

0 comments on commit 3637e03

Please sign in to comment.