shproj file will keep track of any file, in any subfolder of this new DockerDev folder in my solution.Īs far as I could see, this solution works pretty much like what the OP requested: it will work as a non-compilable reference to a folder, and it will automatically reflect any changes made to it. shproj in your solution.įor instance, in my case, I've created a DockerDev.shproj, so I can group some docker-related scripts that we run only in our development machines: shproj file at the root of this new folder. shproj file, we can make it automatically reflect any new files and/or subfolders. It's obviously possible to add a shared project that is never referenced by any other project, meaning we can avoid the issue presented above. So one part of the trick here is to use shared projects instead of solution folders. This project type does not get compiled by default, but only when (and only if) it is referenced by another project. And if you want have a project which only contains non-compilable files, that will be an issue.īut some time ago Visual Studio introduced a new project type: Shared Project (.shproj extension). The problem with regular project files is that they eventually will be compiled by MSBUILD. I guess what I'm describing here is possibly the least awkward way of achieving that. The chosen answer suggests it would be possible to use actual projects instead of solution folders, but does not really explain how. And there still are use cases where the classical (virtual) Solution Folders that VS provides, fit in the picture. I know the feature is not intended for that use case, but except for the maybe misleading "Project" icon I didn't find any shortages to that hack yet. It's easy to choose, what to include in source control or not, and (if set up correctly) it doesn't conflict with build. I (miss)use it for specs, docs, PM and some DevOps scripts that are shared within the team. Now Solution Explorer will reflect any change in the file system and vice versa (including subfolders).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |