regex - modifying an exists file with install.ps1 via nuget-package installing -


i want edit startup.cs file when nuget package installs package. know need use int.ps1 or install.ps1 files don't know correct functions , properties own purpose.

i using c# .net core 1.1 , vs2017 enterprise

my questions

  1. if doesn't exist, want add using $namespace$.my line in startup.cs file. possible?

  2. also, if doesn't exists, want add codes in configureservices() method exists in startup.cs file.

  3. is there way call init.ps1 , install.ps1 testing without installing package?

  4. if need write own script, there used regex example nuget package this?

thanks.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -