c# - 在设置 Windows 服务时遇到问题

标签 c# windows

我正在尝试设置 Windows 服务。但是当我build设置时,输出是这样的......

------ Build started: Project: TwitterService, Configuration: Debug Any CPU ------
TwitterService -> C:\Users\Globus-n2\Desktop\LatestTweetMati\TwitterService\bin\Debug\TwitterService.exe
------ Starting pre-build validation for project 'Setup' ------ 
------ Pre-build validation for project 'Setup' completed ------
------ Build started: Project: Setup, Configuration: Debug ------
Building file 'C:\Users\Globus-n2\Desktop\LatestTweetMati\Setup\Debug\Setup.msi'...
Packaging file 'TwitterService.exe.config'...
Packaging file 'GlobusLib.dll'...
Packaging file 'TwitterService.exe'...
Packaging file 'GlobusTwitterLib.dll'...
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========

安装失败,我没有收到任何错误。我已尝试制作新副本,但问题仍然存在。我已尝试再次添加那些 dll,但问题未解决。有人能帮我解决这个问题吗.il 真的非常感谢,如果有人试图解决这个问题。

最佳答案

(我在这里假设您正在使用 Visual Studio 构建此项目)

尝试改变编译的输出详细程度。在 Visual Studio 中,转到 Tools -> Options -> Projects and Solutions -> Build and Run 并更改标记为“MSBuild project build output verbosity”的组合框的值。将其设置为 DetailedDiagnostic 应该会在输出窗口中为您提供更多信息,这有望让您更清楚地了解问题所在。

关于c# - 在设置 Windows 服务时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2569365/

相关文章:

docker容器内的Python,优雅地停止

c# - .NET - 使用基于表单的身份验证在 (Domino) 服务器上使用 HTTP 服务

c# - 如何将 EF4 代码优先 ICollection 转换为 EntityCollection?

c# - 使用正则表达式替换 MS Outlook html 源字符串?

C# Double.ToString()

windows - TCP 和 UDP 使用不同的操作系统缓冲区?

windows - 如何配置 Plastic SCM Cloud 将 Jet 数据库存储在另一个驱动器上?

c# - 使用 async/await 的最佳实践

python - 有没有办法可以用 bash 而不是 cmd 进行编译?

windows - 如何在 Windows 7 中为 mongoDB 设置默认 dbpath?