Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178040

Problems building sample code from vSphere Automation SDK 6.7...

$
0
0

Hi there...

 

Am trying to build and run the sample code in the vSphere Automation SDK 6.7 on Windows 10 Pro - to be used to interface with my vCenter 6.7 installation.

 

I've downloaded and extracted the SDK (from GitHub).

I didn't have .NET Framework 4.5.2 so I downloaded and installed that too.

 

Everything was good when I loaded vSphere-Samples.sln. When I built it, only ListVMsWebApp failed to build:

C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.CSharp.CurrentVersion.targets(448,9): error MSB4062: The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly D:\BIV - VMWare vSphere SDK\vsphere-automation-sdk-.net-master\packages\Microsoft.Net.Compilers.2.1.0\build\..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

 

Of course, when I looked at the documentation under "Setting up build environment", I noticed "Visual Studio 2015 or higher", and I was using VS 2013.

Would that explain the error code above?

I looked at vCenter 6.5, and it too had the VS 2015 or higher requirement.

 

Before this, I did the same thing with vSphere Web Services SDK, and was able to get the sample code to build and execute - it did not have that requirement.

 

Thanks for the help!


Viewing all articles
Browse latest Browse all 178040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>