You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Xunit;
namespace MyLibrary.Tests
{
public class HelperTests
{
[Fact]
public void RunTest()
{
Helper helper = new Helper();
string s = helper.Run();
}
}
}
Open a command prompt in the MyLibrary.Tests directory and run Dotcover using this command line:
dotnet.exe dotcover test --dotCoverOutput="C:\temp\MyLibrary.Tests.dcvr" --dcLogFile="C:\temp\MyLibrary.Tests.dcvr.log" --dcFilters=+:module=MyLibrary
Dotcover fails with the following output:
[JetBrains dotCover] Coverage session finished with errors: Inconsistent PDB detected, too large offset in statement table
[location] = C:\BuildAgent\work\c87178d597890b6b\Profiler\Kernel\Windows\Native\Solution\core\src\IL\Var\ILMethodVar.cpp(53)
[function] = unsigned short __cdecl ILMethodVar::BeginInject(struct write_stream_iface *,unsigned int)
[token] = 06000001, MethodDef
[method name] = Run
[module name] = D:\dev\AspectInjectorDotcoverClash\MyLibrary.Tests\bin\Debug\net6.0\MyLibrary.dll
[type name] = MyLibrary.Helper.
If I change MyLibrary.csproj to use AspectInjector 2.6.0 then the Dotcover command line runs successfully:
Create a solution with 2 projects - MyLibrary and MyLibrary.Tests - and create the following files:
MyLibrary\MyLibrary.csproj
MyLibrary\InjectBeforeAttribute.cs
MyLibrary\Helper.cs
MyLibrary.Tests\MyLibrary.Tests.csproj
MyLibrary.Tests\HelperTests.cs
Open a command prompt in the MyLibrary.Tests directory and run Dotcover using this command line:
Dotcover fails with the following output:
If I change MyLibrary.csproj to use AspectInjector 2.6.0 then the Dotcover command line runs successfully:
The text was updated successfully, but these errors were encountered: