I am trying to convert an ASP.NET website into a web application project. The conversion has gone ok I think apart from previously I had 2 xsd files in the App_Code folder. I believe this folder is not used in web applications projects, so where would I put xsd files now.
我试图将ASP.NET网站转换为Web应用程序项目。转换已经好了我认为除了以前我在App_Code文件夹中有2个xsd文件。我相信这个文件夹不用于Web应用程序项目,所以我现在在哪里放xsd文件。
2 个解决方案
#1
1
I don't think you have to put them anyplace in particular. For the purposes of organization you could create a data directory. If the project is small enough, I leave it in the root.
我不认为你必须特别把它们放在任何地方。出于组织目的,您可以创建数据目录。如果项目足够小,我将它留在根目录中。
#2
0
You can place the files wherever you want, but you have to be careful that your namespace references are still correct.
您可以将文件放在任何位置,但必须注意命名空间引用仍然正确。
I would look at your Root Namespace declaration in the project properties to ensure that it is set to what you expect it to be. Also, you will want to look at the location of your TableAdapter objects, as that is where the actual error is, not in the declaration of your StudentQueriesDataTable (Referenced by your xsd as the posted question)
我会在项目属性中查看您的Root Namespace声明,以确保它设置为您期望的结果。此外,您还需要查看TableAdapter对象的位置,因为这是实际错误的位置,而不是在您的StudentQueriesDataTable的声明中(由您的xsd引用为已发布的问题)
#1
1
I don't think you have to put them anyplace in particular. For the purposes of organization you could create a data directory. If the project is small enough, I leave it in the root.
我不认为你必须特别把它们放在任何地方。出于组织目的,您可以创建数据目录。如果项目足够小,我将它留在根目录中。
#2
0
You can place the files wherever you want, but you have to be careful that your namespace references are still correct.
您可以将文件放在任何位置,但必须注意命名空间引用仍然正确。
I would look at your Root Namespace declaration in the project properties to ensure that it is set to what you expect it to be. Also, you will want to look at the location of your TableAdapter objects, as that is where the actual error is, not in the declaration of your StudentQueriesDataTable (Referenced by your xsd as the posted question)
我会在项目属性中查看您的Root Namespace声明,以确保它设置为您期望的结果。此外,您还需要查看TableAdapter对象的位置,因为这是实际错误的位置,而不是在您的StudentQueriesDataTable的声明中(由您的xsd引用为已发布的问题)