문제

다음 element.xml 파일로 SharePoint 온라인으로 솔루션을 배포했습니다.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="MyModule">
    <File Path="MyFilePath\MyFile.aspx" Url="MyFileUrl/MyFile.aspx"/>
  </Module>
</Elements>
.

우리는 MyFile.aspx 파일의 변경 사항을 사용하여 솔루션을 업데이트했지만 SharePoint에서 변경 사항을 볼 수는 없습니다.SharePoint 온라인을 '새로 고침'솔루션 파일로 강제로 강제로 할 수있는 방법이 있습니까? 호기심에서 누군가가 그 파일을 보관하는 곳을 알고 있습니까?

도움이 되었습니까?

해결책

What you could do is:

  • Create a Feature Event Receiver.
  • Delete your files on FeatreUpgrading.
  • Bump your package so the solution can be upgraded.

This will delete the files from the database, so on upgrade they will be replaced because they do not exist.
If this does not work you could try on feature deactivating.

다른 팁

public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
{
    using (SPWeb web = ((SPSite)properties.Feature.Parent).OpenWeb())
    {
        SPFile g = web.GetFile("ModuleName/Page.aspx");
        g.Delete();
    }
}
.

이 작업을 수행하시면, 불행히도 모듈을 통해 열거 할 수있는 방법을 찾지 못했을 때 하드 코딩되어야합니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top