This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use as existing project + enforce StyleCop
- Loading branch information
1 parent
27f743d
commit 807d2c4
Showing
36 changed files
with
290 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,3 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<_LibraryName>flecs</_LibraryName> | ||
<_GitDirectoryPath>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .gitignore))/</_GitDirectoryPath> | ||
<_LibraryDirectoryPath>$(_GitDirectoryPath)/lib</_LibraryDirectoryPath> | ||
<_SourceCodeDirectoryPath>$(_GitDirectoryPath)/src/cs/production/$(_LibraryName)/</_SourceCodeDirectoryPath> | ||
<_LinkDirectoryPath>$(_LibraryName)/</_LinkDirectoryPath> | ||
<_IsEnabledSourceCode Condition=" '$(_IsEnabledSourceCode)' == '' ">true</_IsEnabledSourceCode> | ||
</PropertyGroup> | ||
|
||
<!-- C# source code--> | ||
<ItemGroup Condition=" '$(_IsEnabledSourceCode)' == 'true' "> | ||
<Compile Include="$(_SourceCodeDirectoryPath)/**/*.cs" > | ||
<Pack>false</Pack> | ||
<Link>$(_LinkDirectoryPath)/%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</Compile> | ||
<Compile Remove="$(_SourceCodeDirectoryPath)/obj/**/*.cs" /> | ||
<Compile Remove="$(_SourceCodeDirectoryPath)/bin/**/*.cs" /> | ||
</ItemGroup> | ||
|
||
<!-- Implicit global usings--> | ||
<ItemGroup Condition=" '$(ImplicitUsings)' == 'true' "> | ||
<Using Include="System.Runtime.InteropServices" /> | ||
<Using Include="flecs_hub" /> | ||
<Using Include="flecs_hub.flecs" Static="true" /> | ||
<Using Include="flecs_hub.flecs.Runtime" Static="true" /> | ||
</ItemGroup> | ||
|
||
<!-- Dynamic link libraries --> | ||
<ItemGroup> | ||
<Content Include="$(_LibraryDirectoryPath)/*.dll"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<Pack>false</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="$(_LibraryDirectoryPath)/*.dylib"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<Pack>false</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="$(_LibraryDirectoryPath)/*.so"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<Pack>false</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# NOTE: Requires .NET 5 SDK (VS2019 16.8 or later) | ||
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#global-analyzerconfig | ||
is_global = true | ||
|
||
dotnet_diagnostic.CA1815.severity = none | ||
|
||
# StyleCop Rules | ||
## Description: StyleCop code analysis rules for C# projects. | ||
dotnet_diagnostic.SA1401.severity = none | ||
dotnet_diagnostic.SA1600.severity = none | ||
dotnet_diagnostic.SA1649.severity = none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,56 @@ | ||
<Project> | ||
|
||
<!-- MSBuild settings --> | ||
<PropertyGroup> | ||
<NoWarn>$(NoWarn);CA1303;CA1707</NoWarn> | ||
<BaseOutputPath>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .gitignore))/bin/$(MSBuildProjectName)</BaseOutputPath> | ||
<BaseIntermediateOutputPath>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .gitignore))/obj/$(MSBuildProjectName)/$(Configuration)</BaseIntermediateOutputPath> | ||
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath> | ||
</PropertyGroup> | ||
|
||
<!-- Implicit global usings--> | ||
<ItemGroup Condition=" '$(ImplicitUsings)' == 'true' "> | ||
<Using Include="System.Runtime.InteropServices" /> | ||
<Using Include="flecs_hub" /> | ||
<Using Include="flecs_hub.flecs" Static="true" /> | ||
<Using Include="bottlenoselabs.C2CS" /> | ||
</ItemGroup> | ||
|
||
<!-- .NET8: Use artifacts path for bin/obj output folders --> | ||
<PropertyGroup> | ||
<UseArtifactsOutput>true</UseArtifactsOutput> | ||
<ArtifactsPath>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), .gitignore))/artifacts</ArtifactsPath> | ||
</PropertyGroup> | ||
|
||
<!-- NuGet package references --> | ||
<ItemGroup> | ||
<PackageReference Include="bottlenoselabs.Common.Tools" Version="*"> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="StyleCop.Analyzers.Unstable" Version="*"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<!-- Dynamic link libraries --> | ||
<PropertyGroup> | ||
<LibraryName>flecs</LibraryName> | ||
<LibraryDirectoryPath>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory),.gitignore))/lib</LibraryDirectoryPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="$(LibraryDirectoryPath)/*.dll"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<Pack>false</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="$(LibraryDirectoryPath)/*.dylib"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<Pack>false</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="$(LibraryDirectoryPath)/*.so"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<Pack>false</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<!-- bottlenose.Common.Tools project settings --> | ||
<PropertyGroup> | ||
<StyleCopSettingsFilePath>$(MSBuildThisFileDirectory)StyleCop.json</StyleCopSettingsFilePath> | ||
</PropertyGroup> | ||
|
||
</Project> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<Project> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)/../Directory.Build.props" /> | ||
<Import Project="../Directory.Build.props" /> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<Project> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)/../Directory.Build.targets" /> | ||
<Import Project="../Directory.Build.targets" /> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.