bpeikes

If I right click on a project and select Build, Visual Studio does not only build the selected project, but also all Setup projects which are in the solution. Has anyone else seen this problem

The whole build dependency system in VS seems to break down every so often. I have problems with "Rebuild" not running a full clean all the time.


Re: Visual Studio MSBuild Build on one project in a solution also builds all setup projects in solution

Eugene Zakhareyev

I am not sure I follow - you performed Build->Build <Project name> and it built the project selected and Setup projects or did it build Setup projects and project selected What is the order

And when you talk about Rebuild not cleaning the stuff up - what excatly is not cleaned

Cheers, Eugene






Re: Visual Studio MSBuild Build on one project in a solution also builds all setup projects in solution

bpeikes

I'm not sure which order it's building in. It doesn't seem to always do it. I'll have to wait for a repro.

As for Rebuild not cleaning up, it's that sometimes if I switch the Configuration, i.e. Debug -> Release and then rebuild, the Detected Dependencies point to the assemblies in the Debug directories for my projects instead of the Release.





Re: Visual Studio MSBuild Build on one project in a solution also builds all setup projects in solution

Eugene Zakhareyev

There is an issue with managed C# projects, that if you add file reference to assembly (say Debug\ExternalAssembly.dll), it will not be configuration dependent. You will have to go into csproj file and change it to use $(Configuration) property, something like that:

Code Snippet

<Reference Include="Reports">
<Name>Reports</Name>
<HintPath>..\..\..\..\References\$(Configuration)\Reports.dll</HintPath>
</Reference>

I wonder if that may be related to problmes you have.

Cheers, Eugene