singalen: (Default)
[personal profile] singalen

Originally published at Fiberglass flowers. You can comment here or there.

Just dealt with another Visual Studio 2008 “feature”.

You can specify all the necessary “Project Dependencies” in Visual Studio, but will get “CSC : error CS0006: Metadata file FooBar.dll could not be found“. Even if your csproj files have correct references to other solution projects, msbuild will fail.
Maybe it appears only if project output path is outside of project directory.

It appears that Visual Studio keeps the dependencies in two ways, only one of which is read by MSBuild. I see that because I still can specify dependencies in GUI, copy solution to other machine and build it with VS in correct order.

Not with MSBuild.

The data needed by MSBuild is a “ProjectSection(ProjectDependencies) = postProject” section of SLN file. Like this:

Read the rest of this entry »

Tags:

(no subject)

21/11/08 09:11 (UTC)
Posted by [identity profile] profuel.livejournal.com
а я с этой проблемой сталкивался 2 года назад, вот только постил ее в своем вордпрессе, который умер примерно 1.5 года назад…

(no subject)

21/11/08 09:38 (UTC)
Posted by [identity profile] profuel.livejournal.com
на самом деле - проблема именно в студии, которая иногда неправильно референцы вставляет.
И действительно странно, что это до сих пор не пофиксили.