Building on VS2010 with target framework=3.5

Jan 9, 2012 at 1:57 PM

Hi,

We're working as described in the title line. So far we built our projects w/o any problems, until recently we added references to MSOffice assemblies (in order to work with Office objects), and then we started getting the following:

CSC : warning CS1749: The type 'System.Runtime.InteropServices.ComAwareEventInfo' is not found, and is required to embed interop types. Are you missing an assembly reference?  The previous error was converted to a warning because the task was called with ContinueOnError=true. (TaskId:89)

CSC : warning CS0518: Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported  The previous error was converted to a warning because the task was called with ContinueOnError=true. (TaskId:89)

and as a result we got the following later:

C:\Program Files\MSBuild\NTrace\v2.0\NTrace.CSharp.v4.0.targets(243,3): warning MSB3021: Unable to copy file "obj\Release\MyProj.dll" to "obj\Trace\MyProj.dll". Could not find file 'obj\Release\MyProj.dll'.  The previous error was converted to a warning because the task was called with ContinueOnError=true. (TaskId:90)

meaning the project didn't get built.

Notice that System.Runtime.InteropServices.ComAwareEventInfo is defined starting .net 4.

When removing NTrace from the project everything gets built w/o any problems.

We're using latest NTrace version importing to csproj file the v20 version.

Any idea?

Thanks,

--Eran

Coordinator
Jan 9, 2012 at 9:40 PM

Hi, Eran-
It looks like it's using the wrong .Targets file; anything lower than 4.0 should be using the 2.0 targets. I'll take a look to see what the problem could be.

-Andy Hopper

On Jan 9, 2012 8:57 AM, "eranhare" <notifications@codeplex.com> wrote:

From: eranhare

Hi,

We're working as described in the title line. So far we built our projects w/o any problems, until recently we added references to MSOffice assemblies (in order to work with Office objects), and then we started getting the following:

CSC : warning CS1749: The type 'System.Runtime.InteropServices.ComAwareEventInfo' is not found, and is required to embed interop types. Are you missing an assembly reference? The previous error was converted to a warning because the task was called with ContinueOnError=true. (TaskId:89)

CSC : warning CS0518: Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported The previous error was converted to a warning because the task was called with ContinueOnError=true. (TaskId:89)

and as a result we got the following later:

C:\Program Files\MSBuild\NTrace\v2.0\NTrace.CSharp.v4.0.targets(243,3): warning MSB3021: Unable to copy file "obj\Release\MyProj.dll" to "obj\Trace\MyProj.dll". Could not find file 'obj\Release\MyProj.dll'. The previous error was converted to a warning because the task was called with ContinueOnError=true. (TaskId:90)

meaning the project didn't get built.

Notice that System.Runtime.InteropServices.ComAwareEventInfo is defined starting .net 4.

When removing NTrace from the project everything gets built w/o any problems.

We're using latest NTrace version importing to csproj file the v20 version.

Any idea?

Thanks,

--Eran

Read the full discussion online.

To add a post to this discussion, reply to this email (NTrace@discussions.codeplex.com)

To start a new discussion for this project, email NTrace@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com