简体   繁体   English

MSBuild 正在从“Visual Studio 命令提示符”中运行

[英]MSBuild is being run from within the "Visual Studio Command Prompt"

I am using VS2017 Enterprise for first the time building my repository.我第一次使用 VS2017 Enterprise 构建我的存储库。 Have cloned code from my VS repository and trying to build it but build failed.从我的 VS 存储库中克隆代码并尝试构建它但构建失败。 And also i have set environment variable path --> PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe我还设置了环境变量路径 --> PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe

Error message:错误信息:

Severity Code Description Project File Line Suppression State Error MSBuild could not locate the Code Analysis tool at 'Drive:\Repo\NugetPackages\CarbonV2.FxCop.SDL.14.0.23107.0\Tools\FxCopCmd.exe'.严重性代码说明项目文件行抑制 State 错误 MSBuild 无法在“Drive:\Repo\NugetPackages\CarbonV2.FxCop.SDL.14.0.23107.0\Tools\FxCopCmd.exe”中找到代码分析工具。 If MSBuild is being run from within the "Visual Studio Command Prompt", specify the path to the Code Analysis tool by setting the FXCOPDIR environment variable.如果 MSBuild 从“Visual Studio 命令提示符”中运行,请通过设置 FXCOPDIR 环境变量指定代码分析工具的路径。 Demo.Service.Common演示.Service.Common

Could you please help on this, did i missed any thing?你能帮忙解决这个问题吗,我错过了什么吗?

What's standing out to me is that i'm seeing NugetPackages - leading me to believe you're missing something from Nuget.对我来说最突出的是我看到了 NugetPackages - 让我相信你从 Nuget 中遗漏了一些东西。

https://learn.microsoft.com/en-us/nuget/consume-packages/package-restore#restore-packages-automatically-using-visual-studio https://learn.microsoft.com/en-us/nuget/consume-packages/package-restore#restore-packages-automatically-using-visual-studio

You can install the FXCOP manually, or follow the instructions in that article to have NuGet attempt to get all of the missing packages automatically for you.您可以手动安装 FXCOP,或按照该文章中的说明让 NuGet 尝试自动为您获取所有缺少的包。 Hope this helps!希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从visual studio命令提示符运行nuget包管理器控制台 - Run nuget package manager console from visual studio command prompt 运行命令提示符命令以在Visual Studio中启动解决方案 - run a command prompt command to start a solution in Visual Studio 如何使用Visual Studio工具栏在命令提示窗口上运行控制台应用程序 - How to run console application on command prompt window with visual studio Toolbar Visual Studio生成解决方案,但命令行中的MSBuild失败 - Visual Studio builds solution but MSBuild from the command line fails 命令提示符下的MsBuild未生成FakeAssemblies - MsBuild from command prompt is not generating the FakeAssemblies 从C#代码打开Visual Studio命令提示符 - Open Visual Studio command prompt from C# code 如何从Visual Studio运行Grunt命令? - How to run Grunt command from Visual Studio? 通过Visual Studio(C#)打开命令提示符,运行一些命令,然后通过文本框在命令提示符中显示结果详细信息 - open command prompt through Visual studio ( C# ) , run some commands and then display the resultant details in the command prompt through a text box 从 msbuild 构建解决方案时未构建 Visual Studio 项目 - Visual Studio project not being built when I build Solution from msbuild MSBuild从命令行失败,但从Visual Studio cmd行成功 - MSBuild fails from command Line but succeeds from visual studio cmd line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM