Skip to content

Commit

Permalink
Fix EditorConfigFilePath declaration in SolutionDefaults.props file
Browse files Browse the repository at this point in the history
  • Loading branch information
FrediKats committed May 12, 2024
1 parent 8642e34 commit 41d9efd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Sources/Kysect.SolutionDefaults.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageLicenseExpression Condition="$(SolutionDefaultsUseLicense) != false">MIT</PackageLicenseExpression>
</PropertyGroup>

<PropertyGroup Lable="Analyzers" Condition="$(SolutionDefaultsUseAnalyzersOptions) != false">
<PropertyGroup Label="Analyzers" Condition="$(SolutionDefaultsUseAnalyzersOptions) != false">
<Nullable>enable</Nullable>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
Expand Down Expand Up @@ -57,13 +57,16 @@
</None>
</ItemGroup>

<ItemGroup>
<EditorConfigFilePath Include="$(MSBuildThisFileDirectory)../content/.editorconfig" />
</ItemGroup>

<!-- *Undefined* is deafult value when dotnet try to build one project -->
<Target
Name="SolutionDefaultsCopyEditorConfig"
BeforeTargets="BeforeBuild"
Condition="$(SolutionDir) != '*Undefined*' and $(SolutionDir) != '' and $(SolutionDefaultsCopyEditorConfig) != 'false'">
<EditorConfigFilePath Include="$(MSBuildThisFileDirectory)../content/.editorconfig" />
<Message Text="Copying the .editorconfig file from '@(EditorConfigFilesToCopy)' to '$(SolutionDir)'"></Message>
<Message Text="Copying the .editorconfig file from '@(EditorConfigFilePath)' to '$(SolutionDir)'"></Message>
<Copy
SourceFiles="@(EditorConfigFilePath)"
DestinationFolder="$(SolutionDir)"
Expand Down

0 comments on commit 41d9efd

Please sign in to comment.