Create wsp-files with msbuild
-
10-02-2021 - |
Question
When I rightclick on a sharepoint project and select "deploy" a wsp file gets generated.
I now want to automate the buildprocsses. I already use nant to call MsBuild. This builds my csproj-file.
How can I get from this to my wsp files? I read some articles that talked about a ddf file but I don't see one in my solution.
Solution
Try this
set msbuild="C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe"
set config=Debug
set outdir="C:\out\"
%msbuild% /p:Configuration=%config% /m project.csproj /t:Package /p:BasePackagePath=%outdir%
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow