VS SharePoint 프로젝트를 업데이트 할 예정이므로 dll과 wsp (패키지)가 모두 만들어집니다.SharePoint 패키지를 만들기 전에 Visual Studio 게시 빌드 명령이 실행됩니다.
내가 과정을 설명 this 페이지를 찾았지만, 문제는 내 프로젝트 파일은 다음과 같이 보이지만,이다 : 포장이 너무 깨끗하고 시작할 때 발생하기 전에
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets" />
<PropertyGroup>
<BuildDependsOn>$(BuildDependsOn);CreatePackage</BuildDependsOn>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>"$(SolutionDir)PostBuild.cmd" "$(SolutionDir)" "$(TargetDir)"</PostBuildEvent>
</PropertyGroup>
PostBuild.cmd이 실행될 때,이 출력은 :
------ Rebuild All started: Project: Sample, Configuration: Debug Any CPU ------
SampleProject -> C:\Inter\bin\Debug\Sample.dll
C:\Inter\bin\Debug\Sample.dll
1 File(s) copied
File not found - *.wsp
0 File(s) copied
Successfully created package at: C:\Inter\Sample\bin\Debug\Sample.wsp
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
아이디어가 있으십니까? 감사!!!
물론 ... 내가 여기에 게시하고있어 PostBuild이 패키지 작성 ... – Ariel
@Ariel 전에 발생하는 것입니다 :이 올바른 동작 있음을 말하고 싶었. 패키징하기 전에 무엇인가하고 싶다면 PreDeploymentCommand – vvk
을 사용하십시오.하지만 배포를 원하지 않고 PostBuild 이벤트 이전에 패키징하는 것만으로도 의미가 있습니까? "다시 빌드"를 클릭하고 프로젝트를 빌드하고 패키지화 한 후 postbuild 명령을 실행하고 싶습니다. – Ariel