Skip to content

Commit

Permalink
Move common properties to Directory.Build.props
Browse files Browse the repository at this point in the history
Also remove obsolete unused test project.
  • Loading branch information
ermshiperete committed Jan 5, 2022
1 parent dc2f89f commit f38166a
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*.vcxproj -whitespace
*.vcxproj.filters -whitespace
*.patch -whitespace
*.props -whitespace
*.svg -whitespace
*.xml -whitespace
*.yml -whitespace
Expand Down
25 changes: 25 additions & 0 deletions source/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net40;net451;netstandard1.6</TargetFrameworks>
<PlatformAlias>netstandard</PlatformAlias>
<OutputPath>$(MSBuildThisFileDirectory)\..\output\$(Configuration)</OutputPath>
<PackageOutputPath>$(MSBuildThisFileDirectory)\..\output</PackageOutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Company>SIL International</Company>
<Authors>SIL International</Authors>
<Copyright>Copyright © 2007-2022 SIL International</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/sillsdev/icu-dotnet</PackageProjectUrl>
<AppendToReleaseNotesProperty><![CDATA[
See full changelog at https://github.com/sillsdev/icu-dotnet/blob/master/CHANGELOG.md.]]>
</AppendToReleaseNotesProperty>
<ChangelogFile>$(MSBuildThisFileDirectory)/../CHANGELOG.md</ChangelogFile>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<LangVersion>7.1</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)/icu.net.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks/> <!-- override value from Directory.Build.props -->
<TargetFramework>netcoreapp3.1</TargetFramework>
<OutputPath>../../output/$(Configuration)</OutputPath>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
30 changes: 0 additions & 30 deletions source/icu.net.netstandard.tests/icu.net.netstandard.tests.csproj

This file was deleted.

File renamed without changes.
6 changes: 0 additions & 6 deletions source/icu.net.tests/icu.net.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Icu.Tests</RootNamespace>
<Configurations>Debug;Release</Configurations>
<OutputPath>../../output/$(Configuration)</OutputPath>
<AssemblyTitle>icu.net.tests</AssemblyTitle>
<Company>SIL</Company>
<Copyright>Copyright © 2018-2022 SIL International</Copyright>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<IsPackable>false</IsPackable>
<LangVersion>8</LangVersion>
</PropertyGroup>
Expand Down
21 changes: 0 additions & 21 deletions source/icu.net/icu.net.csproj
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net40;net451;netstandard1.6</TargetFrameworks>
<PlatformAlias>netstandard</PlatformAlias>
<OutputPath>..\..\output\$(Configuration)</OutputPath>
<PackageOutputPath>..\..\output</PackageOutputPath>
<RootNamespace>Icu</RootNamespace>
<AssemblyName>icu.net</AssemblyName>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Company>SIL International</Company>
<Authors>SIL International</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/sillsdev/icu-dotnet</PackageProjectUrl>
<Copyright>Copyright © 2007-2022 SIL International</Copyright>
<Description>icu.net is a C# Wrapper around ICU4C

This version of icu.net works with (more or less) any version of ICU4C.

NOTE: this package contains the managed wrapper part of icu.net. You'll also have to have the unmanaged binaries of ICU installed. On Linux it is recommended to install the official ICU package that comes with the system. On Windows you can install one of the binary nuget packages, e.g. Icu4c.Win.</Description>
<AppendToReleaseNotesProperty><![CDATA[
See full changelog at https://github.com/sillsdev/icu-dotnet/blob/master/CHANGELOG.md.]]>
</AppendToReleaseNotesProperty>
<ChangelogFile>../../CHANGELOG.md</ChangelogFile>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<LangVersion>7.1</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>icu.net.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<!-- Full .NET Framework properties -->
<PropertyGroup Condition="'$(TargetFramework)' != 'netstandard1.6'">
Expand Down

0 comments on commit f38166a

Please sign in to comment.