为什么Visual Studio的不动有的文件发布? [英] Why Visual Studio doesn't move some files in publish?

查看:259
本文介绍了为什么Visual Studio的不动有的文件发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试发布我的项目时,Visual Studio不动了一些文件复制到目标文件夹中发布。目前我有这个问题,以.json 文件。我使用Visual Studio 2010和MVC4。

When I try to publish my project, Visual Studio doesn't move some files to target publish folder. Currently I have this problem with .json files. I'm using Visual Studio 2010 and MVC4.

有哪些文件或MIME类型应予以公布,并移动到目标文件夹的任何配置?

Is there any configuration about which files or mime-types should be published and moved to target folder?

推荐答案

当你要到Visual Studio将文件移动到目标发布的文件夹上点击鼠标右键在解决方案资源管理器,选择属性,然后设置生成操作内容的文件。

When you want to Visual Studio move files to target publish folder click right on the file in solution explorer and select properties then set Build Action to Content.

这篇关于为什么Visual Studio的不动有的文件发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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