Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a project "A" I am using the references of other projects(B & C). If there is a minor change in the logic or new member functions are added to the class without changing the interfaces then do we require to build the project A.

If there is a File version of Assembly version got changed for B or C, do we need rebuild the project A

What I have tried:

Searched online but didnt see answers related to this topic
Posted
Updated 2-Dec-19 23:40pm

it is also depends on how you have set the output directory of each project.
if A is depends on B and C, modifying just member/ properties etc does not required to rebuild the project A. you can just build B and C.
if C & B has interfaces which was used in project A that also just required to build project A not rebuild.
if C and B output directory is different than project A and you are referring this to project A, modifying anything in B and C requires to build project A.

Rebuilding of solution will clean and then build the solution from scratch, ignoring anything it’s done before. normally it does not requires until and unless something is went wrong on your previous steps.

more information you can refer code project article
Understanding Clean, Build and Rebuild in Visual Studio[^]
 
Share this answer
 
v2
Comments
Coder969 3-Dec-19 5:17am    
Thanks for the response. I am using third party libraries in my project. If they give fixes in those projects and if they change the file version of their projects, do I need to rebuild my project as well.
[no name] 3-Dec-19 5:49am    
yes, right, you need to rebuild your application if your third party lib are added in your reference with specific version == true.or if they modified existing interfaces then you need to adopt those changes in your code and build it again.
Coder969 3-Dec-19 5:53am    
I kept specific version property to false. Yea thankfully they are not making changes for the interfaces.

Thanks for clarifying it
Quote:
I am using third party libraries in my project. If they give fixes in those projects and if they change the file version of their projects, do I need to rebuild my project as well.
That depends on how your references in project A look like, if SpecificVersion is true then you will have to rebuild A.
Example from .csproj file:
<Reference Include="nunit.framework, Version=2.6.0.11240, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>\Common\nunit.framework.dll</HintPath>
</Reference>

Is not version dependent, so it probably does not need a rebuild (if the dll's API has no breaking changes).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900