Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

MSbuild errors with missing assemblies and/or references #4303

djnrln ·

Trying to run a build using MSbuild "C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe" and a build parameter of "/p:TargetFrameworkVersion=v3.5" we are running into the following errors:

12:59:48,774 ERROR - Excel2007Proxy.cs(7,17): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
12:59:48,774 ERROR - GenericSort.cs(8,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
12:59:48,774 ERROR - Word2007Proxy.cs(12,17): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
12:59:48,774 ERROR - Excel2007Proxy.cs(15,11): error CS0246: The type or namespace name 'ApplicationClass' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,774 ERROR - Excel2007Proxy.cs(16,11): error CS0246: The type or namespace name 'Workbooks' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,774 ERROR - Excel2007Proxy.cs(17,11): error CS0246: The type or namespace name '_Workbook' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,774 ERROR - Excel2007Proxy.cs(18,11): error CS0246: The type or namespace name '_Worksheet' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,782 ERROR - Word2007Proxy.cs(29,17): error CS0246: The type or namespace name '_Application' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,782 ERROR - Word2007Proxy.cs(184,76): error CS0246: The type or namespace name '_Document' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,783 ERROR - Word2007Proxy.cs(426,41): error CS0246: The type or namespace name 'Selection' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,783 ERROR - Word2007Proxy.cs(432,40): error CS0246: The type or namespace name 'Selection' could not be found (are you missing a using directive or an assembly reference?)
12:59:48,783 ERROR - Word2007Proxy.cs(455,33): error CS0246: The type or namespace name 'Selection' could not be found (are you missing a using directive or an assembly reference?)

Additionally, any and all SDKs have been deleted from the server.

My question, is what has to be installed or configured for the builds to find and recognize the references and/or assemblies?

Thanks

  • replies 4
  • views 1830
  • stars 0
steveluo ADMIN ·

Hi@djnrln

Can you build your project by running the command from the console? I don't know what has to be installed, I found a post maybe can help you:

djnrln ·

Thanks for the information, on my local laptop and using visual studio 2017 and 2019, i can build the solution but on the Quickbuild server the build encounters errors.

I will review the post and try the suggestions. Maybe the QuickBuild server does not have the same packages installed?

Thanks

Am-Na-D ·

Hello@djnrln
I have a problem exactly like your problem
We have a quickbuild server
My code is ok my system but on the quickbuild server no
I dont have any idea i search alot but i couldnt solve it
Bu i see your and the date is for a year ago
Are find solution for this problem
Can you tel me how you solve it
And i must add my quickbuild server is a windows core server.

steveluo ADMIN ·

Hi@Am-Na-D

Please first confirm that your command can run successfully from console. If it can run successfully, make sure you have the same environment for QuickBuild server as what's in the console. Usually, the issue is caused by different environment variables.