SDpower

Lua for Windows 開發 筆記

by on 八月.01, 2011, under Lua

下載:Lua 5.2.0-work2 – Release 1
先參考此篇教學Using Lua with C#並去 LuaInterface 下載回來,看了一下注意事項好像必須 Microsoft Visual C++ 2008 可轉散發套件 (x86) 一併下載回來比較保險.
後來找到 luaforwindows Windows底下Lua整合套件.

在使用LuaInterface 於VS2010 設定專案為.Net 4.0 會發現一直無法編譯.
找了一個晚上才知道有隱藏秘技.
打開專案內部檔案app.config

1
2
3
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

改為

1
2
3
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

Orz M$真會浪費青春!!

Fork me on GitHub

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!