Solution isn't updated when excluding project with modifier
See original GitHub issueSteps to Reproduce
- Create a
.template.config
for a solution with multiple projects. - Add a symbol/modifier to remove one of these projects.
dotnet new
, and ensure that the symbol for removing the project is set totrue
.
Expected Behavior
Because I am excluding an entire directory with a csproj, I expect the folder containing this project to not unfold, and that the solution is updated to remove this project.
Actual Behavior
The folder containing the excluded csproj is not unfolded (as expected), but the solution is not updated to reflect this.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Why is this image not staying in place when using the UV ...
Use "override image" option in the modifier. Each empty has been moved and scaled to fit the image texture at the wanted location....
Read more >Visual Studio 2015, can't change access modifier of new ...
This problem is a known bug in Asp.net Core projects and access modifier is on public by default and you can not change...
Read more >Project Solution (.sln) file - Visual Studio (Windows)
A solution is a structure for organizing projects in Visual Studio. ... This value isn't updated so as to lessen churn in the...
Read more >Ctrl-A for applying modifier under cursor (2.91) not active (2.92 ...
Hi folks! Since 2.92 there is a new concept of active modifier, which was introduced due to new geometry nodes project.
Read more >How to Use the SHRINKWRAP Modifier in Blender ... - YouTube
In this video, learn how to use the Blender Shrinkwrap modifier to ... surface modifier 4:57 - Shrinkwrap Wrap method - Project 6:23 ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For conditionally including / excluding content from a .sln file, the syntax for the conditional statements is:
…and the corresponding
////
versions for conditional uncommenting in conjunction to including or excluding the content.I created a small solution template with 2 projects in it, and added conditioning based on a boolean parameter called “useOther”. I believe this example will satisfy your needs, @pierceboggan :
With this setup, if my useOther symbol is set to false, the “OtherProject” statements are excluded from the .sln file.
If you use the same condition(s) in the .sln files as in the sources section of the template.json, the output should be as expected.
Please let me know if you run into any issues using this approach, and we can work through them together to get the results you expect.
Yep, that’d be the approach - to add conditioning to the solution file that keys on the same symbol that’s used in the modifier
@seancpeters can you assist with the syntax for conditions in sln files?