简体   繁体   English

从 Visual Studio 2017 中的现有 VB.NET 项目创建 dll

[英]Create dll from existing VB.NET project in Visual Studio 2017

At the moment I am migrating several projects from Visual Studio 2015 to Visual Studio 2017 Enterprise edition.目前我正在将几个项目从 Visual Studio 2015 迁移到 Visual Studio 2017 企业版。

One of them is a VB.NET project, ODKWrapper, which provides a dll for other projects.其中之一是一个VB.NET项目,ODKWrapper,它为其他项目提供了一个dll。 The output path is specified, it should be created in../Run/Release.指定了output路径,应该在../Run/Release中创建。 In VisualStudio2015 it worked well.在 VisualStudio2015 中它运行良好。

When I build the same project in Visual Studio 2017, no dll is generated and, even worse, a dll copied to the directory is deleted.当我在 Visual Studio 2017 中构建相同的项目时,没有生成 dll,更糟糕的是,复制到目录的 dll 被删除。

How can I create a dll from an existing project in Visual Studio 2017?如何从 Visual Studio 2017 中的现有项目创建 dll?

Thank you in advance.先感谢您。

I found the solution.我找到了解决方案。 When moving from VisualStudio2015 to VisualStudio 2017, the reference to log4net was lost.从 VisualStudio2015 迁移到 VisualStudio 2017 时,对 log4net 的引用丢失。 I had reset it and the project was all OK, but apparently on the wrong version of log4net.我已经重置它并且项目一切正常,但显然是在错误版本的 log4net 上。 Now I've reconnected this reference and compiled as.dll works.现在我重新连接了这个参考并编译为.dll 作品。 Many thanks for your help.非常感谢您的帮助。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM