curlysemi / R4Mvc5

R4MVC5 is a Roslyn code generator for ASP.NET MVC5 apps that creates strongly typed helpers that eliminate the use of literal strings in many places
Apache License 2.0
1 stars 0 forks source link

Instructions #6

Closed curlysemi closed 5 years ago

curlysemi commented 5 years ago

Need to update the README with instructions on how to add R4Mvc5 to a new project and instructions on how to switch from T4MVC.

We still need to figure out if we want to do this as a package or an executable.

Right now, here are tentative instructions for how to replace T4MVC for a project called 'MyLameProject':

curlysemi commented 5 years ago

As far as getting this to work with Release Manager for TFS, VSTS, Azure DevOps, or whatever Microsoft has decided to call it, the strategy we're using is to track the EXE and all dependencies in the repo, and have prebuild events for all MVC projects that invokes the EXE. (This gives us the flexibility to patch R4Mvc5 as needed.)

curlysemi commented 5 years ago

A slightly more sophisticated pre-build event (assuming you have the EXE in-tree with the path "Utils/R4Mvc5/" (all the dependencies you need should be in the same directory as the EXE)):

if EXIST "$(SolutionDir)\Utils\R4Mvc5\R4Mvc5.exe" ("$(SolutionDir)\Utils\R4Mvc5\R4Mvc5.exe" generate -p "$(ProjectPath)" ) else (exit 2)
curlysemi commented 5 years ago

Instructions added in a677f8442a21310c904317b68fbe4b9189ca23df.