Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8592845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:50:57+00:00 2026-06-11T23:50:57+00:00

I have a [TestMethod] in a visual studio test project. If I build the

  • 0

I have a [TestMethod] in a visual studio test project. If I build the project, I get a dll. I dont want to run the tests from the visual studio User Interface.

  1. Is there any way to generate an exe of a test project so that i can run the tests from command prompt?

  2. If I change the project type from Class Library to Console Application, then it requires a Main function. Is there any way to call a TestMethod from the Main()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:50:58+00:00Added an answer on June 11, 2026 at 11:50 pm

    You should already have an EXE that can execute your tests – mstest.exe. If you need to run your tests outside Visual Studio – and you’re not using some kind of build automation solution that can already do this for you – then you can call mstest.exe and have it execute your tests.

    http://msdn.microsoft.com/en-us/library/ms182489(VS.100).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some unit-tests within a Visual Studio project with the attributes: [TestMethod] [ExpectedException(typeof(..Exception))]
I have a test project in visual studio 2010. I have a TestMethod. Inside
I have a Class Library project in Visual Studio and tests for it (everything
I cannot successfully run unit tests for MvcMailer using the visual studio test suite
I'm using Visual Studio 2010 Ultimate SP1. I have around 225 unit tests in
I have been using Visual Studio 2010 linked with Microsoft Test Manager using Team
I have a Visual Studio 2010 solution with several projects, including .NET4 test projects.
Even when Visual Studio 2010 does not run tests in multiple parallel threads, it
I have implemented a test method with Jersey to run on my Google AppEngine
I am working with Visual Studio 2010 and it's integrated testing functionality. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.