为App_Data中的文件设置构建操作 [英] Setting Build Action for Files in App_Data

查看:91
本文介绍了为App_Data中的文件设置构建操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个新网站,我必须对App_Data文件夹中的几个文件设置构建动作,但是当我单击属性"选项卡时,无法对其进行设置. (仅普通选项不存在).发生了什么,我该如何解决?

顺便说一句,我尝试将站点作为.Net 3.5和.Net 4.0,但这似乎并不重要.

I''m building a new website and I have to set the build action on a couple of files in the App_Data folder, but when I click the Properties tab, there''s no way to set it. (the option just plain isn''t there). What''s going on, and how do I fix it?

BTW, I tried the site as .Net 3.5 and .Net 4.0, and that didn''t seem to matter.

推荐答案

好吧,我想我明白了.

看起来您正在使用一个Web应用程序,根据Visual Studio,该应用程序实际上是一个网站.
您可能需要创建一个新的 Web应用程序,并可能在其中复制源文件.

我确定,我不需要共享转换链接.
Ok, I guess I get the issue.

Looks like you are working on a web application that is actually a website as per Visual Studio.
You would need to create a new web application and probably copy over the source files there.

I am sure, I don''t need to share links for conversion.


这篇关于为App_Data中的文件设置构建操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆