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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:04:52+00:00 2026-06-13T06:04:52+00:00

I have no problem building my VB project in both VS 2010 and 2012

  • 0

I have no problem building my VB project in both VS 2010 and 2012 againt .NET 2.0.

However, the MSBuild refuses to build it because it does not like one VB language feature introduced in VS 2010 (it is “implicit line continuation” to be more specific).

I tried the following parameters for MSBuild (from .NET 3.5):

/p:TargetFrameworkVersion=2.0
/toolsversion:3.5

This does not build as the VB feature I use have been introduced in 4.0 tools.

So I changed toolsversion to 4.0 (and using MSBuild from .NET 4.0):

/p:TargetFrameworkVersion=2.0
/toolsversion:4.0

And now MSBuild complains about another thing:

C:\Users\Libor\AppData\Local\Temp\.NETFramework,Version=2.0.AssemblyAttributes.vb(6,24):
error BC30002: Type 'System.Runtime.Versioning.TargetFrameworkAttribute' is not defined.
[project.vbproj]

The only solution now for me is to open my project in VS 2008 and manually correct the code so it is compatible with all tools. But I hope MSBuild can be configured so it builds properly, as VS can build the project against .NET 2.0, too.

  • 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-13T06:04:53+00:00Added an answer on June 13, 2026 at 6:04 am

    Similar question and answer here. They key is going to be:

    msbuild YourSolution.sln /tv:4.0 /p:TargetFrameworkVersion=v2.0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bit of a problem building my project. I'm getting the bellow
I have an old C++ project and I'm having problem building it. For a
I have a problem with C#.NET (Visual Studio 2010). I have 2 datatables in
I have a problem with building multi level select box. I have category table
I am building multiple forms app in Builder XE2 and I have a problem
I'm building a micro site at the moment and I have a problem. I
I have a problem that is a little hard to explain. I am building
More than one time I have encountered the following problem when building code with
I'm building my first jquery mobile site and have run into a problem. When
I have a kind of basic (but still unresolved) problem. I'm building a program

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.