Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual-targeting netcoreapp3.1 #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions Harvest.Net.Tests/Harvest.Net.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" />
<Import Project="..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -17,7 +17,8 @@
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
<NuGetPackageImportStamp>5894141a</NuGetPackageImportStamp>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand All @@ -28,7 +29,8 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>..\Harvest.Net.UnitTests\Harvest.Net.UnitTests.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>
</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -37,7 +39,8 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>..\Harvest.Net.UnitTests\Harvest.Net.UnitTests.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>
</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -116,9 +119,9 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props'))" />
<Error Condition="!Exists('..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
2 changes: 1 addition & 1 deletion Harvest.Net.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="xunit" version="1.9.2" targetFramework="net45" />
<package id="xunit.runner.visualstudio" version="0.99.9-build1021" targetFramework="net45" />
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net452" />
<package id="xunit.runners" version="1.9.2" targetFramework="net45" />
</packages>
306 changes: 306 additions & 0 deletions Harvest.Net.UnitTests/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
# NOTE: Requires **VS2019 16.3** or later

# Microsoft Managed Recommended Rules
# Description: These rules focus on the most critical problems in your code, including potential security holes, application crashes, and other important logic and design errors. It is recommended to include this rule set in any custom rule set you create for your projects.

# Code files
[*.{cs,vb}]


dotnet_diagnostic.SA1000.severity = error

dotnet_diagnostic.SA1001.severity = error

dotnet_diagnostic.SA1002.severity = error

dotnet_diagnostic.SA1003.severity = error

dotnet_diagnostic.SA1004.severity = none

dotnet_diagnostic.SA1005.severity = suggestion

dotnet_diagnostic.SA1007.severity = error

dotnet_diagnostic.SA1008.severity = error

dotnet_diagnostic.SA1009.severity = error

dotnet_diagnostic.SA1010.severity = error

dotnet_diagnostic.SA1011.severity = error

dotnet_diagnostic.SA1012.severity = error

dotnet_diagnostic.SA1013.severity = error

dotnet_diagnostic.SA1014.severity = error

dotnet_diagnostic.SA1015.severity = error

dotnet_diagnostic.SA1016.severity = error

dotnet_diagnostic.SA1017.severity = error

dotnet_diagnostic.SA1018.severity = error

dotnet_diagnostic.SA1019.severity = error

dotnet_diagnostic.SA1020.severity = error

dotnet_diagnostic.SA1021.severity = error

dotnet_diagnostic.SA1022.severity = error

dotnet_diagnostic.SA1023.severity = none

dotnet_diagnostic.SA1024.severity = error

dotnet_diagnostic.SA1026.severity = error

dotnet_diagnostic.SA1028.severity = suggestion

dotnet_diagnostic.SA1101.severity = none

dotnet_diagnostic.SA1102.severity = error

dotnet_diagnostic.SA1103.severity = error

dotnet_diagnostic.SA1104.severity = error

dotnet_diagnostic.SA1105.severity = error

dotnet_diagnostic.SA1106.severity = error

dotnet_diagnostic.SA1107.severity = error

dotnet_diagnostic.SA1108.severity = none

dotnet_diagnostic.SA1114.severity = error

dotnet_diagnostic.SA1115.severity = error

dotnet_diagnostic.SA1116.severity = none

dotnet_diagnostic.SA1117.severity = none

dotnet_diagnostic.SA1118.severity = error

dotnet_diagnostic.SA1119.severity = error

dotnet_diagnostic.SA1121.severity = error

dotnet_diagnostic.SA1123.severity = none

dotnet_diagnostic.SA1124.severity = none

dotnet_diagnostic.SA1125.severity = error

dotnet_diagnostic.SA1127.severity = error

dotnet_diagnostic.SA1128.severity = error

dotnet_diagnostic.SA1129.severity = error

dotnet_diagnostic.SA1130.severity = error

dotnet_diagnostic.SA1131.severity = error

dotnet_diagnostic.SA1132.severity = error

dotnet_diagnostic.SA1133.severity = error

dotnet_diagnostic.SA1134.severity = none

dotnet_diagnostic.SA1200.severity = none

dotnet_diagnostic.SA1201.severity = none

dotnet_diagnostic.SA1202.severity = none

dotnet_diagnostic.SA1203.severity = none

dotnet_diagnostic.SA1204.severity = none

dotnet_diagnostic.SA1205.severity = none

dotnet_diagnostic.SA1206.severity = none

dotnet_diagnostic.SA1207.severity = none

dotnet_diagnostic.SA1208.severity = none

dotnet_diagnostic.SA1212.severity = none

dotnet_diagnostic.SA1213.severity = none

dotnet_diagnostic.SA1214.severity = none

dotnet_diagnostic.SA1216.severity = none

dotnet_diagnostic.SA1217.severity = none

dotnet_diagnostic.SA1300.severity = none

dotnet_diagnostic.SA1302.severity = error

dotnet_diagnostic.SA1303.severity = none

dotnet_diagnostic.SA1304.severity = none

dotnet_diagnostic.SA1305.severity = error

dotnet_diagnostic.SA1306.severity = none

dotnet_diagnostic.SA1307.severity = error

dotnet_diagnostic.SA1308.severity = error

dotnet_diagnostic.SA1309.severity = none

dotnet_diagnostic.SA1310.severity = none

dotnet_diagnostic.SA1311.severity = none

dotnet_diagnostic.SA1312.severity = none

dotnet_diagnostic.SA1313.severity = none

dotnet_diagnostic.SA1400.severity = none

dotnet_diagnostic.SA1401.severity = none

dotnet_diagnostic.SA1402.severity = none

dotnet_diagnostic.SA1403.severity = none

dotnet_diagnostic.SA1404.severity = error

dotnet_diagnostic.SA1405.severity = error

dotnet_diagnostic.SA1406.severity = error

dotnet_diagnostic.SA1407.severity = none

dotnet_diagnostic.SA1408.severity = none

dotnet_diagnostic.SA1410.severity = none

dotnet_diagnostic.SA1411.severity = error

dotnet_diagnostic.SA1500.severity = error

dotnet_diagnostic.SA1501.severity = error

dotnet_diagnostic.SA1502.severity = none

dotnet_diagnostic.SA1503.severity = silent

dotnet_diagnostic.SA1504.severity = error

dotnet_diagnostic.SA1505.severity = error

dotnet_diagnostic.SA1506.severity = none

dotnet_diagnostic.SA1507.severity = suggestion

dotnet_diagnostic.SA1508.severity = error

dotnet_diagnostic.SA1509.severity = error

dotnet_diagnostic.SA1510.severity = none

dotnet_diagnostic.SA1511.severity = error

dotnet_diagnostic.SA1513.severity = error

dotnet_diagnostic.SA1514.severity = none

dotnet_diagnostic.SA1516.severity = error

dotnet_diagnostic.SA1517.severity = error

dotnet_diagnostic.SA1518.severity = error

dotnet_diagnostic.SA1519.severity = error

dotnet_diagnostic.SA1520.severity = error

dotnet_diagnostic.SA1600.severity = none

dotnet_diagnostic.SA1601.severity = none

dotnet_diagnostic.SA1602.severity = none

dotnet_diagnostic.SA1604.severity = none

dotnet_diagnostic.SA1605.severity = none

dotnet_diagnostic.SA1606.severity = none

dotnet_diagnostic.SA1607.severity = none

dotnet_diagnostic.SA1608.severity = none

dotnet_diagnostic.SA1610.severity = none

dotnet_diagnostic.SA1611.severity = none

dotnet_diagnostic.SA1612.severity = none

dotnet_diagnostic.SA1613.severity = none

dotnet_diagnostic.SA1614.severity = none

dotnet_diagnostic.SA1615.severity = none

dotnet_diagnostic.SA1616.severity = none

dotnet_diagnostic.SA1617.severity = none

dotnet_diagnostic.SA1618.severity = none

dotnet_diagnostic.SA1619.severity = none

dotnet_diagnostic.SA1620.severity = none

dotnet_diagnostic.SA1621.severity = none

dotnet_diagnostic.SA1622.severity = none

dotnet_diagnostic.SA1623.severity = none

dotnet_diagnostic.SA1624.severity = none

dotnet_diagnostic.SA1625.severity = none

dotnet_diagnostic.SA1626.severity = none

dotnet_diagnostic.SA1627.severity = none

dotnet_diagnostic.SA1633.severity = none

dotnet_diagnostic.SA1634.severity = none

dotnet_diagnostic.SA1635.severity = none

dotnet_diagnostic.SA1636.severity = none

dotnet_diagnostic.SA1637.severity = none

dotnet_diagnostic.SA1638.severity = none

dotnet_diagnostic.SA1640.severity = none

dotnet_diagnostic.SA1641.severity = none

dotnet_diagnostic.SA1642.severity = none

dotnet_diagnostic.SA1643.severity = none

dotnet_diagnostic.SA1648.severity = none

dotnet_diagnostic.SA1649.severity = none

dotnet_diagnostic.SA1651.severity = none

dotnet_diagnostic.SA1652.severity = none
Loading