对于想了解cocos2dx3.4VS2012无法打开包含文件extensions/ExtensionExport.h的读者,本文将提供新的信息,并且为您提供关于"extensions/Extensio
对于想了解cocos2dx3.4 VS2012无法打开包含文件extensions/ExtensionExport.h的读者,本文将提供新的信息,并且为您提供关于"extensions/ExtensionMacros.h”: No such file 问题、#include "extensions/cocos-ext.h" 无法打开、2019 vs code extension 插件管理、Asp.net Core 源码-SessionExtensions的有价值信息。
本文目录一览:- cocos2dx3.4 VS2012无法打开包含文件extensions/ExtensionExport.h
- "extensions/ExtensionMacros.h”: No such file 问题
- #include "extensions/cocos-ext.h" 无法打开
- 2019 vs code extension 插件管理
- Asp.net Core 源码-SessionExtensions
cocos2dx3.4 VS2012无法打开包含文件extensions/ExtensionExport.h
cocos2dx3.4 VS2012无法打开包含文件extensions/ExtensionExport.h
之前有帖子介绍需要手动加载这三个库
libCocosstudio、libExtensions、libGUI
但是cocos2dx3.4找不到这三个库文件
/cocos2d/cocos/editor-support/cocostudio/proj.win32/libCocoStuido
/cocos2d/cocos/gui/proj.win32/libGUI
/cocos2d/extensions/proj.win32/libExtensions
原来发现cocos2dx 3.4开始,不用加入这三个库了,直接包含头文件和包含路径就可以了
现在的3.4版本不用那么麻烦了。
1、在你自己的头文件中加入#include ”extensions/cocos-ext.h"
2、使用命名空间USING_NS_CC_EXT;
3、选中工程右键“属性”->"配置属性“->"c/c++"->"常规”->"附加包含目录"中添加“$(EngineRoot)”、
$(EngineRoot)cocoseditor-support、$(EngineRoot)cocos
就可以了
问题2:
CCControlUtil 无法打开extensions/ExtensionExport.h
解决方法:
项目-> properties -> Configuration Properties -> Gengral -> c/c++ -> Additional Include Directories
(图1)
添加三个路径(图2)
(1) $(EngineRoot)
(2) $(EngineRoot)extensions
(3) 项目路径\cocos2d\extensions
图1:
图2:
"extensions/ExtensionMacros.h”: No such file 问题
今天在做2.x移植到3.1.1的时候候导入扩展包出现了错误,经过多方查找,最后终于把问题解决了,分享出来,给大家提供一个参考。
第一步,我们需要导入三个包,导入方式:解决方案(右键)-》添加-》现有项目
导入第一个libGUI.vcxproj (H:\mycompany\EditBoxTest\cocos2d\cocos\ui\proj.win32)
导入第二个libExtensions.vcxproj (H:\mycompany\EditBoxTest\cocos2d\extensions\proj.win32)
导入第三个libCocosStudio.vcxproj (H:\mycompany\EditBoxTest\cocos2d\cocos\editor-support\cocostudio\proj.win32)
导完之后,进行第二步。
第二步,要把我们导入的项目引用到我们的项目里,这也是出现那个问题的原因,,
在工程名上右键-》引用-》添加新引用
然后把我们新添加的项目前边的复选框,选上就行了
第三步为我们的项目添加包含目录
项目名右键-》属性-》C/C++-》附加包含目录-》编辑
填入一下内容
$(EngineRoot)
$(EngineRoot)cocos
$(EngineRoot)cocos\editor-support
最后,编译一下,就没有那个错误了
备注:如果遇到“cocos-ext.h”: No such file or directory,再加上下面一句就好:
$(EngineRoot)extensions
#include "extensions/cocos-ext.h" 无法打开
他妹的,这么简单的一个问题,要弄两个小时,气死我了!!!!!
这是官网的cpp-test文件里面的内容,我用3.10版本的cocostudio创建文件,里面没有,是下面这个样子:
所以总是提示#include "extensions/cocos-ext.h" cocos2dx 无法打开!!1
2019 vs code extension 插件管理
Command line extension management
To make it easier to automate and configure VS Code,
it is possible to list, install,
and uninstall extensions from the command line.
When identifying an extension,
provide the full name of the form publisher.extension, for example ms-python.python.
Set the root path for extensions.
code --extensions-dir
List the installed extensions.
code --list-extensions
Show versions of installed extensions, when using --list-extension.
code --show-versions
Installs an extension.
code --install-extension ( | )
Uninstalls an extension.
code --uninstall-extension ( | )
Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually.
code --enable-proposed-api ()
13xforever.language-x86-64-assembly
aaron-bond.better-comments
abierbaum.vscode-file-peek
abusaidm.html-snippets
actboy168.lua-debug
adamhartford.vscode-base64
adamwalzer.string-converter
adashen.vscode-tomcat
AlanWalk.markdown-toc
alefragnani.Bookmarks
alefragnani.project-manager
annsk.alignment
auchenberg.vscode-browser-preview
austin.code-gnu-global
bajdzis.vscode-database
basdp.language-gas-x86
batisteo.vscode-django
bbenoist.Doxygen
bbenoist.shell
berublan.vscode-log-viewer
bibhasdn.unique-lines
bierner.markdown-checkbox
bierner.markdown-emoji
bierner.markdown-preview-github-styles
bltg-team.masm
brunnerh.insert-unicode
cesium.gltf-vscode
chrisdias.vscode-opennewinstance
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
chrmarti.regex
CoenraadS.bracket-pair-colorizer
Compulim.vscode-clock
cschlosser.doxdocgen
cssho.vscode-svgviewer
d9705996.perl-toolbox
dakara.transformer
darkriszty.markdown-table-prettify
DavidAnson.vscode-markdownlint
dbaeumer.vscode-eslint
donjayamanne.python-extension-pack
DotJoshJohnson.xml
doublefint.pgsql
dsznajder.es7-react-js-snippets
dtsvet.vscode-wasm
eamodio.gitlens
earshinov.permute-lines
ecmel.vscode-html-css
EFanZh.graphviz-preview
eg2.vscode-npm-script
emilast.LogFileHighlighter
eriklynd.json-tools
esbenp.prettier-vscode
everettjf.filter-line
faustinoaq.lex-flex-yacc-bison
fcrespo82.markdown-table-formatter
florianloch.text-transform
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
formulahendry.code-runner
formulahendry.vscode-mysql
geeklearningio.graphviz-markdown-preview
goessner.mdmath
gogocrow.webpack-snippets
GrapeCity.gc-excelviewer
Gruntfuggly.todo-tree
hars.CppSnippets
hdg.live-html-previewer
helixquar.asciidecorator
HookyQR.beautify
hoovercj.vscode-power-mode
IBM.output-colorizer
idleberg.emoji-code
ithildir.java-properties
James-Yu.latex-workshop
janisdd.vscode-edit-csv
jaycetyle.vscode-gnu-global
jebbs.plantuml
jeremyrajan.webpack
jerriepelser.copy-markdown-as-html
jock.svg
Kelvin.vscode-sshfs
keyring.Lua
kriegalex.vscode-cudacpp
liximomo.sftp
luggage66.AWK
magicstack.MagicPython
maptz.regionfolder
Mebrahtom.plantumlpreviewer
mechatroner.rainbow-csv
mhutchie.git-graph
Mikael.Angular-BeastCode
mitchdenny.ecdc
mohsen1.prettify-json
mrmlnc.vscode-apache
ms-python.python
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode-remote.remote-ssh-explorer
ms-vscode.cpptools
ms-vscode.Theme-MarkdownKit
msjsdiag.debugger-for-chrome
msjsdiag.vscode-react-native
naco-siren.gradle-language
octref.vscode-json-transform
oijaz.unicode-latex
Pivotal.vscode-spring-boot
PKief.markdown-checkbox
pthorsson.vscode-jsp
qcz.text-power-tools
quicktype.quicktype
redhat.java
redhat.vscode-xml
RomanPeshkov.vscode-text-tables
ryu1kn.edit-with-shell
ryu1kn.partial-diff
ryu1kn.text-marker
sandcastle.whitespace
sensourceinc.vscode-sql-beautify
shakram02.bash-beautify
shinnn.stylelint
shuworks.vscode-table-formatter
sidthesloth.svg-snippets
SimonSiefke.svg-preview
sleistner.vscode-fileutils
slevesque.shader
sohibe.java-generate-setters-getters
Stephanvs.dot
stkb.rewrap
supakornras.asymptote
TabNine.tabnine-vscode
tangzx.emmylua
technosophos.vscode-make
tushortz.java-imports-snippets
tushortz.java-snippets
twxs.cmake
Tyriar.sort-lines
vector-of-bool.cmake-tools
vincaslt.highlight-matching-tag
VisualStudioExptTeam.vscodeintellicode
vsciot-vscode.vscode-arduino
vscjava.vscode-java-debug
vscjava.vscode-java-dependency
vscjava.vscode-java-pack
vscjava.vscode-java-test
vscjava.vscode-maven
vscode-icons-team.vscode-icons
whiteout2.x86
wholroyd.jinja
wmaurer.join-lines
xabikos.JavaScriptSnippets
xabikos.ReactSnippets
ybaumes.highlight-trailing-white-spaces
Yog.yog-plantuml-highlight
yzane.markdown-pdf
yzhang.markdown-all-in-one
zeithaste.cursorCharCode
zenor.makefile-creator
zh9528.file-size
Zignd.html-css-class-completion
zxh404.vscode-proto3
Asp.net Core 源码-SessionExtensions
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
namespace SportsStore.Infrastructure {
public static class SessionExtensions {
public static void SetJson(this ISession session, string key, object value) {
session.SetString(key, JsonConvert.SerializeObject(value));
}
public static T GetJson<T>(this ISession session, string key) {
var sessionData = session.GetString(key);
return sessionData == null
? default(T) : JsonConvert.DeserializeObject<T>(sessionData);
}
}
}
关于cocos2dx3.4 VS2012无法打开包含文件extensions/ExtensionExport.h的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于"extensions/ExtensionMacros.h”: No such file 问题、#include "extensions/cocos-ext.h" 无法打开、2019 vs code extension 插件管理、Asp.net Core 源码-SessionExtensions等相关内容,可以在本站寻找。
本文标签: