MSBuild项目错误 [英] MSBuild project Error

查看:48
本文介绍了MSBuild项目错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试使用MSBuild构建项目。我的项目包含.net Core和其他Nuget包。我能够引用所有必要的文件。但是当我尝试构建项目时,它会抛出"

I am trying to build a project using MSBuild. My project contains .net Core and other Nuget Packages. I am able to reference all the necessary files. But when i try to build the project it throws the "

请帮我构建这个项目。




推荐答案

嗨srinivasavaradhan,

Hi srinivasavaradhan,

感谢您在此处发帖。

您使用的Visual Studio和.net核心版本是什么?你有没有在dotnet构建之前进行dotnet恢复?

What the version of Visual Studio and .net core you are using? Have you ever do dotnet restore before dotnet build?

据我所知,如果你使用.net core sdk 1.0,你有责任在任何其他命令之前手动运行dotnet restore 。

As far as I know, if you are using .net core sdk 1.0, you are responsible to manually to run dotnet restore before any other command.

有关详细信息,请参阅
如果项目未在`dotnet build`
之前恢复,则会产生误导性错误。

For the detail information, you can refer to the Misleading error if project is not restored before `dotnet build`.

如果以上对您没有帮助,请分享更多详细步骤来重现此问题或通过onedrive上传样本,然后分享我的链接。

If above not help you, please share me more detailed steps to reproduce this issue or upload a sample by onedrive,then share me the link.

希望这有帮助。


这篇关于MSBuild项目错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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