If you are having a problem using Vault, post a message here.
Moderator: SourceGear
-
Thomas Linder Puls
- Posts: 153
- Joined: Tue Jan 20, 2004 2:28 am
- Location: PDC, Copenhagen Denmark
-
Contact:
Post
by Thomas Linder Puls » Thu Oct 03, 2013 5:31 am
As a spike test to upgrading to version 7, I have tested the Client API, which we use. And found that none of the two included projects
VaultClientIntegrationLibCode and
CommandLineClientCode can be compiled.
Both have references to a number of non-included entities.
VaultClientIntegrationLibCode
- ..\VaultClientNetLib\VaultClientNetLib.csproj
- ..\VaultClientOperationsLib\VaultClientOperationsLib.csproj
- ..\VaultLib\VaultLib.csproj
CommandLineClientCode
- ..\Dragnet\MantisLib\MantisLib.csproj
- ..\VaultClientIntegrationLib\VaultClientIntegrationLib.csproj
- ..\VaultClientNetLib\VaultClientNetLib.csproj
- ..\VaultClientOperationsLib\VaultClientOperationsLib.csproj
- ..\VaultLib\VaultLib.csproj
- ..\VCDiff\VCDiff.csproj
-
Thomas Linder Puls
- Posts: 153
- Joined: Tue Jan 20, 2004 2:28 am
- Location: PDC, Copenhagen Denmark
-
Contact:
Post
by Thomas Linder Puls » Thu Oct 03, 2013 6:24 am
I also think the target .net framework should be version 4 (rather than 2).
-
jclausius
- Posts: 3706
- Joined: Tue Dec 16, 2003 1:17 pm
- Location: SourceGear
-
Contact:
Post
by jclausius » Thu Oct 03, 2013 7:34 am
Thanks for the report. The APIs are meant as sample, and must have been left behind for some time as the Vault 6 API samples have the same problem.
To fix:
a) In each project, replace all "missing" references with the DLLs in the parent directory. For example, VaultLib.DLL should be referencing the DLL in the top level directory. One other caveat is there was a rename and Mantis.dll should be using DragnetLib.dll.
b) You can remove the .snk file for compilation purposes.
c) For backwards compatibility, leave the projects as .NET 2.0.
I then saved the projects and was able to recompile successfully under Visual Studio 2010 and Visual Studio 2012.
Jeff Clausius
SourceGear
-
Thomas Linder Puls
- Posts: 153
- Joined: Tue Jan 20, 2004 2:28 am
- Location: PDC, Copenhagen Denmark
-
Contact:
Post
by Thomas Linder Puls » Fri Oct 04, 2013 1:00 pm
Thank you. I guessed part of this myself.
Furthermore, the reason that I mention version 4 of the framework was because I got some warnings that some of the mentioned DLL's was target at version 4. However, it turned out that some of the references are not really need and when removed the warnings disappear.