我一直在使用 Visual Studio 2005 和 Visual Web Developer 2008 在 vb 中创建 asp.net Web 应用程序。 我最近安装了 Visual Studio 2008 以及 AnkhSVN - 并且注意到一些导致问题的更改!
最值得注意的是,在我的解决方案资源管理器中(我正在用 vb 创建 asp.net 应用程序),我不再展开 .aspx 页面来显示 .vb 对应项 - 我必须右键单击并查看代码。
另外,当向解决方案添加新文件时 - 整个界面已更改,我没有获得母版页复选框选项(我必须选择不同的文件类型),也没有选择隐藏代码。
这些只是 Visual Studio 中的更改吗? 令人困惑的是,它也影响了我的 VWD2008!
最后,当我创建一个新页面时 - 我立即收到错误......即“无法加载类型'XXXXXX.yyyyyy'”。 - 其中 XXXXXX 是项目名称,yyyyyy 是代码隐藏中定义的类。 我还确信在此之前,XXXXXX(项目名称)从未被添加到类名称之前! (删除它没有帮助)
我删除了 AnkhSVN 但这没有改变任何东西......那么是 VS2008 安装导致了这个吗? 事情有可能改回来吗? 我可以凑合进行外观更改,但新创建的空白页面甚至无法编译的事实有点烦人!
如果有人可以帮助我,我将不胜感激!
干杯:D
I've have been using Visual Studio 2005, alongside Visual Web Developer 2008 to create asp.net web-apps in vb. I recently installed Visual Studio 2008 alongside these, along with AnkhSVN - and have noticed a few changes which are causing issues!
The most noticable is that in my solution explorer (I'm creating asp.net apps in vb) I no longer expand an .aspx page to display the .vb counterpart - I have to right click and view code.
Also, when adding a new file to the solution - the whole interface has changed, I don't get the master page checkbox option (I have to select a different filetype) nor do I have the choice of code-behind or not.
Are these just changes in Visual Studio? Confusingly it's also affected my VWD2008!
Finally, when I do create a new page - I get errors straight away.. i.e. "Could not load type 'XXXXXX.yyyyyy'." - Where XXXXXX is the project name, and yyyyyy is the class defined in the code-behind. I'm also sure that prior to this, XXXXXX (the project name) was never even prepended to the class name! (removing it doesn't help)
I removed AnkhSVN but that didn't change anything... so was it the VS2008 install that caused this? Is it possible to change things back? I can make do with the cosmetic changes but the fact that a newly created blank page won't even compile is slightly annoying!!
If anyone can help I'd appreciate it!
cheers :D
发布评论
评论(2)
当我搬过来时,我也注意到了这些......它们可能是 Visual Studio 中的更改,但也反映了 .NET 框架和相应 Visual Studio 版本附带的编译器中的更改。
I've noticed these too when I moved over... They are likely changes in Visual Studio but also reflect changes in the .NET framework and compilers that come with the respective visual studio versions.
在将以前页面的代码与 VS 创建的代码进行比较时..我意识到新页面中不存在一段标记 - 那是“CodeFile”属性 - 所以如果我手动添加它,一切都很好! 不知道为什么会发生这种情况...
In comparing the code from previous pages to the ones that VS creates.. I realised that one piece of markup was not present in the new pages - that was the "CodeFile" property - so if I add that manually, everything's fine! No idea why this happens...