-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .props and .targets to reduce duplication in project files (#149)
- Loading branch information
Showing
40 changed files
with
171 additions
and
498 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
This file was deleted.
Oops, something went wrong.
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,13 +1,46 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Version>0.31.8.0</Version> | ||
<AssemblyVersion>0.31.8.0</AssemblyVersion> | ||
<FileVersion>0.31.8.0</FileVersion> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
<Authors>Mads Dabros</Authors> | ||
<Copyright>Copyright © Mads Dabros 2014</Copyright> | ||
<PackageLicenseUrl>https://github.com/mdabros/SharpLearning/blob/master/LICENSE.md</PackageLicenseUrl> | ||
<PropertyGroup> | ||
<AssemblyVersion>0.31.0</AssemblyVersion> | ||
<FileVersion>0.31.9</FileVersion> | ||
<InformationalVersion>$(FileVersion)</InformationalVersion> | ||
<PackageVersion>$(InformationalVersion)</PackageVersion> | ||
<!--https://github.com/dotnet/sourcelink/blob/main/docs/README.md#includesourcerevisionininformationalversion--> | ||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> | ||
|
||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/mdabros/SharpLearning</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/mdabros/SharpLearning</RepositoryUrl> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
|
||
<NeutralLanguage>en</NeutralLanguage> | ||
<Authors>mdabros</Authors> | ||
<Copyright>Copyright © mdabros 2024</Copyright> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
|
||
<LibraryTargetFramework>netstandard2.0</LibraryTargetFramework> | ||
<TestTargetFramework>net8</TestTargetFramework> | ||
|
||
<LangVersion>12.0</LangVersion> | ||
<Deterministic>true</Deterministic> | ||
<DebugType>portable</DebugType> | ||
|
||
<PublishRelease>true</PublishRelease> | ||
<PackRelease>true</PackRelease> | ||
|
||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
|
||
<!--Disabled for now--> | ||
<!--<AnalysisLevel>latest</AnalysisLevel> | ||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | ||
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>--> | ||
<NoWarn>CS1591</NoWarn> | ||
|
||
</PropertyGroup> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)\OutputBuildProps.props" /> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)\SourceLink.Github.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Project> | ||
<Import Project="$(MSBuildThisFileDirectory)\OutputBuildTargets.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<OutDirSpecified>$(BaseOutDir)_$(TargetFramework)</OutDirSpecified> | ||
<OutDirSpecified Condition="$(RuntimeIdentifier) != ''">$(OutDirSpecified)_$(RuntimeIdentifier)</OutDirSpecified> | ||
<OutDir>$(OutDirSpecified)\</OutDir> | ||
<TargetDir>$(OutDir)</TargetDir> | ||
<PublishDir>$(BasePublishDir)$(ProjectBuildDirectoryName)</PublishDir> | ||
<PublishDir Condition="$(TargetFramework) != ''">$(PublishDir)_$(TargetFramework)</PublishDir> | ||
<PublishDir Condition="$(RuntimeIdentifier) != ''">$(PublishDir)_$(RuntimeIdentifier)</PublishDir> | ||
</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,20 @@ | ||
<Project> | ||
<PropertyGroup Label="OutputBuildProps"> | ||
<Platform Condition="$(Platform) == ''">AnyCPU</Platform> | ||
<Configuration Condition="$(Configuration) == ''">Debug</Configuration> | ||
|
||
<!-- Custom properties --> | ||
<BuildDir>$(MSBuildThisFileDirectory)..\build\</BuildDir> | ||
<ProjectBuildDirectoryName>$(MSBuildProjectName)_$(Platform)_$(Configuration)</ProjectBuildDirectoryName> | ||
<OutputPathWithoutEndSlash>$(BuildDir)$(ProjectBuildDirectoryName)</OutputPathWithoutEndSlash> | ||
<BaseOutDir>$(OutputPathWithoutEndSlash)</BaseOutDir> | ||
<BasePublishDir>$(MSBuildThisFileDirectory)..\publish\</BasePublishDir> | ||
|
||
<!-- MSBuild defined properties redefined --> | ||
<BaseIntermediateOutputPath>$(BuildDir)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath> | ||
<BaseOutputPath>$(BuildDir)bin\$(MSBuildProjectName)\</BaseOutputPath> | ||
<PackageOutputPath>$(BaseOutDir)</PackageOutputPath> | ||
|
||
<BeforeTargetFrameworkInferenceTargets>$(MSBuildThisFileDirectory)OutputBuildProject.props</BeforeTargetFrameworkInferenceTargets> | ||
</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,2 @@ | ||
<Project> | ||
</Project> |
16 changes: 1 addition & 15 deletions
16
src/SharpLearning.AdaBoost.Test/SharpLearning.AdaBoost.Test.csproj
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
18 changes: 1 addition & 17 deletions
18
src/SharpLearning.Common.Interfaces/SharpLearning.Common.Interfaces.csproj
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
20 changes: 1 addition & 19 deletions
20
src/SharpLearning.Containers/SharpLearning.Containers.csproj
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,28 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0</TargetFrameworks> | ||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||
<TargetFrameworks>$(LibraryTargetFramework)</TargetFrameworks> | ||
<PackageId>SharpLearning.Containers</PackageId> | ||
<Description>Provides containers and base extension methods for SharpLearning.</Description> | ||
<Copyright>Copyright © Mads Dabros 2014</Copyright> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<DocumentationFile>..\..\Build\Release\netstandard2.0\SharpLearning.Containers.xml</DocumentationFile> | ||
<OutputPath>..\..\Build\Release\</OutputPath> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<NoWarn>1701;1702;1705</NoWarn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<OutputPath>..\..\Build\Debug\</OutputPath> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<NoWarn>1701;1702;1705</NoWarn> | ||
</PropertyGroup> | ||
|
||
</Project> |
16 changes: 1 addition & 15 deletions
16
src/SharpLearning.CrossValidation.Test/SharpLearning.CrossValidation.Test.csproj
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
20 changes: 3 additions & 17 deletions
20
src/SharpLearning.CrossValidation/SharpLearning.CrossValidation.csproj
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.