![]() ![]() Sometimes this is the behaviour you want, but often you want the original file to remain where it is and for the project to just point to it, not to create a copy. Visual Studio will spot that the file is outside the project directory and will copy it in. You're then presented with a file picker dialog, so you can navigate to the file, and choose Add. ![]() You can easily do this from Visual Studio by right clicking the project you want to include it in, and selecting Add > Existing Item… Sometimes, you might want to include an existing item in your ASP.NET Core apps that lives outside the project directory. Adding files from outside the project by copying I suspect this feature may have slipped under the radar for many people due to the slightly obscure UI hints you need to pick up on in Visual Studio. This post is just a quick tip that I found myself using recently - including files in a project that are outside the project directory. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |