MSBuild IIS Problem

I use MSBuild to package and publish my Asp.Net MVC 3, .NET 4 application. I have already successfully done this for MVC 1.0, .NET 3.5 application.

When I include the IIS ( IncludeIisSettings=true) parameters in my .proj file, I get the following build error:

C: \ Program Files (X86) \ MSBuild \ Microsoft \ VisualStudio \ v10.0 \ Web \ Microsoft.Web.Publishing.targets (2046, 5): error MSB4044: task "EscapeTextForRegularExpressions" the specified value for the required parameter failed Text".

+5
source share
3 answers

I had the same problem on my build server.

, , . , IIS.

, IIS Express , IncludeIisSettings=true, . - IIS . IIS 7 IIS Express, . , , EscapeTextForRegularExpressions, .

IncludeIisSettings False .wpp.targets (. .wpp.targets ). IIS, .

, IIS Express WebMatrix. Visual Studio .

+8

, , - , UAC Windows 7 .

, UAC . Start > Control Panel > User Accounts > User Accounts > Change User Account Control Settings. Never notify.

, :

msbuild IncludeIisSettings=true, , .

, , , , . IncludeIisSettings=false, .

, UAC .

+1

, , , IncludeIisSettings = true "The EscapeTextForRegularExpressions", "". " :

  • Visual Studio ( ).
  • Install IIS on the build server.
  • In IIS, on the default website, add the binding for https (port 443) and use the certificate installed by Visual Studio (IIS Express development certificate).
0
source

All Articles