如何使用Resouce.txt在asp.net工作 [英] How to work with Resouce.txt in asp.net
问题描述
我试图创建在桌面上一个新的 Resource.txt
文件和Visual Studio命令提示符拼命地跑一个命令 RESGEN Resource.txt @Resource .rsp
?
what i tried is created a new Resource.txt
file at desktop and runned a command in Visual Studio Command prompt resgen Resource.txt @Resource.rsp
?
错误:: RG0000:指定性反应的文件不存在// Responce.rsp。
Error::RG0000:Specified Responce File does not exist//Responce.rsp.
为什么我得到这个?
的更新
.NET给我们的.resx格式创建的资源。那么如何将有可能创造的.txt资源????
Why I am getting this?
Updated
.net gives us .resx format to create resource. Then how it would be possible to create .txt resources????
更新
.NET给我们的.resx格式创建的资源。那么如何将有可能创造的.txt资源> .NET框架????
Updated .net gives us .resx format to create resource. Then how it would be possible to create .txt resources in >net Framework????
推荐答案
RESGEN Resource.txt @ Resource.rsp
不是一个有效的命令参数。看看 MSDN 文章。
resgen Resource.txt @Resource.rsp
is not a valid command parameter. Have a look at MSDN article.
resgen Resource.txt
编辑:
您可以指定的.resx exension到资源文件。
You may specify .resx exension to resource file.
resgen Resource.txt Resource.resx
使用网站菜单+添加现有项加资源(Resource.resx)文件到你的web项目或只是复制+粘贴到 App_GlobalResources文件
(网站项目)文件夹中。
Use WebSite Menu + Add Existing Item to add resource (Resource.resx) file into your web-project or just copy+paste into App_GlobalResources
(website project) folder.
这篇关于如何使用Resouce.txt在asp.net工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!