<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx</link><description>Salient points about file references File reference is used to reference outer system assemblies (i.e .NET framework assemblies, third party assemblies or assemblies that are not generated by the current solution). File reference is defined by the reference</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#481020</link><pubDate>Fri, 14 Oct 2005 15:38:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:481020</guid><dc:creator>ManishAgarwal</dc:creator><description>I have amended the .vbproj of one of my class libraries with the target below in an attempt to have a centralised binaries folder containing my external references, but when I build through the IDE, I dont get a 'Binaries' folder created containing the class library. DO I need to define $(SolutionDir) and/or $(TargetPath) for this target to work or is there something else I need to do?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;Target Name=&amp;quot;AfterBuild&amp;quot;&amp;gt;&lt;br&gt;&lt;br&gt;    &amp;lt;Exec &lt;br&gt;&lt;br&gt;      Command=&amp;quot;xcopy /Y /S /F $(TargetPath) $(SolutionDir)..\binaries&amp;quot; /&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;/Target&amp;gt;&lt;br&gt;</description></item><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#481021</link><pubDate>Fri, 14 Oct 2005 15:40:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:481021</guid><dc:creator>ManishAgarwal</dc:creator><description>You are right I didn't accounted for desktop build in my example. In intent was to give a rough idea of what needs to be done. &lt;br&gt;&lt;br&gt;However to solve you problem, you can do the following; -&lt;br&gt;&lt;br&gt;In your csproj file of the project, add the following lines&lt;br&gt;&lt;br&gt;&amp;lt;PropertyGroup&amp;gt;&lt;br&gt;   &amp;lt;!-- set the value of this property for building inside visual studio --&amp;gt; &lt;br&gt;    &amp;lt;CentralisedBinariesFolderLocation Condition=&amp;quot;'$(BuildingInsideVisualStudio)'=='true'&amp;quot;&amp;gt;&lt;br&gt;      c:\temp &lt;br&gt;    &amp;lt;/CentralisedBinariesFolderLocation&amp;gt;&lt;br&gt;  &amp;lt;!-- set the value of this property for team build scenario --&amp;gt; &lt;br&gt;   &amp;lt;CentralisedBinariesFolderLocation Condition=&amp;quot;'$(BuildingInsideVisualStudio)'!='true'&amp;quot;&amp;gt;&lt;br&gt;      $(SolutionDir)..\binaries&lt;br&gt;   &amp;lt;/CentralisedBinariesFolderLocation&amp;gt;&lt;br&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;Target Name=&amp;quot;AfterBuild&amp;quot;&amp;gt;&lt;br&gt;  &amp;lt;Exec &lt;br&gt;    Command=&amp;quot;xcopy /Y /S /F $(TargetPath)  $(CentralisedBinariesFolderLocation)&amp;quot; /&amp;gt; &lt;br&gt;&amp;lt;/Target&amp;gt;&lt;br&gt;&lt;br&gt;Please note that -&lt;br&gt;1) BuildingInsideVisualStudio and TargetPath properties are defined inside Microsoft.Common.targets. They are evaluated for each project seperately. You do not need to define these properties.&lt;br&gt;2) I have not tried this scenario on my machine but i am sure it should work. Do let us know if you face other issues.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#481835</link><pubDate>Mon, 17 Oct 2005 18:12:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:481835</guid><dc:creator>Simon Burgess</dc:creator><description>You might find that you need to add a /R to the xcopy command as once you checkin the CustomLibrary.dll into source control in the 'binaries' folder, the next time you try to build CustomLibrary locally, the AfterBuild target will fail because its trying to overwrite a read-only file</description></item><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#493360</link><pubDate>Wed, 16 Nov 2005 16:56:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:493360</guid><dc:creator>KjellSJ</dc:creator><description>Thanks for all this useful info, especially the %3B bug.</description></item><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#506012</link><pubDate>Tue, 20 Dec 2005 21:31:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:506012</guid><dc:creator>Nikhil Khandelwal</dc:creator><description>Hey thanks for the info - it was quite useful.</description></item><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#522630</link><pubDate>Thu, 02 Feb 2006 03:10:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:522630</guid><dc:creator>joey bradshaw</dc:creator><description>The %3B bug is not fixed in beta 3! Hope this gets fixed in RTM...</description></item><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#522960</link><pubDate>Thu, 02 Feb 2006 12:01:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:522960</guid><dc:creator>Manish Agarwal</dc:creator><description>Joey, &lt;br/&gt;&lt;br/&gt;We have fixed this bug in RTM bits. Thanks for your feedback</description></item><item><title>The Johnnynine Weblog - Assembly not found when compiling on a new/different machine</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#5181688</link><pubDate>Fri, 28 Sep 2007 10:24:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5181688</guid><dc:creator>The Johnnynine Weblog - Assembly not found when compiling on a new/different machine</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://johnnynine.com/blog/AssemblyNotFoundWhenCompilingOnANewdifferentMachine.aspx"&gt;http://johnnynine.com/blog/AssemblyNotFoundWhenCompilingOnANewdifferentMachine.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Resolving file references in team build ( Part -2 )</title><link>http://blogs.msdn.com/manishagarwal/archive/2005/09/28/474769.aspx#9931811</link><pubDate>Thu, 03 Dec 2009 05:32:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9931811</guid><dc:creator>Bharti</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Is it possible to get the hint path automatically generated for our own assemblies. When I build my assembly I observe that for those assemblies which are 3'rd party hintpath automatically gets included but if I refer some other file reference in my project then in my csproj file (I work in c#) we do not get &amp;lt;HintPath&amp;gt;. We have to manuallly add it :(.&lt;/p&gt;
&lt;p&gt;Any suggestions please.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Bharti&lt;/p&gt;
</description></item></channel></rss>