I got it to work, finally. The tricky part is the fact that the SharePoint targets do not exist when MSBuild loads the .sln
file, you have to load the individual .csproj
files.
set msbuild="C:WINDOWSMicrosoft.NETFrameworkv4.0.30319MSBuild.exe"
set config=Debug
set outdir="C:out"
%msbuild% /p:Configuration=%config% /m ../My.SharePoint.Project/My.SharePoint.Projectcsproj /t:Package /p:BasePackagePath=%outdir%
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…