构建时在 Visual Studio 2008 Express 中没有编译 DLL
我是一个 .NET 新手,所以如果这是一个愚蠢的问题,请原谅我。我继承了一个网站,我对其进行了修改,现在需要重建。我已在 VS2008 中打开 .sln 文件,对文件进行更改并单击“build >”重建网站”。这似乎运行正常 - 它在构建时在底部的面板中输出大量注释,然后最终停止,说:“验证完成。全部重建:1 成功,0 失败,0 跳过”。
但是当我检查bin文件夹时,里面没有dll。
有谁知道这里出了什么问题?我只需要构建这个东西并上传 aspx 和 dll 文件,它应该被排序,但似乎根本无法让它正确构建。
感谢您的指点...
I'm a .NET newb, so forgive me if this is a stupid question. I've inherited a website which I've amended and now need to rebuild. I've opened the .sln file in VS2008, made my changes to the files and clicked 'build > rebuild website'. This seems to run okay - it outputs a load of comments in a panel at the bottom as it's building, and then finally stops, saying: "Validation complete. Rebuild All: 1 succeeded, 0 failed, 0 skipped".
But when I check the bin folder, there are no dlls in there.
Does anyone know what's going wrong here? I just need to build this thing and upload the aspx and dll files and it should be sorted, but just can't seem to get it to build properly at all.
Thanks for any pointers...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果它是一个 Web 项目而不是一个 Web 应用程序,那么 Visual Studio 实际上不会构建和编译它。它只是检查错误,然后让运行时本身编译网页和后面的代码。所以你不会在bin文件夹中得到dll。
您可以尝试预编译您的站点并将输出复制到您的网络服务器。
跳跳虎干杯。
If its a web project and not a web application then Visual Studio does not actually build and compile it. It just checks through for errors and let's the runtime itself compile the web pages and code behind. So you won't get a dll in the bin folder.
You can try pre-compiling your site and copying the output up to your web server.
Cheers Tigger.
确保您正在查找正确的 bin 文件夹。它不是解决方案资源管理器中的文件夹,您需要确保使用“发布”配置 bin 文件夹而不是“调试”进行检查。
Make sure you're looking in the right bin folder. It's not the one in solution explorer, and you need to make sure you're checking using the "Release" configuration bin folder and not "Debug".
他们完全有可能将构建输出重定向到其他地方。
检查项目属性(右键单击项目名称并选择属性)。
在“编译”选项卡上查看构建输出路径是什么。这就是程序集 (dll) 将被推送到的位置。
It's entirely possible they are redirecting the build output to somewhere else.
Check the project properties (right click on the project name and select Properties).
On the "Compile" tab look to see what the Build Output Path is. That is where the assemblies (dll's) are going to be pushed to.
尝试单击“解决方案”,右键单击“构建解决方案”。它会重建所有解决方案文件,而不仅仅是网页。
Try Click on Solution right mouse ant choose Build solution. It rebuild all your solution files not only the web page.
转到 Visual Studio 顶部的“生成”菜单,然后选择“生成解决方案”。
Go to the 'Build' menu at the top of Visual Studio and select 'Build Solution'.