运行 .Net 3.5 站点而不进行编译的最低要求是多少
请注意。在有人告诉我应该如何编译代码以提高性能等之前...这只是针对个人项目,我希望能够在常规文本编辑器中编辑代码,然后它就可以工作了。
我通常用 C# 编写代码,但这将是 VB:
我在虚拟目录中有三个文件,
test.aspx
test.aspx.vb
web.config
我已从 File > 复制了 .Net 3.5 web.config 行 for line 。新项目。
它无法识别 XDocument 类。说,它不是 define
因为这是一个 .Net 3.5 类,我认为它与 .Net 3.5 有关。
所以,问题是:这是否可以在不编译的情况下运行单个页面? Asp.Net 应该即时编译。它适用于 2.0。我有什么遗漏的吗?
Please note. Before anyone tells me about how I should compile the code for performance etc... this is just for a personal project and I want to be able to edit the code in a regular text editor and then it just works.
I usually code in C#, but this would be VB:
I have three files in a Virtual Directory
test.aspx
test.aspx.vb
web.config
I have copied the .Net 3.5 web.config line for line from a File > New Project.
It's not recognizing the XDocument class. Says, it's not defined
Since this is a .Net 3.5 class, I figure it has to do with .Net 3.5
So, here's the question: Is this even possible to run a single page without compiling? Asp.Net should compile on the fly. It works with 2.0. Is there something I'm missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将程序集添加到 web.config 文件中(抱歉,我记不起放置它的确切位置,但是正常的 VS 生成的程序应该已经有一些条目了)。
Just add the assemblies to the web.config file (sorry cant recall the exact place to put it, but a normal VS generated one should have a few entries already).