![]() ![]() ![]() Usually you’d just press “Add,” but in this case, you actually want to click the dropdown and select “Add As Link. In the target location, right click the folder and select “Add > Existing Item…” Visual Studio has two kinds of project organization file formats: projects and solutions. NET developer you probably use or have used Visual Studio. Ive given this advice quite a number of times so I figured it was time to put it into an online article. Each project will reference the same location on disk.ĭoing this is very simple. Using Multiple Solutions in Visual Studio. ![]() You won’t need to deal with the headache of copying files back and forth whenever you make changes. If it’s just a single class file you need to reference in multiple places, using symlinks will make it easier to manage. However, using an external class library usually comes with adding an extra DLL as a runtime dependency, which is a problem if you’re referencing a lot of code. Using symlinks would result in duplicate code in each assembly that references it. If you have that as an option, you should take it. Sharing code between projects sounds like a great use case for just using an external class library. Linking Files Across Projectsįirst, you should ask yourself if symlinks is really the best method to handle this. Usually, they’re fairly separate, but what if you need to share code among them? One of the simplest ways to do this properly is with symlinks. Visual Studio “Solutions” are able to store multiple projects and assemblies. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |