3

를 제외 Settings.txt \ 기본 \ Settings.txt 오차드 CMS의 webdeploy에서오차드 CMS - 어떻게 App_Data 사이트 는 App_Data 과수원을 제외하는 webdeploy

다른 다수를 시도 (소스에서 컴파일) 파일 경로 및 곧은 Settings.txt. 항상 다시 업로드됩니다.

enter image description here

설정

enter image description here

모든

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 
<DebugType>pdbonly</DebugType> 
<Optimize>true</Optimize> 
<OutputPath>bin\</OutputPath> 
<DefineConstants>TRACE</DefineConstants> 
<ErrorReport>prompt</ErrorReport> 
<WarningLevel>4</WarningLevel> 
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 
<PlatformTarget>AnyCPU</PlatformTarget> 
<ExcludeApp_Data>false</ExcludeApp_Data> 
<FilesToIncludeForPublish>OnlyFilesToRunTheApp</FilesToIncludeForPublish> 
<ExcludeFilesFromDeployment>orchard\App_Data\Sites\Default\Settings.txt</ExcludeFilesFromDeployment> 

답변

1

작동하지 않는 작동을 사용하면 "이 파일을 제외 확인 시도 되세요 App_Data 폴더 "첫 번째 화면에? 실제로 사이트 업데이트를 수행 할 때 로컬 컴퓨터에서이 폴더를 전혀 복사 할 필요가 없습니다.

App_Data 폴더에는 Settings.txt 외에도 로그 및 종속 어셈블리 (Orchard에서 동적으로 검색)가 들어 있습니다. 로컬 복사본에서도이를 무시하고 싶지 않으므로 전체 App_Data를 제외하면됩니다. 아니면 그렇게하지 않는 특별한 이유가 있습니까?