编译和发布失败.net Core

本文关键字:失败 net Core 布失败 编译 | 更新日期: 2023-09-27 18:11:33

我已经设置了两台机器来编译和发布一个。netcore web应用程序。

一个似乎可以工作,另一个不行。

问题机器声称构建成功,但发布失败,因为没有生成DLL。

构建/发布输出如下,我将非常感谢我从这里去哪里跟踪什么是错误的

1>------ Build started: Project: Engine, Configuration: Release Any CPU ------
1>  C:'Program Files'dotnet'dotnet.exe build "C:'Users'Dev'Documents'Visual Studio 2015'Projects'Engine'src'Engine" --configuration Release --no-dependencies
1>  Project Engine (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
1>  Compiling Engine for .NETCoreApp,Version=v1.0
1>  Compilation succeeded
1>      0 Warning(s)
1>      0 Error(s)
1>  Time elapsed 00:00:00.9996920
1>
2>------ Publish started: Project: Engine, Configuration: Release Any CPU ------
Connecting to C:'Users'MHR'Documents'Visual Studio 2015'Projects'Engine'src'Engine'.'bin'Release'PublishOutput...
Environment variables:
Path=.'node_modules'.bin;C:'Program Files (x86)'Microsoft Visual Studio 14.0'Web'External;%PATH%;C:'Program Files (x86)'Microsoft Visual Studio 14.0'Web'External'git
C:'Program Files'dotnet'dotnet.exe publish "C:'Users'Dev'Documents'Visual Studio 2015'Projects'Engine'src'Engine" --framework netcoreapp1.0 --output "C:'Users'Dev'AppData'Local'Temp'PublishTemp'Engine75" --configuration Release --no-build
Publishing Engine for .NETCoreApp,Version=v1.0
C:'Program Files (x86)'MSBuild'Microsoft'VisualStudio'v14.0'DotNet'Microsoft.DotNet.Publishing.targets(149,5): Error : Could not find file 'C:'Users'Dev'Documents'Visual Studio 2015'Projects'Engine'src'Engine'bin'Release'netcoreapp1.0'Engine.dll'.
2>Publish failed due to build errors. Check the error list for more details.
========== Build: 1 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

机器是Windows 10 Pro,安装了所有更新。IDE是Visual Studio Enterprise 2015, Version 14.0.25431.01 Update 3使用。net core SDK版本1.0.0-preview2-003131

编译和发布失败.net Core

奇怪的是,编译器声称二进制文件已经构建,而发布过程却声称它不存在。

通过在编译时监视构建目录的内容,可以明显地发现DLL正在构建中,但随后立即被删除。

对这台机器上运行的诺顿/赛门铁克病毒检查程序的快速检查显示,它负责吞噬dll。

开发环境本身没有问题。

我将项目树添加到病毒检查器的排除列表中,现在一切正常。