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

  • SEARCH
  • Home
  • 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 3457426
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:51:31+00:00 2026-05-18T09:51:31+00:00

I wrote an application using Visual Studio 2010 that I configured to run using

  • 0

I wrote an application using Visual Studio 2010 that I configured to run using the 3.5 framework.

I then checked in this project and had a coworker, who is using Visual Studio 2008, grab the project. He then started getting an error that says it could not find file \Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets emphasis on the v10.0.

First off, why is it trying to reference a 2010 directory when I converted it to 3.5? Shouldn’t it run on a machine that does not have VS 2010 installed?

Secondly, what is Microsoft.WebApplication.targets and why do I need it?

  • 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-05-18T09:51:32+00:00Added an answer on May 18, 2026 at 9:51 am

    Because the v10.0 (second) path is not present in machines that do not have V2010 installed, VS2008 was unable to load the project.

    vs 2008 path-

    <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
    

    vs 2010 path-

    <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
    

    but if u want to run it in both the installations, do as under-
    Step1:
    Add the V10.0 path before the V9.0 MSBuild extension path with a Condition property to check for the file based on the Solution Version.

    <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '10.0'" />
    
    <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '9.0'" />
    

    Here is we do not specify the Visual Studio 2010 MSBuild extension path first the Visual Studio will try to upgrade the project.

    Step2:

    After the project file upgrade VS2010 would have changed the FileUpgradeFlags tags value to 0, which would again trigger an upgrade. Remove the Zero from the tag.

    <FileUpgradeFlags></FileUpgradeFlags>
    

    Save the project file and reload. Now you will be able to load the project in VS2010 & VS2008 (Even if VS2010 is not installed) without any problem.

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

Sidebar

Related Questions

I'm using MS Visual Studio 2010 to create an application with SQL Server 2008
i am developing window application using visual studio and c# i want to insert
I have a Visual Studio project that gets installed to about half of the
I wrote an application using wxWidgets that uses wxList . I am having some
I wrote an application server (using python & twisted) and I want to start
I wrote an application that currently runs against a local instance of MySql. I
I have wrote an application that consists of two projects in a solution, each
A while ago, I wrote some Word interop examples in Visual Studio beta 1,
complete newb quesiton here, but I'm new to C# and Visual Studio 2010. How
I'm trying to get started using the latest Entity Framework 4 release on Visual

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.