.Net Framework compatibility
See original GitHub issueHi, I have a question/need for some general knowledge surrounding coverlets compatibility with .NET Framework.
I’m receiving an error when attempting to generate code coverage for a test project that references Microsoft.ReportViewer.WebForms. The error is occurring because coverlet is looking in the .NET Core sdk folder for the necessary dll, and it’s not there. The assembly is present elsewhere. Please see the warning below. This precedes the build failure.
Do you have any recommendations for a graceful way to point coverlet towards non .NET Core referenced assemblies?
C:\Program Files\dotnet\sdk\2.2.107\Microsoft.CSharp.CurrentVersion.targets(134,9): warning MSB3884: Could not find rule set file "AllRules.ruleset". [C:\source\SSDirectoryLibrary44\SSDirectoryLibrary44.csproj] C:\Program Files\dotnet\sdk\2.2.107\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Working in .NET 4.6.1 Xunit 2.4.1 coverlet 2.6.3
Issue Analytics
- State:
- Created 4 years ago
- Comments:24
Top GitHub Comments
I deleted the bin folder in my test project and re-ran the dotnet test command. All tests were run successfully, but the coverage report is empty. Ran with logging enabled and I’m looking at the binlog now
Close for stale conversation, feel free to re-open if needed.