“Embed Interop Types” property is missing within Reference Assembly/DLL Property Window of Visual Studio 2010

  • Thread starter Thread starter BartMac123
  • Start date Start date
B

BartMac123

Guest
At work, our C# application was developed in a development computer with the following( and our application builds and runs correctly in the development environment):

-.NET Framework 4

-Visual Studio 2010

-ASP.NET Web Forms

At work, we have the following standalone build server that has

-Windows Server 2012

-Jenkins with MS Build

-For .NET Framework 4, the MS Build version is: C:\Windows\Microsoft.NET\Framework\v4.0.30319>MSBuild.exe -version Microsoft (R) Build Engine version 4.7.2558.0 [Microsoft .NET Framework, version 4.0.30319.42000] Copyright (C) Microsoft Corporation. All rights reserved.

Our standalone back-end SQL Server for the application is:

Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (Hypervisor)

When we build the application solution on the Jenkins Build server:


.cs(84,13): error CS1752: Interop type ' ' cannot be embedded. Use the applicable interface instead. [ .csproj] .cs(84,38): error CS1752: Interop type ' ' cannot be embedded. Use the applicable interface instead. [ .csproj] .cs(84,34): error CS0143: The type ' ' has no constructors defined [ .csproj] .cs(85,18): error CS1061: ' ' does not contain a definition for 'Set' and no extension method 'Set' accepting a first argument of type 'ActiveDs.PathnameClass' could be found (are you missing a using directive or an assembly reference?) [ csproj] .cs(88,17): error CS1752: Interop type ' ' cannot be embedded. Use the applicable interface instead. [ csproj]

Therefore, in order to stop the aforementioned error, we wanted to set the "Embed Interop Types" property to false.

Therefore, I opened up the application solution in question in Visual Studio 2010, but there is No "Embed Interop Types" property for the assembly in question.


Therefore, how do I go about setting the "Embed Interop Types" property to false?

Continue reading...
 
Back
Top