-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split into common and csharp-specific
- Loading branch information
Showing
16 changed files
with
143 additions
and
103 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,6 +1,7 @@ | ||
.idea/ | ||
.ionide/ | ||
App_Data/ | ||
artifacts/ | ||
packages/ | ||
package/ | ||
obj/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.400", | ||
"version": "8.0.100", | ||
"rollForward": "latestFeature" | ||
}, | ||
"msbuild-sdks": { | ||
"Microsoft.Build.CentralPackageVersions": "2.1.3", | ||
"Microsoft.Build.NoTargets": "3.5.6" | ||
"Microsoft.Build.NoTargets": "3.7.56" | ||
} | ||
} |
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,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
<packageSources> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
</configuration> |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project> | ||
<!-- This file configures C#-specific options --> | ||
|
||
<PropertyGroup> | ||
<AllegroDotnetSdkEnableImplicitUsingsAdjustments Condition="'$(AllegroDotnetSdkEnableImplicitUsingsAdjustments)' == ''">true</AllegroDotnetSdkEnableImplicitUsingsAdjustments> | ||
<Nullable Condition="'$(Nullable)' == ''">enable</Nullable> | ||
<ImplicitUsings Condition="'$(AllegroDotnetSdkEnableImplicitUsingsAdjustments)' == 'true' And '$(ImplicitUsings)' == ''">enable</ImplicitUsings> | ||
<AnalysisLevel Condition="'$(AnalysisLevel)' == ''">latest-Recommended</AnalysisLevel> | ||
<EnforceCodeStyleInBuild Condition="'$(EnforceCodeStyleInBuild)' == ''">true</EnforceCodeStyleInBuild> | ||
</PropertyGroup> | ||
|
||
<!-- XML documentation adjustments --> | ||
<PropertyGroup Condition="'$(AllegroDotnetSdkEnableXmlDocAdjustments)' == 'true'"> | ||
<!-- Never mark missing docs as errors --> | ||
<!-- CS1591: Missing XML comment for publicly visible type or member --> | ||
<WarningsNotAsErrors Condition="'$(GenerateDocumentationFile)' == 'true'">$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors> | ||
</PropertyGroup> | ||
|
||
<!-- Exclude selected warnings in test projects --> | ||
<PropertyGroup Condition="$(MSBuildProjectName.Contains(`Tests`))"> | ||
<!-- CA1707: Identifiers should not contain underscores --> | ||
<NoWarn>$(NoWarn);CA1707</NoWarn> | ||
<!-- CS1591: Missing XML comment for publicly visible type or member --> | ||
<NoWarn Condition="'$(GenerateDocumentationFile)' == 'true' And '$(AllegroDotnetSdkEnableXmlDocAdjustments)' == 'true'">$(NoWarn);CS1591</NoWarn> | ||
</PropertyGroup> | ||
|
||
</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,30 @@ | ||
<Project> | ||
|
||
<!-- Setup this SDKs defaults --> | ||
<PropertyGroup> | ||
<!-- Enable default analyzers if CPM is not used. --> | ||
<UseAllegroDotnetSdkDefaultAnalyzers Condition="'$(UseAllegroDotnetSdkDefaultAnalyzers)' == '' And '$(ManagePackageVersionsCentrally)' != 'true'">true</UseAllegroDotnetSdkDefaultAnalyzers> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(UseAllegroDotnetSdkDefaultAnalyzers)' == 'true'"> | ||
<AllegroDotnetSdkEnableAsyncFixer Condition="'$(AllegroDotnetSdkEnableAsyncFixer)' == ''">true</AllegroDotnetSdkEnableAsyncFixer> | ||
<AllegroDotnetSdkEnableMeziantou Condition="'$(AllegroDotnetSdkEnableMeziantou)' == ''">true</AllegroDotnetSdkEnableMeziantou> | ||
<AllegroDotnetSdkEnableStyleCop Condition="'$(AllegroDotnetSdkEnableStyleCop)' == ''">true</AllegroDotnetSdkEnableStyleCop> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(AllegroDotnetSdkEnableStyleCop)' == 'true'"> | ||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Label="ImplicitUsings adjustments" Condition="('$(ImplicitUsings)' == 'true' Or '$(ImplicitUsings)' == 'enable') And '$(AllegroDotnetSdkEnableImplicitUsingsAdjustments)' == 'true'"> | ||
<!-- Add Immutable as we often use them --> | ||
<Using Include="System.Collections.Immutable" /> | ||
<!-- Remove Logging because it conflicts with Serilog which we use by default --> | ||
<Using Remove="Microsoft.Extensions.Logging" /> | ||
<!-- Remove Http because we want to explicitly enforce devs to think twice before using System.Net.Http --> | ||
<Using Remove="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
<Import Project="Allegro.NET.Sdk.CSharp.Analyzers.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<Project> | ||
<!-- This file configures language-independent options --> | ||
|
||
<!-- Setup this SDKs defaults --> | ||
<PropertyGroup> | ||
<AllegroDotnetSdkEnableXmlDocAdjustments Condition="'$(AllegroDotnetSdkEnableXmlDocAdjustments)' == ''">true</AllegroDotnetSdkEnableXmlDocAdjustments> | ||
</PropertyGroup> | ||
|
||
<!-- Warnings as Errors --> | ||
<PropertyGroup> | ||
<!-- Some devs want Warnings as Errors in local IDE development --> | ||
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == '' And '$(BuildingByReSharper)' == 'true'">true</TreatWarningsAsErrors> | ||
<!-- Enable Warnings as Errors in CI --> | ||
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == '' And '$(CI)' != ''">true</TreatWarningsAsErrors> | ||
<!-- LEGACY: enable by default until people explicitly set their preferences --> | ||
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == ''">true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
<!-- XML documentation adjustments --> | ||
<PropertyGroup Condition="'$(AllegroDotnetSdkEnableXmlDocAdjustments)' == 'true'"> | ||
<!-- Documentation can be disabled per-project --> | ||
<GenerateDocumentationFile Condition="'$(GenerateDocumentationFile)' == ''">true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
</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,29 @@ | ||
<Project> | ||
|
||
<!-- Setup this SDKs defaults --> | ||
<PropertyGroup> | ||
<AllegroDotnetSdkEnableGlobalEditorConfig Condition="'$(AllegroDotnetSdkEnableGlobalEditorConfig)' == ''">true</AllegroDotnetSdkEnableGlobalEditorConfig> | ||
<AllegroDotnetSdkEnablePackAdjustments Condition="'$(AllegroDotnetSdkEnablePackAdjustments)' == ''">true</AllegroDotnetSdkEnablePackAdjustments> | ||
<AllegroDotnetSdkEnableAzureArtifactsAdjustments Condition="'$(AllegroDotnetSdkEnableAzureArtifactsAdjustments)' == ''">false</AllegroDotnetSdkEnableAzureArtifactsAdjustments> | ||
</PropertyGroup> | ||
|
||
<!-- Configure nuget-packing for Library/Packable non-test projects --> | ||
<PropertyGroup Condition="'$(AllegroDotnetSdkEnablePackAdjustments)' == 'true' And ('$(OutputType)' == 'Library' Or '$(IsPackable)' != 'false') And '$(IsTestProject)' != 'true'"> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(AllegroDotnetSdkEnableAzureArtifactsAdjustments)' == 'true'"> | ||
<!-- Embed PDBs in .nupkg because Azure Artifacts doesn't support .snupkg yet --> | ||
<AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb | ||
</AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(AllegroDotnetSdkEnableGlobalEditorConfig)' == 'true'"> | ||
<GlobalAnalyzerConfigFiles Include="$(MSBuildThisFileDirectory)editor.globalconfig" Link="editor.globalconfig" /> | ||
</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,6 @@ | ||
<Project> | ||
|
||
<Import Project="Allegro.NET.Sdk.Common.props" /> | ||
<Import Project="Allegro.NET.Sdk.CSharp.props" Condition="'$(MSBuildProjectExtension)' == '.csproj'" /> | ||
|
||
</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,6 @@ | ||
<Project> | ||
|
||
<Import Project="Allegro.NET.Sdk.Common.targets" /> | ||
<Import Project="Allegro.NET.Sdk.CSharp.targets" Condition="'$(MSBuildProjectExtension)' == '.csproj'" /> | ||
|
||
</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
41 changes: 0 additions & 41 deletions
41
src/Allegro.DotnetSdk/Sdk/UseAllegroDotnetSdkDefaults.props
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
src/Allegro.DotnetSdk/Sdk/UseAllegroDotnetSdkDefaults.targets
This file was deleted.
Oops, something went wrong.