Nuget PowerShell script to modify Global.asax.cs

后端 未结 4 1881
一生所求
一生所求 2021-01-06 01:22

I\'m building a nuget package for my company MVC4 template. I have run into an issue where I need the Global.asax.cs to be modified to add these two lines:

4条回答
  •  心在旅途
    2021-01-06 01:41

    In case anyone sees this thread, I want to point out that as of version 2.5 released April, 2013 Nuget will overwrite content files. If using the GUI, the install process will detect the issue and prompt whether or not to overwrite the file. A new option -FileConflictAction allows the setting of a default value.

    See the release notes: http://docs.nuget.org/docs/release-notes/nuget-2.5

提交回复
热议问题