How do I use OpenCover and ReportGenerator to view Unit Test Coverage Results?

you do not need to add these to particular project I use report generator and open cover to generate test coverage results too. This is the script I use to generate the codecoverage using opencover “C:\Program Files (x86)\OpenCover\OpenCover.Console.exe” -register:user -target:”C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe” -targetargs:”/noisolation /testcontainer:\”C:\\bin\Debug\.dll\” /resultsfile:C:\Reports\MSTest\.trx” -filter:”+[]” -mergebyhash -output:C:\Reports\MSTest\projectCoverageReport.xml Note that if your … Read more

Adding reference to another project from visual studio code

Let’s say you have two projects: 1) Project1.Api 2) Project2.Executable Command line syntax for dotnet add reference: cd Project2.Executable dotnet add reference ../Project1.Api/Project1.Api.csproj If you check the Project2.Executable.csproj file, you will see the following entry: <ItemGroup> <ProjectReference Include = “..\Project1.Api\Project1.Api.csproj” /> </ItemGroup>

Could not install package ‘–‘. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.5’

Your package targets NETFramework,Version=v4.5.2. That means the assembly folder is lib\net452. You are trying to install the package to a higher framework (greater than 4.5) project. Create a project with framework 4.5.2 or rename the package’s lib folder from net452 to the version which you want to target like net45 or net46. You can target … Read more

How to get the url of a .nupkg file?

The URLs are typically in the format: http://nuget.org/api/v2/package/PACKAGE_ID/VERSION For example, for WebActivator: http://nuget.org/api/v2/package/Microsoft.Web.Infrastructure/1.0.0.0 If you just want the latest version of the package, leave out the version number: http://nuget.org/api/v2/package/Microsoft.Web.Infrastructure/

The “SlowCheetah.Xdt.TransformXml” task could not be loaded from the assembly

In my case the error occured while compiling a web project. The folder %userprofile%\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2 was empty. All the SlowCheetah components were in SlowCheetah\v1 folder instead. I’ve copied all files from V1 folder to v2.5.10.2 and everything compiled and transformed fine. To make non web projects compile, I also had to delete V1 folder as suggested … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)