Answered by:
How to manually associate file with parent file?

Question
-
I'm using VS2015.
I'm working on a DNX project.
I want to do something that we used to be able to do in the project file. Specifically I want to associate a file with a parent file (see example below).
config.json
-> config.[name].[name].json
Presently VS2015 automatically associates a configuration file with a parent if it only contains one level name difference (i.e. config.[name].json). I want to be able to associate any named file.
Where is this done?
- Moved by Barry Wang Thursday, August 13, 2015 9:24 AM
Wednesday, August 12, 2015 6:07 PM
Answers
-
Might try them over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Mike Laughlin Friday, August 14, 2015 2:54 PM
- Marked as answer by Jeremy Foster Friday, August 14, 2015 3:12 PM
Thursday, August 13, 2015 1:16 PM
All replies
-
If you mean “File Nesting”, then try editing the project file using any text editor. If you have:
<XXX Include=”config.name.name.json” />
then change it to
<XXX Include="config.name.name.json" >
<DependentUpon>config.json</DependentUpon>
</XXX>where XXX is the name of element.
Backup your files before such interventions.
See also some extensions for “file nesting”, which can be found in Visual Studio Gallery via Tools, Extension and Updates menu.
Wednesday, August 12, 2015 7:13 PM -
This is not available for DNX project.Wednesday, August 12, 2015 7:48 PM
-
Hello,
Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss:
Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
I'll move your case to "Where is the forum for" so that you can get some direction.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Thursday, August 13, 2015 9:24 AM -
Might try them over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Mike Laughlin Friday, August 14, 2015 2:54 PM
- Marked as answer by Jeremy Foster Friday, August 14, 2015 3:12 PM
Thursday, August 13, 2015 1:16 PM