How to fix "module was not instrumented." Reason:"path_is_excluded" error in Microsoft.CodeCoverage.Console tool?
I'm receiving the following problem while trying to instrument my dll with Microsoft.CodeCoverage.Console tool. module was not instrumented. Reason: path_is_excluded." I'm using Microsoft.CodeCoverage.A console tool for calculating code coverage.…
how to fix the start or execute task button in visual studio 2022
my start button does not work. when i click it it gives the pop up window please select a valid startup item and when i right click in the window it wont show execute task in the drop down window. thank in advance for you help
![](https://techprofile.blob.core.windows.net/images/2ZetdppIpE6OMgitSzNvbw.png?8D9D61)
Mocking objects of the library Microsoft.SqlServer.TransactSql.ScriptDom
I am currently writing the unit tests for a class using the Microsoft.SqlServer.TransactSql.ScriptDom library. I am unable write unit tests for my class as I am unable to set the properties of mocked objects as there is no setter for that property. For…
How to get Code Coverage in Visual Studio 2022 with CMake Cpp Projects with a Windows Compiler
I have a Cpp project that is being built with the MSVC compiler and using CMake. I need a code coverage solution, preferably one that either provides detailed reports or in Visual Studio code highlighting that is possible using CMake. So far I have tried…
Visual Studio 2022: Error reopening files (error code 0x80004005)
I have the above error when I rebuild a solution. I used Resource Monitor to see who has the file in question (ABC.exe type) and it shows nobody has it. Following this issue's comments from others, I see no solution.
Use of visual studio community edition for testing VSTO projects?
I am more familiar with Visual studio over VS code and I was wondering with my work PC if I could test some VSTO projects as to see if worth migrating our VBA projects to something modern. I was thinking for the testing to use the community edition.…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
Webbrowser not shown in Toolbox
I have activated the Webbrowser in Extras/Toolboxelements but its not shown in the Toolboxlist. What do i wrong?
Is there a way to bulk import test cases with the summaries included (for example the descriptions) in Azure DevOps?
Hi All, Apologies if this is the incorrect tag for this question. I know understand there is a way to just import the test plans, however is there a way to bulk import test cases with the summaries included (for example the descriptions field on the…
unit test in visual studio for d365 fo using x++
I create the unit test in visual studio 2022. create the employ class and employTest class. the test class extends the sysTestcase and i add the test method the write in below: [SysTestMethodAttribute] void testName() { // Verify that the employee name…
How to change the mouse cursor color in Visual Studio 2022?
Hi to every one, I would like to change the color of the mouse cursor on Visual Studio Community 2022, as I have installed the "dark" theme, which I really like, but the mouse cursor is practically invisible. How can I go about changing it? I…
Load testing for signalR core
Good Day, I was trying to perform load testing for an auction mobile application , we use signalR core and agora as a server , However Crank and tresi are deprecated long time ago (as per my understanding) and it is quite challenging for me to simulate…
vb.net Unit Test Project .NET Framework 4.8 has stopped seeing all subroutines and function in the project being tested.
I have created a vb.net project using .NET Framework 4.8 with a single public subroutine. Also, created a Unit Test project within the same solution and set the references in the Unit Test project pointing to the project being tested. I was able to…
can not find path for sqlite db in Maui app
i try to create local sqlite db in maui app . private const string DbName = "SweetsShopDb.db3"; private static string DbPath => Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.LocalApplicationData),…
![](https://techprofile.blob.core.windows.net/images/k5BNLX0UrUWR_mpASSTOMA.png?8DC140)
MSTest Tests in Test Explorer are arranged in reverse alphabetical order by default.
MSTest Tests are arranged in reverse alphabetical order by default. I want to execute the tests in alphabetical order but they are shown in Test Explorer in reverse alphabetical order by default
How can I remove Test Points from my Test Plan Progress Report
Hello, Test points are redundant as part of the reporting function in Azure Dev Ops when i do my test progress report, is there a way that they can be removed? If so please could a guide be provided ive searched online but cant find anything, below are…
Unit test command line arguments
How can I get the arguments specified in the following dialog: [TestMethod] public void Test1() { // How get the command line arguments? }
Visual Studio 2022 issue on DevBox - Status 400(Bad Request)
Hi, we are trying to run build on visual studio on DevBox. When opening VS it is asking to re-enter credentials. Entering credentials gives error 53003. When account was removed and added again, it asks for 2FA and login in successfully. BUT! Running…
DevOps Build. How to build a multi-project solution (Windows Service) that has a windows forms test harness
We have an old Windows service I am trying to move to GIT and DevOps (on prem). The service project builds off of 3 other projects in the solution however there is a 5th project which is a windows forms app that we use to develop and debug. I would…
Visual Studio 2022 cannot start debugging
Created a new project using C# Console app and .NET 8 Framework and I cannot run my code as it is greyed out
Visual Studio 2022 Code Coverage
Visual Studio 2022 Enterprise has the unit test features. One of them is to record/show the code coverage. I would like to ask about... (1) Is the coverage level C0? (2) Do we have any options to switch the coverage level to C1 and/or C2?