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 163891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:38:49+00:00 2026-05-11T11:38:49+00:00

I am calling DevEnv from NAnt and normally all is good. However we occasionally

  • 0

I am calling DevEnv from NAnt and normally all is good. However we occasionally have the issue where a developer has added a new project and has checked in the solution file but forgotton to add the new project to source control. Not sure how, but it happens.

In this situation Visual Studio puts up a dialog with an OK button saying that it cannot find the project file. Trouble is, this is on a headless build server that nobody is watching and the only thing we notice is that the build will timeout.

I would prefer it if DevEnv then exited with a failure, NAnt could pick that up and would fail the build which is the correct behaviour.

Is there a way of stopping Visual Studio from doing this, or as an alternative are there any good validators avaiable I could run before launching DevEnv to check that there is a good chance that it won’t fall over with a silly dialog?

The resaon why I am calling DevEnv is that I need to build deployment projects and the only way to do this (available to us) is to use DevEnv.

RESOLUTION:

It turns out that my build script was explicitly calling devenv.exe. That is the gui form of Visual Studio. The resolution was to remove the .exe part of the call leaving the command processing to favour the .com over the .exe version. The devenv.com version doesn’t display the dialog – it bombs out on the command line instead which is the behaviour I wanted.

  • 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. 2026-05-11T11:38:50+00:00Added an answer on May 11, 2026 at 11:38 am

    Have you tried using a command line build of Visual Studio. If a project is not available for a command line build, the process will display an error message but will popup no UI.

    Example:

    devenv.com SomeSolution.sln /build

    On my machine, for a solution with a missing project, it will display the following output

    Microsoft (R) Visual Studio Version 9.0.30729.1. Copyright (C) Microsoft Corp. All rights reserved.

    One or more projects in the solution could not be loaded for the following reaso n(s):

    The project file or web has been moved, renamed or is not on your computer.

    These projects will be labeled as unavailable in Solution Explorer. Expand the p roject node to show the reason the project could not be loaded.—— Build star ted: Project: ConsoleApplication1, Configuration: Debug Any CPU —— ConsoleApplication1 -> C:\Users\jaredpar\Documents\Visual Studio 2008\Projects\C onsoleApplication26\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe —— Build started: Project: WpfApplication1, Configuration: Debug Any CPU — — WpfApplication1 -> C:\Users\jaredpar\Documents\Visual Studio 2008\Projects\Conso leApplication26\WpfApplication1\bin\Debug\WpfApplication1.exe ========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped

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

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 74k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Ok, did something really stupid. I've forgotten exactly where I… May 11, 2026 at 2:12 pm
  • added an answer I use the Displaytag library for this. It works great… May 11, 2026 at 2:12 pm
  • added an answer I don't believe that you need to use mod_rewrite, you… May 11, 2026 at 2:12 pm

Related Questions

I am calling a vendor's Java API, and on some servers it appears that
I am calling a WSDL web service from Python using SOAPpy . The call
I am calling a SQL proc that has 3 OUTPUT params. After the call
I am calling a csh script that the first thing it does is starts
I am calling a .txt file from a jquery ajax call. It has some

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.