From aff1a51a389f09ca1865e54c16cfff4741435c8e Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Tue, 14 Jun 2016 13:57:09 -0700 Subject: WIP [library.make] Make resource usage declarative in the class libraries (#3159) [library.make] Make resource usage declarative in the class libraries --- mcs/class/System.Web.WebPages/Makefile | 16 +++++----------- .../System.Web.WebPages-net_4_x.csproj | 14 ++++++-------- 2 files changed, 11 insertions(+), 19 deletions(-) (limited to 'mcs/class/System.Web.WebPages') diff --git a/mcs/class/System.Web.WebPages/Makefile b/mcs/class/System.Web.WebPages/Makefile index 394f2043a11..3e9641f079c 100644 --- a/mcs/class/System.Web.WebPages/Makefile +++ b/mcs/class/System.Web.WebPages/Makefile @@ -5,24 +5,18 @@ include ../../build/rules.make LIBRARY = System.Web.WebPages.dll LIBRARY_NAME = System.Web.WebPages.dll -System.Web.WebPages.Common.CommonResources.resources: ../../../external/aspnetwebstack/src/CommonResources.resx - $(RESGEN) "$<" "$@" - -System.Web.WebPages.Resources.WebPageResources.resources: ../../../external/aspnetwebstack/src/System.Web.WebPages/Resources/WebPageResources.resx - $(RESGEN) "$<" "$@" +RESOURCE_DEFS = \ + System.Web.WebPages.Common.CommonResources,../../../external/aspnetwebstack/src/CommonResources.resx \ + System.Web.WebPages.Resources.WebPageResources,../../../external/aspnetwebstack/src/System.Web.WebPages/Resources/WebPageResources.resx LIB_REFS = Microsoft.CSharp Microsoft.Web.Infrastructure System System.ComponentModel.DataAnnotations System.Configuration System.Core System.Data.Linq System.Web System.Web.WebPages.Deployment System.Web.Razor System.Xml System.Xml.Linq + LIB_MCS_FLAGS = \ /warn:1 \ /keyfile:../winfx.pub \ /delaysign \ - /d:ASPNETWEBPAGES \ - /resource:System.Web.WebPages.Resources.WebPageResources.resources \ - /resource:System.Web.WebPages.Common.CommonResources.resources + /d:ASPNETWEBPAGES EXTRA_DISTFILES = $(RESX_DIST) include ../../build/library.make - -$(build_lib): System.Web.WebPages.Resources.WebPageResources.resources \ - System.Web.WebPages.Common.CommonResources.resources diff --git a/mcs/class/System.Web.WebPages/System.Web.WebPages-net_4_x.csproj b/mcs/class/System.Web.WebPages/System.Web.WebPages-net_4_x.csproj index 2d7a70d2aa8..28ca085172c 100644 --- a/mcs/class/System.Web.WebPages/System.Web.WebPages-net_4_x.csproj +++ b/mcs/class/System.Web.WebPages/System.Web.WebPages-net_4_x.csproj @@ -208,12 +208,10 @@ --> -cp $(ProjectDir)/../../../external/aspnetwebstack/src/CommonResources.resx $(ProjectDir)/System.Web.WebPages.Common.CommonResources.resx -cp $(ProjectDir)/../../../external/aspnetwebstack/src/System.Web.WebPages/Resources/WebPageResources.resx $(ProjectDir)/System.Web.WebPages.Resources.WebPageResources.resx + -cp $(ProjectDir)/../../../external/aspnetwebstack/src/CommonResources.resx $(ProjectDir)/System.Web.WebPages.Common.CommonResources.resx -cp $(ProjectDir)/../../../external/aspnetwebstack/src/System.Web.WebPages/Resources/WebPageResources.resx $(ProjectDir)/System.Web.WebPages.Resources.WebPageResources.resx + @@ -280,12 +278,12 @@ cp $(ProjectDir)/../../../external/aspnetwebstack/src/System.Web.WebPages/Resour - - System.Web.WebPages.Resources.WebPageResources.resources - - + System.Web.WebPages.Common.CommonResources.resources + + System.Web.WebPages.Resources.WebPageResources.resources + -- cgit v1.2.3