reference

c# - How can I programmatically check that a reference is configured correctly in a solution

丶灬走出姿态 提交于 2020-01-15 03:41:08
问题 We are having some build errors and we need to manually fix the references. I would like to programmatically check that project references are defined instead of dll references: Thus go over all the references in a solution and for each project, check that the references are defined correctly. This way the relevant dependencies will be configured correctly. Does anybody know of an existing solution? I would like a validation tool that will run before the gated check-in. 回答1: I have written

MSBuild cannot find reference when executed through TFS build service

点点圈 提交于 2020-01-15 02:34:27
问题 I have a solution with reference to Telerik assemblies. The referenced version has been installed on the build server. The issue is that the continuous integration build always succeeded until I upgraded the Telerik assemblies in the solution and on my build server. The build now fails giving the classical: Could not resolve this reference. I checked my solution and everything is set to reference the specific version. The most suprising is that if I open the solution locally on the build

MSBuild cannot find reference when executed through TFS build service

江枫思渺然 提交于 2020-01-15 02:34:23
问题 I have a solution with reference to Telerik assemblies. The referenced version has been installed on the build server. The issue is that the continuous integration build always succeeded until I upgraded the Telerik assemblies in the solution and on my build server. The build now fails giving the classical: Could not resolve this reference. I checked my solution and everything is set to reference the specific version. The most suprising is that if I open the solution locally on the build

MSBuild cannot find reference when executed through TFS build service

拟墨画扇 提交于 2020-01-15 02:33:28
问题 I have a solution with reference to Telerik assemblies. The referenced version has been installed on the build server. The issue is that the continuous integration build always succeeded until I upgraded the Telerik assemblies in the solution and on my build server. The build now fails giving the classical: Could not resolve this reference. I checked my solution and everything is set to reference the specific version. The most suprising is that if I open the solution locally on the build

COM/Interop - Supporting Multiple Versions

北战南征 提交于 2020-01-14 22:45:26
问题 I've written a .NET console app that wraps CuteFTP's Transfer Engine - a COM object (ftpte). The version I wrapped is CuteFTP 7.0. I'd like to also support the 8.0 version, as some of the clients I integrate with have that version. I have a reference in my Visual Studio project to the CuteFTP COM object... how can I reference the version 8.0 component and still support version 7.0? It seems to me that I'm forced to choose at design time, unless I make a bigger architectural shift. Ideas? 回答1:

The correct way to play with data references in Perl

会有一股神秘感。 提交于 2020-01-14 10:25:25
问题 I have a set of data that I would like to process. In order to simplify my code, It would be nice to access to some subsets of my data through array of references that point to the original data. Better than an explanation, I wrote down this example (which is not working yet). At the end, I would like to update the original data without having to also update all the subsets. Is it possible to do something like this with Perl ? #!/usr/bin/env perl use strict; use warnings; # A set of data my

C++ function parameter takes an address of a pointer as an argument. How is this used? What is it for?

ⅰ亾dé卋堺 提交于 2020-01-14 09:21:17
问题 Imagine a function like this: function(Human *&human){ // Implementation } Can you explain what exactly a *& is? And what would it be used for? How is different than just passing a pointer or a reference? Can you give a small and explanatory sample? Thank you. 回答1: It is like a double pointer. You're passing the pointer by reference allowing the 'function' function to modify the value of the pointer. For example 'human' could be pointing to Jeff and function could modify it to point to Ann.

PHP reference causes data corruption [duplicate]

时光总嘲笑我的痴心妄想 提交于 2020-01-14 08:48:05
问题 This question already has answers here : Strange behavior Of foreach (2 answers) Closed 5 years ago . I am writing PHP code to make some transformations of every value in an array, then to add some values to the array from external source (MySQL cursor or, say, another array). If I use foreach and a reference to transform array values <?php $data = array('a','b','c'); foreach( $data as &$x ) $x = strtoupper($x); $extradata = array('d','e','f'); // actually it was MySQL cursor while( list($i,

Const reference qualifier on a member function [duplicate]

吃可爱长大的小学妹 提交于 2020-01-14 07:06:39
问题 This question already has answers here : What does the single ampersand after the parameter list of a member function declaration mean? (3 answers) Closed 5 years ago . I have seen in an anwser there: Is returning by rvalue reference more efficient? The member function definition: Beta_ab const& getAB() const& { return ab; } I am familiar with the cv-qualifier ( const ) on member functions, but not const& . What does the last const& mean? 回答1: The & is a ref-qualifier . Ref-qualifiers are new

Const reference qualifier on a member function [duplicate]

假装没事ソ 提交于 2020-01-14 07:04:54
问题 This question already has answers here : What does the single ampersand after the parameter list of a member function declaration mean? (3 answers) Closed 5 years ago . I have seen in an anwser there: Is returning by rvalue reference more efficient? The member function definition: Beta_ab const& getAB() const& { return ab; } I am familiar with the cv-qualifier ( const ) on member functions, but not const& . What does the last const& mean? 回答1: The & is a ref-qualifier . Ref-qualifiers are new