diff --git a/global.json b/global.json index 523ce01..a5afa39 100644 --- a/global.json +++ b/global.json @@ -6,7 +6,7 @@ }, "msbuild-sdks": { "Microsoft.Build.NoTargets": "2.0.1", - "MSBuild.SDK.SystemWeb": "4.0.82", - "MSBuild.SDK.SystemWeb.RazorLibrary": "4.0.82" + "MSBuild.SDK.SystemWeb": "4.0.88", + "MSBuild.SDK.SystemWeb.RazorLibrary": "4.0.88" } } \ No newline at end of file diff --git a/src/MSBuild.SDK.SystemWeb/Sdk/MSBuild.SDK.SystemWeb.DefaultItems.props b/src/MSBuild.SDK.SystemWeb/Sdk/MSBuild.SDK.SystemWeb.DefaultItems.props index 1d01b40..eabe8b9 100644 --- a/src/MSBuild.SDK.SystemWeb/Sdk/MSBuild.SDK.SystemWeb.DefaultItems.props +++ b/src/MSBuild.SDK.SystemWeb/Sdk/MSBuild.SDK.SystemWeb.DefaultItems.props @@ -8,12 +8,22 @@ - <_WebConfigConfigurations Include="$(Configurations)" /> - - Web.config - + + <_WebConfigConfiguration Include="$(Configurations)" Exclude="@ExcludeWebConfigConfiguration"> + %(Identity) + + <_WebConfigConfigurationFile Include="@(_WebConfigConfiguration->'Web.%(Identity).config')" > + Web.config + false + true + + + + - Web.config + Web.config