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

Added management of views generation when the files are linked from another project #127

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

jeromep01
Copy link

This ability has been added because we are converting a ASP.NET MVC 5 project working with T4MVC in a new format ASP.NET Core project.

As i use the views/controllers in a LinkBase mechanism, R4MVC was generating the controllers correctly but not the Views.

Additionaly i deactivated in the GenerateCommand (sorry, it was included in the Commit), the foundErrors because we have some nuget packages that are not yet fully compliant in .NET Core, and if we have this, the .generated files are not saved. Perharps, we should add a new setting to apply it ?

@artiomchi
Copy link
Member

Hey Jerome,

That's a good idea, but needs a bit of work.

I've reverted some of the changes that you had, as one of them broke the model handling code, and the path you added to the tools' project startup didn't exist anywhere except your machine - that shouldn't have been pushed to git :)

I've added a folder with a linked view to the sample project, and the code you added doesn't work in this case. Looking further, this looks like it needs a bit of a more complex change to make this work.

I'll see if I get some time to help on this

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

Successfully merging this pull request may close these issues.

None yet

2 participants