为 multilpe Sharepoint 解决方案部署解决方案 MSBuild 脚本
我是 sharepoint 新手,我正在从事的项目有 11 个单独的解决方案。
为了让网站正常运行,我必须先构建然后部署 11 个解决方案。
我想使用 MSBuild 来自动执行此操作,以前有人这样做过吗?请问您有示例代码吗?
I am new to sharepoint and the project I am working on has 11 seperate solutions.
For me to get a site up and running I have to go in and build then deploy the 11 solutions.
I want to automate this using MSBuild can, has anyone done this before and have you got example code please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建一个包含类似内容的 msbuild 项目文件
从现有项目文件中复制“Project ...”,以获取正确的 ToolsVersion 和 xmlns。有关可传递给 MSBuild 任务调用的其他选项,请参阅 MSDN“MSBuild 任务”。要构建,请打开 Visual Studio 命令提示符,并假设上面的文件名为 Build.proj,运行以下命令:
...或获取详细日志...
Create an msbuild project file that contains something like this
Copy the "Project ..." from an existing project file, to get the right ToolsVersion and xmlns. See MSDN "MSBuild task" for additional options you can pass to the call to the MSBuild task. To build, open a Visual Studio Command Prompt and, assuming the file above is named Build.proj, run this:
...or for a detailed log...