Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create wsp-files with msbuild

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.

like image 723
Ole Albers Avatar asked Dec 04 '25 14:12

Ole Albers


1 Answers

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%
like image 135
Mathias F Avatar answered Dec 07 '25 10:12

Mathias F



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!