VMware {code} Community
Smulan
Contributor
Contributor

C# Samples using VimApi

Hi Smulan again!

Thanks once again for the last tip. I am taking the next step in trying out the samples in the C# folder. Ain't easy with these imports/using stuff in the .net environment. The namespace, VIMApi, could not be found. Anyone got an idea?

/Smulan

Tags (2)
0 Kudos
7 Replies
ssurana
VMware Employee
VMware Employee

Hi Smulan,

Make sure that in your project you have added the reference to the "VimService2005.dll" generated by the "build2005.cmd" in the DotNet folder. You can do so by right clicking on the project folder in the Visual studio and select "Add Reference" and in the dialog select this dll file. I would also suggest you to add the reference to the "VimService2005.XmlSerializers.dll" dll also. This is also generated along with the "VimService2005.dll".

Hope the above information helps.

~ Sidharth

0 Kudos
Amadeus1756
Contributor
Contributor

I've downloaded the SDK for 5.0 and I don't have a build*.cmd at all.

It really shouldn't be this difficult to look at and run some examples.  It's so frustrating.

0 Kudos
tos2k
Expert
Expert

You are completely right:

http://communities.vmware.com/message/1848913

Tos2k

0 Kudos
lamw
Community Manager
Community Manager

I've forwarded this feedback internally and hopefully we can get the documentation clarified.

Thanks

0 Kudos
Amadeus1756
Contributor
Contributor

Thank you for doing that - much appreciated. I think if someone has a thorough look at the documentation they will see a lot of work that needs to be done.

I'm happy to provide constructive criticism if it would help.

Rgds

0 Kudos
ssurana
VMware Employee
VMware Employee

Update on the documentation issue for the C# vSphere samples. Please refer to the updated docs part fo the 5.1 release around the same. Hopefully, the modified steps there will clarify the issues being faced. Note that you can use the 5.1 documentation to build the 5.0 C# samples as well.

Please do provide your feedback on the updated documentation specifically for the setting up part for the C# vSphere samples.

~ Sidharth

0 Kudos
Steve_Jin
Expert
Expert

Just blogged about using vSphere SDK in Visual Studio 2012:

http://www.doublecloud.org/2012/10/vmware-vsphere-sdk-with-visual-studio-2012/

Steve, creator of de fact vSphere Java API http://twitter.com/sjin2008

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org
0 Kudos