I have a Visual Studio 2010 SharePoint project. If I choose 'Package' from the project menu, a .wsp file is generated. How can I invoke the same build from command line (i.e. what /target is required for MSBuild)?
相关问题
- Visual Studio 2019 - error MSB8020: The build tool
- Visual Studio 2010 randomly says the command line
- (ASP.NET) Project file must include 'WindowsBa
- Partial Form Class C# - Only display code view for
- Why does this code not compile?
相关文章
- How to show location of errors, references to memb
- Log4Net Multiple Projects
- Compiling error in C++ project with C and C++ code
- How to use Mercurial from Visual Studio 2010?
- Build errors of missing packages in Visual Studio
- VSIX: execute code on VS startup
- Copy different file to output directory for releas
- How do we alias a Sql Server instance name used in
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.This is also a useful document here: http://msdn.microsoft.com/en-us/ff622991.aspx
Set the MSBuild's verbosity to 'maximum' and you should see what is called from the build console.
In VS2010 of course :)
Also to package project with msbuild you can use target Package:
Define new target "BuildAndPackage"
Use new target in build process:
But this approach not recommended because it may cause errors in TFS Build process..