在ASP.NET Core中编辑资源文件

时间:2017-09-14 13:37:16

标签: c# asp.net asp.net-core asp.net-core-1.1

有没有办法按代码修改ASP.NET Core应用程序的资源文件?

我试图找到app.post('/myposturl', function(req , res){ //other codes async.map(linkDetails, function(newLink, callback) { //other codes proxiedRequest(url , function (error, response, body) { if(error){ console.log('Err: '+ error); callback(error); //^ ^ ^ ^ ^ // Validation failed, return from here } else { //some validation & set newLink.isActive callback(null, newLink); // ^ ^ ^ ^ ^ //return newLink status by invoking the callback } }); }, function(err, newLinkDetails) { //err = if any Validation failed // now all the request are processed,newLinkDetails is array of all newLink's res.send(newLinkDetails); }); }); ,但这样的类不存在,只有System.Resources.ResourceWriter ...,为了使用System.Resources.ResourceReader类,我需要添加ResXResourceWriter?!

我希望我的WebApp中的字符串是可编辑的,管理员用户可以修改消息和GUI元素文本......

0 个答案:

没有答案