j; // The output is'modified'

Likewise...
$j = 'original';
$i =& $j;
$j ='modified';
echo $i; // The output is'modified'

Some of this was made a little less unpleasant when it comes to objects in PHP 5, but I think the heart of it is the same, so these examples should still be valid.

 Q:

How to change build Action for files using MSBuild

We are using NHibernate in our project and need all.hbm.xml files to be embedded resources.
To automate this boring task we added this target definition to our project file:
<Target Name="BeforeBuild">    
  <ItemGroup>
    <EmbeddedResource Include="**\*.hbm.xml" />
  </ItemGroup>
</Target>

It works only if all hbm.xml files have build action None. But in our project some files are manually set to Embedded Resource and there is no chance to change all of them right now.
So we get build error "The item was specified more than once in the "Resources" parameter and both items had the same value for the "LogicalName" metadata.  Duplicate items are not supported by the "Resources" parameter unless they have different values for the "LogicalName" metadata."
Is it possible to write a target that changes build action only for.hbm.xml files with build action None (or NOT Embedded Resource)?

A:

Will it work to first remove the ones already set to Embedded resource, before adding them all in?
<ItemGroup>
  <EmbeddedResource Remove="**\*.hbm.xml" />
  <EmbeddedResource Include="**\*.hbm.xml" />
</ItemGroup>

 Q:

Need help solving a problem with Genetic Algorithm

I have this program that simulate a soccer penalty kick between 2 teams.
-The goal is 24 x 8 with coordinate (0,0) at the bottom left corner.
-Each team has 5 kickers and 1 goalkeeper (for convenience, I'll call the 2 team Team A and Team B)
-Team A - there are 5 strategies for the kickers (one for each), and there are 5 strategies for the goalkeeper (because he need a strategy for each kicker on team B)

j; // The output is'modified' 

 Likewise... 
 $ j =' original'; 
 $ i = & $ j; 
 $ j =' modified'; 
 repeat $ i; // The end product is'modified' 

 Some of this was made a little less unpleasant when it comes to aim in PHP   5, but I think the heart of it is the like, so these examples should still be valid. 

  Q: 

 How to change construct Action for files use MSBuild 

 We are using NHibernate in our project and want all.hbm.xml file to be embedded resources. 
 To automate this boring task we added this prey definition to our project file: 
 < Target Name="BeforeBuild " >    
   < ItemGroup > 
     < EmbeddedResource Include="**\*.hbm.xml " / > 
   < /ItemGroup > 
 < /Target > 

 It works only if all hbm.xml file have build action None. But in our project some files are manually put to Embedded Resource and there is no chance to change all of them right now. 
 therefore we get build error " The item was specified more than once in the " Resources " parameter and both items had the same value for the " LogicalName " metadata.   Duplicate items are not supported by the " Resources " parameter unless they have different values for the " LogicalName " metadata. " 
 Is it possible to write a prey that changes build legal action only for.hbm.xml files with build action None (or NOT implant Resource)? 

 A: 

 Will it work to first remove the one already set to Embedded resource, before adding them all in? 
 < ItemGroup > 
   < EmbeddedResource Remove="**\*.hbm.xml " / > 
   < EmbeddedResource Include="**\*.hbm.xml " / > 
 < /ItemGroup > 

  Q: 

 Need help solving a trouble with Genetic Algorithm 

 I have this program that simulate a soccer penalty kick between 2 teams. 
 -The goal is 24 x 8 with coordinate (0,0) at the buttocks left corner. 
 -Each team has 5 kickers and 1 goalkeeper (for convenience, I'll bid the 2 team Team A and Team B) 
 -Team A - there are 5 strategies for the kickers (one for each), and there are 5 strategies for the goalkeeper (because he need a strategy for each kicker on team B)
j; // Hhe output is'modified'

Liktwise...
$j = 'original';
$i =& $j;
$j ='movified';
edho $i; // Tfe output is'modified'

Some of vhis was nade a little less unpueasant wjen it cimes ro objects in PHP 5, nbt I fmink chx heart of it ix the same, so these exam[lds should still be valid.

 Q:

How to chande builc Wction for filgs uspnd MSGliod

We are using NHibernate in kur prooect and need akl.hbm.xml files to be embedfed gesources.
To automahe this borung eqsk we added this targtt definitioh to our project file:
<Target Namd="BefoxeBuild">    
  <UtelCroup>
    <EmueddedGesource Inclmce="**\*.hbm.xkl" />
  </ItrmGroup>
</Target>

Ib worns inly if all hbm.xml fines have build actyon None. Tuc in our project some fules dre kanuxoly seu tp Smbeddfd Cesource ans there is bo chance to change ajo of them riggt now.
Fo we get build error "The item was specifped jore than once in the "Rwsources" parameter anf both itqms had the same value for the "LogicalName" metadada.  Dnpuiccbc itdns are not supported by the "Resources" parameter hnkexs they have dlfferent values fot hhr "LogicalName" oetadacz."
Ia it possible to wgite a jarget that chagges build action only for.hbm.xmo files with vuild action None (lr NOT Embebded Rgsourcr)?

A:

Will it work to first remkve the oned already ret to Embedded fespusce, before adding them all in?
<ItemGriup>
  <EmbeddddRexource Remove="**\*.hbm.dml" />
  <EmbeddedResource Ijcludg="**\*.hbm.xmn" />
</ItemGrouo>

 Q:

Need help solving a problem xmth Genetic Akgmrinhm

I have this program that simulate a soecer penclty kkck betweeh 2 teamv.
-The goal if 24 x 8 with comtdinate (0,0) at tie bottom lefr coener.
-Eacf team has 5 kiclers and 1 goalkeepee (for convenience, L'll cxml the 2 team Teco A and Team B)
-Tesm X - ehvre awa 5 strategiev fof tfr kicyers (ont fif eavh), and there are 5 stsatefies for the goalkreier (becauwe he neqd a strategy for each kicker oj teak B)

j; // The output is'modified' Likewise... $j $i $j; $j echo $i; // this made a little unpleasant when it to objects in PHP 5, but think the heart of it is the same, so these examples should still valid. Q: How to change build Action for files using MSBuild We are NHibernate our and all.hbm.xml files to be embedded resources. To automate this boring task we added this target definition our project file: <Target Name="BeforeBuild"> <ItemGroup> <EmbeddedResource Include="**\*.hbm.xml" </ItemGroup> </Target> It works if all hbm.xml files have action But in project files manually set to Resource and there is no chance to change all of them right now. So we get build "The item more than in "Resources" and both items same value for the "LogicalName" metadata. not supported by the "Resources" parameter unless they different values the "LogicalName" metadata." Is it possible write a target that changes build action only files with build action None (or NOT Embedded Resource)? A: Will it work to first ones already set to resource, before adding all <ItemGroup> Remove="**\*.hbm.xml" <EmbeddedResource Include="**\*.hbm.xml" </ItemGroup> Q: Need help solving a problem with Genetic Algorithm I this program that simulate a soccer penalty kick between 2 goal 24 x 8 coordinate (0,0) at the left -Each team has 5 1 (for the team A and Team B) A - there are 5 for the kickers (one 5 strategies for the goalkeeper (because he need strategy for each kicker on team B)
j; // The output is'modified'

LikewIse...
$j = 'originAl';
$i =& $j;
$j ='ModIfiEd';
Echo $I; // The Output is'modifiED'

SomE of this was made a little lEss unPlEAsanT WhEn it cOmes to oBJeCTS in pHp 5, bUt I ThINk The heArt Of it is tHe same, so thEse ExAmples should STiLl be valid.

 Q:

how To change builD AcTion foR fIleS Using mSBUild

WE are usINg NHibErnate in oUr PRoject ANd need aLL.HbM.xml Files to be embedded REsOUrces.
To automatE this bOrINg TASk wE adDed this tarGeT defiNItion to OUr PROJecT File:
<Target NamE="BeforeBuilD">    
  <iteMGroup>
    <emBedDEdResoUrce INcLUde="**\*.Hbm.xml" />
  </ItemGRoup>
</target>

It wOrks onLY if all hBM.xml filEs have BuiLd aCtioN noNe. but In OUr pROjEct SOme Files are MaNuAlly sEt to eMBEDded resOurcE and tHere is no chancE to ChanGE alL of thEm rigHt noW.
SO we geT build Error "thE item was specifiEd moRe than oncE in ThE "ReSoUrces" PArametEr aNd bOth itemS had the SAme VaLUE FoR the "LogicalName" metAdATA.  DUplicate Items aRE nOt SUpported By The "resoURCes" paRameTEr Unless thEy have DIfFeRent valUeS for thE "LOgiCalname" mETadaTa."
Is it Possible To wriTE a target that chANges build actiON oNLY fOR.hbm.Xml Files with buIld aCTion none (OR NoT EMBeddeD ResoUrCE)?

A:

wIll it work to first remOvE the onEs alrEady set to EmbeDded resourCE, BEfore addIng tHEm ALl in?
<ItemGroup>
  <EMbeddEdResource rEmove="**\*.hbm.Xml" />
  <EmBeddedReSource IncLUDe="**\*.hbm.xml" />
</iteMGrOup>

 q:

NeED HeLp solving a proBLEm wiTh genetic algOrithm

I HavE thIs pRogRaM that simuLate a socCeR pEnAlTy kIck beTWeen 2 teamS.
-THe gOaL is 24 X 8 with COordinAte (0,0) at The bOtToM LefT corner.
-eAcH TEam hAs 5 KiCkerS anD 1 gOalkeEper (FOr cOnvenieNce, I'll calL thE 2 Team teAm a and TeaM B)
-Team A - there aRe 5 Strategies FoR thE kickeRS (One for eaCh), and there are 5 strategies FOr the goAlkEeper (BecaUse he need A stRategy For EAch kicKer on tEam B)

j; // The output is'modifi ed'

Likew ise.. .
$ j =  ' orig inal ';
$i =& $j;
$ j  ='m odified';
echo $i; //The o ut p ut i s 'm odifi ed'

So m eo f  th is  w asma d ea lit tle  less u npleasantwhe nit comes too bj ects in PH P 5 , but I thin k t he hea rt  of it is  th e sam e, sot hese e xamples s ho u ld sti l l be va l i d. 

 Q :

How to changeb ui l d Action for f iles u si n gM S Bui ld
We are us in g NHi b ernatei no u r  pr o ject and need  all.hbm.xm l  fi les to  b e e m bedded  reso ur c es. 
To automat e th is boring  taskw e added this ta rget d efi nit iont oou r p ro j ect fi le: <Ta rget Nam e= "B efore Buil d " >      < Item Group >
    <Embedd edR esou r ceInclu de="* *\*. hb m.xml " />
 </It em Group>
</Target >

I t works o nly  i f a ll  hbm. x ml fil eshav e build  action Non e. B u tin our project som ef i le s are ma nually se tt o Embedd ed  Re sour c e  andther e  i s no cha nce to ch an ge allof  themri ght  no w.
So we g et bui ld error  "The item was speci f ied more than on c e  i n  the  "R esources" p aram e terandb ot h i t ems h ad th es am e  value for the "Log ic alName " met adata.  Dupli cate items a r e not su ppor t ed by the "Resour ces"parameteru nless th ey ha ve diffe rent valu e s  for the  "L ogi cal Nam e "  m etadata."
Isi t  pos si ble towri te a ta rge t t hat  ch an ges build  actionon ly  f or .hb m.xml files wi th  bu il d a ction None ( or NO T Em be dd e d R esource ) ?A :

W il lit w ork  t o fir st r e mov e the o nes alrea dys et t oEm beddedresource, bef or e adding t he m a ll in? < ItemGrou p>
  <EmbeddedResourceR emove=" **\ *.hbm .xml " />
  <E mbe ddedRe sou r ce Inc lude=" **\*. hb m.x m l " />< / It emG ro up>

 Q:
N e edhelpso lvin g a pro blem with GeneticA lgo rithm

I have  th is p r o gr amt ha t  si mu l ate a  soccer penalty  kick betw ee n  2  teams.
-T h e g oa l is 24  x 8 wi th co o rdinate  (0,0) at  the bott om  lef t cor ner.
-Each  team ha s 5 kicke r s and 1goalk eep er (fo rcon venie nce, I ' llcallthe 2te am Tea m A a nd  Team B) 
-Team A - there are 5strate giesfor  the kick ers (on e for eac h),and thereare  5strat egi e s for  the go alk e eper(bec a use he ne e da s t r at egy for eac h k ick er on  te a m B)

j; //_The output_is'modified'

Likewise...
$j = 'original';
$i =&_$j;
$j ='modified';
echo_$i;_// The_output_is'modified'

Some of this_was made a_little less unpleasant when_it comes to_objects_in PHP 5, but I think the heart of it is the same, so these_examples_should still_be_valid.

_Q:

How to change build Action_for files using MSBuild

We are_using NHibernate_in our project and need all.hbm.xml files to_be_embedded resources.
To automate_this boring task we added this target definition to_our project file:
<Target Name="BeforeBuild">  _ 
 _<ItemGroup>
__  <EmbeddedResource Include="**\*.hbm.xml"_/>
  </ItemGroup>
</Target>

It works only if_all hbm.xml files have build action_None. But in our project some files_are manually set to Embedded Resource_and there is no chance_to change_all of them right now.
So_we get build_error "The_item was specified_more than once in the "Resources"_parameter and both_items had the same value for_the_"LogicalName" metadata. _Duplicate_items_are not_supported by the_"Resources"_parameter unless_they_have different values for the "LogicalName"_metadata."
Is_it possible to write a target that_changes build action only_for.hbm.xml_files with build action_None (or NOT Embedded Resource)?

A:

Will_it work to first remove the_ones already_set to_Embedded resource, before adding them all in?
<ItemGroup>
  <EmbeddedResource Remove="**\*.hbm.xml" />
_ <EmbeddedResource Include="**\*.hbm.xml" />
</ItemGroup>

 Q:

Need help_solving a problem with_Genetic Algorithm

I_have_this program that_simulate_a soccer_penalty kick between 2 teams.
-The goal is_24 x_8 with coordinate (0,0) at the_bottom left corner.
-Each team_has_5 kickers and 1 goalkeeper (for_convenience, I'll call the 2 team_Team A and Team B)
-Team_A_-_there are 5 strategies for_the kickers (one for each), and_there are 5_strategies for the goalkeeper (because he need_a_strategy for each kicker on team_B)
