是否可以查看脚本,Visual Studio的运行建立一个解决方案或项目? [英] Is it possible to view the script that Visual Studio runs to build a solution or project?

查看:233
本文介绍了是否可以查看脚本,Visual Studio的运行建立一个解决方案或项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个创建部署包中启用的NuGet恢复解决方案,MVC项目的脚本。当我手动编写它,如果失败,不同的​​错误。但是,当我尝试与Visual Studio 2012做(我点击发布,然后选择文件系统),它工作得很好,所以我可以以某种方式来看看什么VS不建呢??

I am trying to write a script that creates a deployment package for MVC project in solution with enabled nuget restore. When I write it manually if fails with different errors. But when I try to do it with visual studio 2012 (I click "Publish" and select "File System") it works just fine, so can I somehow to take a look at what VS does to build it??

推荐答案

增加的MSBuild的详细程度:

Increase the verbosity of MSBuild:

msbuild myproject.csproj /v:diag > build.log

或 -

工具>选项>项目和解决方案>生成和运行:

Tools > Options > Projects and Solutions > Build and Run:

这篇关于是否可以查看脚本,Visual Studio的运行建立一个解决方案或项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆