Cassini
Cassini

Reputation: 75

Where is the information stored when adding the reference to project?

I am using Visual Studio and adding reference to the project. I can find that there is a folder called References and i add the dll's or Projects to it.

Before build if i wanted to move it, which physical path or part of coding can i find the references.

After Build i can find that the references are converted to dll's but wanted to know before build, if it is stored somewhere. IF so where is it stored?

Upvotes: 1

Views: 870

Answers (2)

Robert Graves
Robert Graves

Reputation: 2320

Project references are stored in your project file. For example in my .csproj

<ItemGroup>
  <ProjectReference Include="..\MyOtherProject\MyOtherProject.csproj">
    <Project>{9deefd25-a349-4244-b123-ed66927e7414}</Project>
    <Name>MyOtherProject</Name>
  </ProjectReference>
</ItemGroup>

You can view your project file by opening it in another text editor, or by right clicking on it in VS and clicking Unload Project. Then right click on the unloaded project and click Edit. When you're done looking, right click and click Reload.

Upvotes: 1

Leo
Leo

Reputation: 14850

If you are adding a project reference to another project and then you physically (or manually) move this project to another location (by copy/paste) then you will need to update the reference in your project. But, don't worry even if you fail to remember to update the reference Visual Studio will complain about it when compiling. But, if the reference is an assembly reference, then a copy will be created in your Refences/*bin* folder.

Upvotes: 0

Related Questions