Skip to content

Commit

Permalink
update deps; test against net5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKostousov committed Mar 12, 2021
1 parent 843c50b commit e8f79a6
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 143 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.0.50" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="All" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/skbkontur/Excel.TemplateEngine</RepositoryUrl>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<PackageReleaseNotes>$(RepositoryUrl)/releases/tag/v$(MajorMinorVersion)-release</PackageReleaseNotes>
<PackageReleaseNotes>$(RepositoryUrl)/releases</PackageReleaseNotes>
</PropertyGroup>
</Target>

Expand Down
139 changes: 7 additions & 132 deletions Excel.TemplateEngine.Tests/Excel.TemplateEngine.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,151 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net48;net5.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<AssemblyName>SkbKontur.Excel.TemplateEngine.Tests</AssemblyName>
<RootNamespace>SkbKontur.Excel.TemplateEngine.Tests</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="FluentAssertions" Version="5.10.2" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Vostok.Logging.Console" Version="1.0.2" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="Vostok.Logging.Console" Version="1.0.5" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Excel.TemplateEngine\Excel.TemplateEngine.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="FileGeneratingTests\Files\empty.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="FileGeneratingTests\Files\template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\colors.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\columnsSwitching.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\comments.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\commentsWithSeveralAuthors.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\complexTemplate.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dataValidations.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\defaultPriceList.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dictDirectAccessInCheckBoxes_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dictDirectAccessInCheckBoxes_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dictDirectAccessInDropDown_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dictDirectAccessInDropDown_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dictDirectAccess_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dictDirectAccess_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dropDownOtherWorksheet_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\dropDownOtherWorksheet_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\empty.xlsm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\empty.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\emptyEnumerable_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\emptyEnumerable_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\enumerableWithPrimaryKey_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\enumerableWithPrimaryKey_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\formControlsTemplate.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\importAfterCreate_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\importPriceTemplate.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\nonexistentField_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\nonexistent_сheckBoxes_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\nonexistent_сheckBoxes_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\otherSheetDataValidations.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\printingDropDownFromTheOtherWorksheet.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\printingVbaMacros.xlsm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\simpleWithEnumerable_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\simpleWithEnumerable_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\stringArray_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\stringArrayWithComplexStrings_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\withCellsMergingTemplate.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\withFullPathsTemplate.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\сheckBoxes_target.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\сheckBoxes_template.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ObjectPrintingTests\Files\commentsAndOtherSheetDataValidations.xlsx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Content Include="*/Files/*.xls?" CopyToOutputDirectory="Always" />
</ItemGroup>

</Project>
15 changes: 10 additions & 5 deletions Excel.TemplateEngine/Excel.TemplateEngine.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>net471;netstandard2.0</TargetFrameworks>
<AssemblyName>SkbKontur.Excel.TemplateEngine</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="morelinq" Version="3.2.0" />
<PackageReference Include="morelinq" Version="3.3.2" />
<PackageReference Include="C5" Version="2.5.3" />
<PackageReference Include="DocumentFormat.OpenXml" Version="2.11.3" />
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" />
<PackageReference Include="Vostok.Logging.Abstractions" Version="1.0.1" />
<PackageReference Include="DocumentFormat.OpenXml" Version="2.12.3" />
<PackageReference Include="JetBrains.Annotations" Version="2020.3.0" />
<PackageReference Include="Vostok.Logging.Abstractions" Version="1.0.20" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net471'">
<!-- we need to reference System.IO.Packaging directly since net46-targeted DocumentFormat.OpenXml package does not depend on it anymore (see https://github.com/OfficeDev/Open-XML-SDK/pull/783) -->
<PackageReference Include="System.IO.Packaging" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ deploy:
- provider: NuGet
server: https://nuget.org
api_key:
secure: CQ4MGAZ56ySfApnQ2TeZhSYDs+yLTggiu+5EWVsJBF9xn/pKcOO9IelQM6qA0mbf
secure: y2RPf+gBBqffQVm8pg9qZcg99m7K8hsSa4z7VHvIE6t+kuO7r/oIqTVcryZzL93D
skip_symbols: true
on:
SHOULD_PUBLISH_NUGET_PACKAGE: true
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "3.1.200"
"version": "5.0.103"
}
}
}
1 change: 0 additions & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0",
"assemblyVersion": {
"precision": "build"
Expand Down

0 comments on commit e8f79a6

Please sign in to comment.