MSBuild not copying a DLL, while Visual Studio does?

Open your . Csproj file (or . Vbproj file), and look for the assembly reference.

Then make sure the hint path is still valid in your build server. Sometimes VS2010 will add an absolute hint path, instead of using one relative to the . Csproj file itself, so the drive letter may be invalid in another machine.

Up vote 1 down vote favorite share g+ share fb share tw.

In our Visual Studio 2010 project we reference - among the others - the SmartAssembly.Attributes. Dll and it's properly copied to the Bin/Debug or Bin/Release folder of our local dev machines. On the build server this is true for all other references but not for 'SmartAssembly.Attributes.

Dll'. The build succeeds. What should I check?

Thanks. Visual-studio-2010 msbuild tfs2010 link|improve this question edited Mar 9 at 15:23Diego4,391212 asked Mar 9 at 15:08devdept787311 65% accept rate.

Open your . Csproj file (or . Vbproj file), and look for the assembly reference.

Then make sure the hint path is still valid in your build server. Sometimes VS2010 will add an absolute hint path, instead of using one relative to the . Csproj file itself, so the drive letter may be invalid in another machine.

For example, the reference may look similar to the one below (I made up all of the XML below to illustrate only and it's NOT valid), and the absolute hint path may be invalid in the build server (e.g. There's no drive letter d there): False true d:\temp\SmartAssembly.Attributes. Dll You can change the HintPath to make it relative to the . Csproj file and therefore more general.

For example: ..\libs\SmartAssembly.Attributes. Dll Another problem may be that true isn't there. This attribute mapped to the CopyLocal property in Visual Studio, so if it's missing from your .

Csproj, the DLL won't get copied to bin\Debug or bin\Release by MSBuild. See http://bronumski.blogspot.com/2009/06/project-reference-fun-and-games.html.

1 Thanks Diego, it's just what we are doing ..\Bin\SmartAssembly.Attributes. Dll – devdept Mar 9 at 15:30 I added a comment. I think you may be missing true.

– Diego Mar 9 at 15:36 None of the DLLs we reference have this true attribute and they all are copied... – devdept Mar 9 at 15:42 I would try it anyway. See bronumski.blogspot.com/2009/06/… – Diego Mar 9 at 20:02.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions