RKB
RKB

Reputation: 21

system.threading Ms build command line error for VS 2012 project

Have a VS 2012 project for which i'm trying to create a build xml for command line build. Inside the VS 2012 the build runs fine, but while running command line build using MSbuild i'm getting an error,

error CS0234: The type or namespace name 'Tasks' 
does notexist in the namespace 'System.Threading' 
(are you missing an assembly reference?)

Project is targetting Dot net 4.5 framework which is already installed. The OS is windows 2008 R2 X64. I know the error is regarding the incorrect framework reference but unable to find the cause, as this is working fine inside the VS 2012. Does this have to do with the OS being X64? Can anyone point out where its going wrong? thanks..

Upvotes: 0

Views: 68

Answers (1)

RKB
RKB

Reputation: 21

Solution:

Thanks to Jon Skeet for this , i was using MSBuild from framework 3.5, Adding to this you need to mention Toolsversion attr in the begining of build xml else the aspnet compiler from V2.0 will be used causing error target framework not found

Upvotes: 1

Related Questions