Skip to content

Commit

Permalink
VS2017 - NetCore2 (OpenCover)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot committed Aug 26, 2017
1 parent ee8f03c commit 05b4296
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ build_script:
- ps: .\build.ps1
test_script:
- ps: .\run-tests.ps1
- nuget.exe install OpenCover -ExcludeVersion
- OpenCover\tools\OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test tests\NLog.UnitTests --configuration Debug --framework net461" -returntargetcode -filter:"+[NLog]* +[NLog.Extended]* -[NLog]JetBrains.Annotations.*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "coverage.xml"
deploy: off
artifacts:
- path: 'artifacts\*.nupkg'
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
dotnet --version

dotnet restore .\src\NLog\
dotnet pack .\src\NLog\ --configuration release -o artifacts
dotnet pack .\src\NLog\ --configuration release --include-symbols -o ..\..\artifacts

exit $LASTEXITCODE
2 changes: 2 additions & 0 deletions src/NLog.Extended/NLog.Extended.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>

<DebugType Condition=" '$(Configuration)|$(TargetFramework)' == 'Debug|net45' ">Full</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
Expand Down
1 change: 1 addition & 0 deletions src/NLog/NLog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>

<DebugType Condition=" '$(Configuration)|$(TargetFramework)' == 'Debug|net45' ">Full</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
Expand Down
2 changes: 2 additions & 0 deletions src/NLogAutoLoadExtension/NLogAutoLoadExtension.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyProductVersionAttribute>false</GenerateAssemblyProductVersionAttribute>

<DebugType Condition=" '$(Configuration)|$(TargetFramework)' == 'Debug|net45' ">Full</DebugType>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions tests/NLog.UnitTests/NLog.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>

<DebugType Condition=" '$(Configuration)|$(TargetFramework)' == 'Debug|net461' ">Full</DebugType>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions tests/SampleExtensions/SampleExtensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>

<DebugType Condition=" '$(Configuration)|$(TargetFramework)' == 'Debug|net45' ">Full</DebugType>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 05b4296

Please sign in to comment.