如何在F#项目中管理资源? [英] How to manage resources in an F# project?

查看:96
本文介绍了如何在F#项目中管理资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在F#2.0项目中使用.resx文件吗?

Can I use .resx files in F# 2.0 projects?

如果是这样,我该如何添加,然后使用这些资源.

If so, how do I go about adding, and then using these resources.

谢谢.

推荐答案

您可以将现有项目一个 .resx 文件添加到F#项目中,它应该会自动获得一个 EmbeddedResource BuildAction 正常工作.此处的VS工具还不如其他语言好,但是MSBuild可以完成所有繁重的工作,因此只需将正确的XML代码片段插入.fsproj文件即可.

You can Add existing item a .resx file to an F# project, it should automatically get a BuildAction of EmbeddedResource and work. The VS tooling here isn't as good as the other languages yet, but MSBuild does all the heavy lifting, so it's just a matter of getting the right snippet of XML into the .fsproj file.

这篇关于如何在F#项目中管理资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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