首页 \ 问答 \ 与Visual Studio 2015在同一文件中的JSX和Typescript(JSX and Typescript in the same file with Visual Studio 2015)

与Visual Studio 2015在同一文件中的JSX和Typescript(JSX and Typescript in the same file with Visual Studio 2015)

在Visual Studio 2015中:

  1. 我可以将文件扩展名更改为.jsx并开始编写JSX代码。
  2. 我可以将文件扩展名更改为.ts并开始在其中编写Typescript代码。

但是如何在单个文件中获取Visual Studio 2015中的JSX和Typescript? 喜欢.jsx.ts? 我希望知识分子同时与两者合作......

我发现这与Atom IDE一起使用。 http://blog.mgechev.com/2015/07/05/using-jsx-react-with-typescript/

据我所知,我需要支持Typescript 1.6。 如果Visual Studio 2015没有附带Typescrip 1.6支持,有没有办法使用夜间版本已经有这个实现?


In Visual Studio 2015 :

  1. I can change a file extension to .jsx and start writing JSX code inside.
  2. I can change a file extension to .ts and start writing Typescript code inside.

But how can I get JSX and Typescript in Visual Studio 2015 inside one single file ? Someting like .jsx.ts ? I would like to get intelissense working with both at the same time...

I found this wich works with Atom IDE. http://blog.mgechev.com/2015/07/05/using-jsx-react-with-typescript/

As far as I understand I need to have Typescript 1.6 support. If Visual Studio 2015 doesn't come with Typescrip 1.6 support, is there any way to use nightly builds wich allready have this implementation ?


原文:https://stackoverflow.com/questions/32302608
更新时间:2022-05-14 17:05

最满意答案

您链接到此处的说明的第7步似乎很奇怪。 通常你分别选择/MD/MDd for Release和Debug, 或者你选择/MT/MTd

关键是你将你的Release版本的加密链接到C运行时库的动态版本(通过/MD ),但你的测试exe被设置为链接到静态版本(通过/MT )。

您应该只链接到单个版本的CRT - 即在发布模式下使用/MT set而不是/MD重新编译crypto ++,或者将测试exe更改为使用/MD

有关这些标志的更多信息,请参阅msdn文档


Step 7 of the instructions you linked to here appear to be strange. Normally you'd select /MD and /MDd for Release and Debug respectively, or you'd select /MT and /MTd.

The crux is that you have your Release build of crypto linked to the Dynamic version of the C Runtime Library (via /MD), but your test exe is set to link to the Static version (via /MT).

You should only link to a single version of the CRT - i.e. recompile crypto++ in Release mode with /MT set instead of /MD, or change your test exe to use /MD.

For further info on these flags, see the msdn docs.

相关问答

更多
  • 听起来就像你已经下载了源代码。 您可以使用下载的源代码构建SDK ,也可以下载可安装的SDK: http : //get.qt.nokia.com/qt/source/qt-win-opensource-4.7.2-vs2008.exe 。 这只安装框架。 您必须单独下载开发工具(QtCreator,QtDesigner,QtAssistant等)。 After a lot of reading and trial and error, I made it work and I wrote a guide ...
  • 您需要从源代码自己构建Qt。 你一定会想要维护两个Qt版本。 对于调试,您应该使用共享构建,因为这有合理的链接时间。 对于发行版,您应该使用静态构建,绝对使用链接时间代码生成来缩小可执行文件的大小,并期望构建一个简单的应用程序的时间为一分钟。 这是因为“链接”确实为Qt和您的应用程序生成了机器代码,并且代码是特定于您的应用程序的,因此通常会使性能更好。 在不浪费磁盘空间的情况下,多次拷贝源代码的方式是使用非源代码Qt构建。 到目前为止,静态Qt 5.1.1版本已经被破坏,所以下面的版本只适用于Qt 4,使用 ...
  • win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libcryptlib.a else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libcryptlibd.a 在Visual Studio下的Windows上,Crypto ++库的名称是cryptlib.lib ,而不是libcryptlib.a 。 如果您使用Cygwin(我不相信你这样 ...
  • 为什么不使用qtcreator构建项目? 您是否通过使用qtcreator进行测试应用程序来测试构建环境? PS:如果你愿意,我可以解释如何使用Visual Studio作为编译器和QtCreator作为IDE构建应用程序。 Why not build your project by using qtcreator ? Did you test your build environnement by making a test application with qtcreator ? P.S.: If yo ...
  • 您必须为Android项目启用例外。 尝试将这些行包含在Applications.mk中: APP_CPPFLAGS += -frtti APP_CPPFLAGS += -fexceptions You have to enable exceptions for your Android project. Try to include these lines into your Applications.mk: APP_CPPFLAGS += -frtti APP_CPPFLAGS += -fexce ...
  • 刚刚解决了! 可能是Qt Creator中的一个错误。 我的项目里面有4个子项目:main.exe,core.dll,side.dll,external.dll。 main.exe needs core.dll and side.dll core.dll needs external.dll 由于main.exe只需要core.dll和side.dll,我没有添加对external.dll的引用。 Qt Creator应该足够智能来检测它的依赖关系并相应地添加它们(好吧,最后这就是在Linux下发生的事情 ...
  • 我找到了描述Crypto ++,Qt和Linux的博客: https://inphamousdevelopment.wordpress.com/2011/05/06/crypto-and-linux/ 主要的想法是你不应该使用下载的文件但使用终端: sudo apt-get install libcrypto++8 libcrypto++8-dbg libcrypto++-dev 要将库添加到项目,请使用以下命令: LIBS += -L/usr/lib/crypto++ -lcrypto++ INCS + ...
  • 您链接到此处的说明的第7步似乎很奇怪。 通常你分别选择/MD和/MDd for Release和Debug, 或者你选择/MT和/MTd 。 关键是你将你的Release版本的加密链接到C运行时库的动态版本(通过/MD ),但你的测试exe被设置为链接到静态版本(通过/MT )。 您应该只链接到单个版本的CRT - 即在发布模式下使用/MT set而不是/MD重新编译crypto ++,或者将测试exe更改为使用/MD 。 有关这些标志的更多信息,请参阅msdn文档 。 Step 7 of the inst ...
  • mainwindow.obj:-1: error: LNK2001: unresolved external symbol "public: virtual unsigned __int64 __thiscall CryptoPP::ThreadUserTimer::GetCurrentTimerValue(void)" (?GetCurrentTimerValue@ThreadUserTimer@CryptoPP@@UAE_KXZ) mainwindow.obj:-1: error: LNK2001: ...
  • 好吧,我得到它的工作整个问题是在这... 1)CMit的git://anongit.kde.org/qca.git生成config-qca.h到QCA源目录。 2)在这个文件中有#define QCA_PLUGIN_SUBDIR“qca-qt5”而不是预测的“加密” 一种可能的解决方案是 1)在QCA中删除lib目录(如果以前的配置中有一个) 2)运行CMAKE 3)在config-qca.h中将“qca-qt5”更改为“crypto” 4)构建库 5)将库添加到项目中,然后应该正确加载所有插件 Ok I ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)