Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing a file #18

Open
Code-Grump opened this issue Jul 31, 2019 · 2 comments
Open

Removing a file #18

Code-Grump opened this issue Jul 31, 2019 · 2 comments

Comments

@Code-Grump
Copy link

Code-Grump commented Jul 31, 2019

I'm trying to write a test suite (for the change to code generation SpecFlowOSS/SpecFlow#1362), but can't currently create a test for removing a feature file and performing a build, because there's no mechanism for "updating" a generated project.

Is it reasonable to introduce a RemoveFile method to the Project and ProjectDriver classes? I'm not clear how that might reconcile with the SolutionWriter being a one-time process with no room for removing content.

@SabotageAndi
Copy link
Contributor

I wouldn't put the method on these two classes, because as you wrote that they are for the one-time process to create the project.
Put it into a class of it's own. For sdk-style projects removing the file is enough. Only for the old-csproj style you have to adjust the file itself.

@Code-Grump
Copy link
Author

Code-Grump commented Aug 1, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants