How to place resx files in App_GlobalResources folder using solutions (wsp)?

I made many solutions (wsp) for SharePoint 2007, and I almost automated all the installation steps, but there is one thing that I cannot automate.

How can I create a solution that places resource (resx) files in the App_GlobalResources folder of a virtual application?

Thanks in advance.

+3
source share
4 answers

You will need to write a Feature Receiver that copies the files because there is no way to deploy them directly through the SharePoint configuration files.

, : , , SharePoint

+6

App_GlobalResources.

- SharePoint, . timerjob , . , , - ( ), . timerjob, - , -, ( RunWithElevated...) - - af Farm SiteCollection ( ).

:

Windows SharePoint Services 3.0

, , SharePoint ( DylanW)

+2

stsadm CopyAppBinContent, frpm 12/Resources App_GlobalResources. WSP ( VS) resx . , resx "" .csproj( , 12/Resources), XCopy ( resx) 12/ .

CopyAppBinContent ( .bat).

CopyAppBinContent , SPJobDefinition, .

+1

I added the resx file to the App_GlobalResources folder, right-clicking on the project and choosing: - Add a new item - An empty item called "Resources", - Then add a new resx file to the newly created Resources folder - Then change the "Type" in the resx file Deployment to "AppGlobalResource"

Matt

+1
source

Source: https://habr.com/ru/post/1704649/


All Articles