Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
8ec434bb
Commit
8ec434bb
authored
Oct 10, 2014
by
Vinicius Jarina
Browse files
Fixed typo.
parent
50da4861
Changes
6
Hide whitespace changes
Inline
Side-by-side
ConsoleTest/ConsoleTest.csproj
View file @
8ec434bb
...
...
@@ -11,7 +11,7 @@
<AssemblyName>
ConsoleTest
</AssemblyName>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<ReleaseVersion>
2.x
</ReleaseVersion>
<ReleaseVersion>
1.3.1
</ReleaseVersion>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PlatformTarget>
x86
</PlatformTarget>
...
...
Core/NLua/NLua.Net45.csproj
View file @
8ec434bb
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion=
"4.0"
>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProjectGuid>
{F55CABBB-4108-4A39-94E1-581FD46DC021}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
NLua
</RootNamespace>
<AssemblyName>
NLua
</AssemblyName>
<ReleaseVersion>
2.x
</ReleaseVersion>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
True
</DebugSymbols>
<DebugType>
full
</DebugType>
<Optimize>
False
</Optimize>
<OutputPath>
..\..\Run\Debug\net45\
</OutputPath>
<DefineConstants>
DEBUG
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
none
</DebugType>
<Optimize>
True
</Optimize>
<OutputPath>
..\..\Run\Release\net45\
</OutputPath>
<DefineConstants>
RELEASE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'DebugKopiLua|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\DebugKopiLua\
</OutputPath>
<DefineConstants>
DEBUG;USE_KOPILUA
</DefineConstants>
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
<DebugType>
full
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<Prefer32Bit>
false
</Prefer32Bit>
<WarningLevel>
4
</WarningLevel>
<Optimize>
false
</Optimize>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'ReleaseKopiLua|AnyCPU'"
>
<OutputPath>
bin\ReleaseKopiLua\
</OutputPath>
<DefineConstants>
USE_KOPILUA
</DefineConstants>
<Prefer32Bit>
false
</Prefer32Bit>
<WarningLevel>
4
</WarningLevel>
<Optimize>
false
</Optimize>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>
true
</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>
key.snk
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"System.Core"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"CheckType.cs"
/>
<Compile
Include=
"Lua.cs"
/>
<Compile
Include=
"Metatables.cs"
/>
<Compile
Include=
"ObjectTranslator.cs"
/>
<Compile
Include=
"ProxyType.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"LuaBase.cs"
/>
<Compile
Include=
"LuaFunction.cs"
/>
<Compile
Include=
"LuaGlobalAttribute.cs"
/>
<Compile
Include=
"LuaHideAttribute.cs"
/>
<Compile
Include=
"LuaRegistrationHelper.cs"
/>
<Compile
Include=
"LuaTable.cs"
/>
<Compile
Include=
"LuaUserData.cs"
/>
<Compile
Include=
"Extensions\GeneralExtensions.cs"
/>
<Compile
Include=
"GenerateEventAssembly\LuaClassType.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ILuaGeneratedType.cs"
/>
<Compile
Include=
"GenerateEventAssembly\DelegateGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ClassGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\CodeGeneration.cs"
/>
<Compile
Include=
"Event\EventCodes.cs"
/>
<Compile
Include=
"Event\EventMasks.cs"
/>
<Compile
Include=
"Event\DebugHookEventArgs.cs"
/>
<Compile
Include=
"Event\HookExceptionEventArgs.cs"
/>
<Compile
Include=
"Exceptions\LuaException.cs"
/>
<Compile
Include=
"Exceptions\LuaScriptException.cs"
/>
<Compile
Include=
"LuaLib\LuaEnums.cs"
/>
<Compile
Include=
"LuaLib\References.cs"
/>
<Compile
Include=
"LuaLib\LuaTypes.cs"
/>
<Compile
Include=
"Method\MethodCache.cs"
/>
<Compile
Include=
"Method\MethodArgs.cs"
/>
<Compile
Include=
"Method\LuaMethodWrapper.cs"
/>
<Compile
Include=
"Method\EventHandlerContainer.cs"
/>
<Compile
Include=
"Method\RegisterEventHandler.cs"
/>
<Compile
Include=
"Method\LuaEventHandler.cs"
/>
<Compile
Include=
"Method\LuaDelegate.cs"
/>
<Compile
Include=
"Method\LuaClassHelper.cs"
/>
<Compile
Include=
"LuaLib\LuaIndexes.cs"
/>
<Compile
Include=
"LuaLib\GCOptions.cs"
/>
<Compile
Include=
"LuaLib\LuaLib.cs"
/>
<Compile
Include=
"Config\NLuaConfig.cs"
/>
<Compile
Include=
"ObjectTranslatorPool.cs"
/>
<Compile
Include=
"Platform\CLSCompliantAttribute.cs"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildBinPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ItemGroup>
<ProjectReference
Include=
"..\KeraLua\src\KeraLua.Net45.csproj"
>
<Project>
{47153754-10F5-44D8-B578-F5A32B69061A}
</Project>
<Name>
KeraLua.Net45
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\KopiLua\KopiLua\KopiLua.Net45.csproj"
>
<Project>
{E8DDBC21-EF74-4ABA-9C49-BFC702BE25D8}
</Project>
<Name>
KopiLua.Net45
</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None
Include=
"key.snk"
/>
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion=
"4.0"
>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProjectGuid>
{F55CABBB-4108-4A39-94E1-581FD46DC021}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
NLua
</RootNamespace>
<AssemblyName>
NLua
</AssemblyName>
<ReleaseVersion>
1.3.1
</ReleaseVersion>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
True
</DebugSymbols>
<DebugType>
full
</DebugType>
<Optimize>
False
</Optimize>
<OutputPath>
..\..\Run\Debug\net45\
</OutputPath>
<DefineConstants>
DEBUG
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
none
</DebugType>
<Optimize>
True
</Optimize>
<OutputPath>
..\..\Run\Release\net45\
</OutputPath>
<DefineConstants>
RELEASE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'DebugKopiLua|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\DebugKopiLua\
</OutputPath>
<DefineConstants>
DEBUG;USE_KOPILUA
</DefineConstants>
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
<DebugType>
full
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<Prefer32Bit>
false
</Prefer32Bit>
<WarningLevel>
4
</WarningLevel>
<Optimize>
false
</Optimize>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'ReleaseKopiLua|AnyCPU'"
>
<OutputPath>
bin\ReleaseKopiLua\
</OutputPath>
<DefineConstants>
USE_KOPILUA
</DefineConstants>
<Prefer32Bit>
false
</Prefer32Bit>
<WarningLevel>
4
</WarningLevel>
<Optimize>
false
</Optimize>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>
true
</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>
key.snk
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"System.Core"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"CheckType.cs"
/>
<Compile
Include=
"Lua.cs"
/>
<Compile
Include=
"Metatables.cs"
/>
<Compile
Include=
"ObjectTranslator.cs"
/>
<Compile
Include=
"ProxyType.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"LuaBase.cs"
/>
<Compile
Include=
"LuaFunction.cs"
/>
<Compile
Include=
"LuaGlobalAttribute.cs"
/>
<Compile
Include=
"LuaHideAttribute.cs"
/>
<Compile
Include=
"LuaRegistrationHelper.cs"
/>
<Compile
Include=
"LuaTable.cs"
/>
<Compile
Include=
"LuaUserData.cs"
/>
<Compile
Include=
"Extensions\GeneralExtensions.cs"
/>
<Compile
Include=
"GenerateEventAssembly\LuaClassType.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ILuaGeneratedType.cs"
/>
<Compile
Include=
"GenerateEventAssembly\DelegateGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\ClassGenerator.cs"
/>
<Compile
Include=
"GenerateEventAssembly\CodeGeneration.cs"
/>
<Compile
Include=
"Event\EventCodes.cs"
/>
<Compile
Include=
"Event\EventMasks.cs"
/>
<Compile
Include=
"Event\DebugHookEventArgs.cs"
/>
<Compile
Include=
"Event\HookExceptionEventArgs.cs"
/>
<Compile
Include=
"Exceptions\LuaException.cs"
/>
<Compile
Include=
"Exceptions\LuaScriptException.cs"
/>
<Compile
Include=
"LuaLib\LuaEnums.cs"
/>
<Compile
Include=
"LuaLib\References.cs"
/>
<Compile
Include=
"LuaLib\LuaTypes.cs"
/>
<Compile
Include=
"Method\MethodCache.cs"
/>
<Compile
Include=
"Method\MethodArgs.cs"
/>
<Compile
Include=
"Method\LuaMethodWrapper.cs"
/>
<Compile
Include=
"Method\EventHandlerContainer.cs"
/>
<Compile
Include=
"Method\RegisterEventHandler.cs"
/>
<Compile
Include=
"Method\LuaEventHandler.cs"
/>
<Compile
Include=
"Method\LuaDelegate.cs"
/>
<Compile
Include=
"Method\LuaClassHelper.cs"
/>
<Compile
Include=
"LuaLib\LuaIndexes.cs"
/>
<Compile
Include=
"LuaLib\GCOptions.cs"
/>
<Compile
Include=
"LuaLib\LuaLib.cs"
/>
<Compile
Include=
"Config\NLuaConfig.cs"
/>
<Compile
Include=
"ObjectTranslatorPool.cs"
/>
<Compile
Include=
"Platform\CLSCompliantAttribute.cs"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildBinPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ItemGroup>
<ProjectReference
Include=
"..\KeraLua\src\KeraLua.Net45.csproj"
>
<Project>
{47153754-10F5-44D8-B578-F5A32B69061A}
</Project>
<Name>
KeraLua.Net45
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\KopiLua\KopiLua\KopiLua.Net45.csproj"
>
<Project>
{E8DDBC21-EF74-4ABA-9C49-BFC702BE25D8}
</Project>
<Name>
KopiLua.Net45
</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None
Include=
"key.snk"
/>
</ItemGroup>
</Project>
\ No newline at end of file
Core/NLua/ObjectTranslator.cs
View file @
8ec434bb
...
...
@@ -913,7 +913,7 @@ namespace NLua
{
if
(
o
is
ILuaGeneratedType
)
{
// Make sure we are _really_ ILuaGenerated
var
typ
=
o
.
GetType
().
GetTypeInfo
();
var
typ
=
o
.
GetType
();
return
typ
.
GetInterface
(
"ILuaGeneratedType"
,
true
)
!=
null
;
}
return
false
;
...
...
NLuaTest/NLuaTest.csproj
View file @
8ec434bb
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProjectGuid>
{D5FCADFA-5047-40C2-B392-256875862920}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
NLuaTest
</RootNamespace>
<AssemblyName>
NLuaTest
</AssemblyName>
<FileAlignment>
512
</FileAlignment>
<ReleaseVersion>
2.x
</ReleaseVersion>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
True
</DebugSymbols>
<DebugType>
full
</DebugType>
<Optimize>
False
</Optimize>
<OutputPath>
..\tests\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
<PlatformTarget>
x86
</PlatformTarget>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
pdbonly
</DebugType>
<Optimize>
True
</Optimize>
<OutputPath>
..\tests\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'DebugKopiLua|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\DebugKopiLua\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;USE_KOPILUA
</DefineConstants>
<DebugType>
full
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<WarningLevel>
4
</WarningLevel>
<Optimize>
false
</Optimize>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'ReleaseKopiLua|AnyCPU'"
>
<OutputPath>
..\tests\
</OutputPath>
<WarningLevel>
4
</WarningLevel>
<Optimize>
true
</Optimize>
<Prefer32Bit>
false
</Prefer32Bit>
<DefineConstants>
USE_KOPILUA
</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Numerics"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"
>
<HintPath>
..\packages\NUnit.2.6.2\lib\nunit.framework.dll
</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"..\tests\Entity.cs"
>
<Link>
Entity.cs
</Link>
</Compile>
<Compile
Include=
"..\tests\LuaTests.cs"
>
<Link>
LuaTests.cs
</Link>
</Compile>
<Compile
Include=
"..\tests\TestLua.cs"
>
<Link>
TestLua.cs
</Link>
</Compile>
<Compile
Include=
"..\tests\Core.cs"
>
<Link>
Core.cs
</Link>
</Compile>
<Compile
Include=
"LoadFileTests.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"AAACodeGenTests.cs"
/>
</ItemGroup>
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ItemGroup>
<ProjectReference
Include=
"..\Core\KeraLua\src\KeraLua.Net45.csproj"
>
<Project>
{47153754-10F5-44D8-B578-F5A32B69061A}
</Project>
<Name>
KeraLua.Net45
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\Core\KopiLua\KopiLua\KopiLua.Net45.csproj"
>
<Project>
{
e8ddbc
21-
ef
74-4
aba
-9
c
49-
bfc
702
be
25
d
8}
</Project>
<Name>
KopiLua.Net45
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\Core\NLua\NLua.Net45.csproj"
>
<Project>
{F55CABBB-4108-4A39-94E1-581FD46DC021}
</Project>
<Name>
NLua.Net45
</Name>
</ProjectReference>
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
<ProjectGuid>
{D5FCADFA-5047-40C2-B392-256875862920}
</ProjectGuid>
<OutputType>
Library
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
NLuaTest
</RootNamespace>
<AssemblyName>
NLuaTest
</AssemblyName>
<FileAlignment>
512
</FileAlignment>
<ReleaseVersion>
1.3.1
</ReleaseVersion>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
True
</DebugSymbols>
<DebugType>
full
</DebugType>
<Optimize>
False
</Optimize>
<OutputPath>
..\tests\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
<PlatformTarget>
x86
</PlatformTarget>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
pdbonly
</DebugType>
<Optimize>
True
</Optimize>
<OutputPath>
..\tests\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'DebugKopiLua|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\DebugKopiLua\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;USE_KOPILUA
</DefineConstants>
<DebugType>
full
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
<WarningLevel>
4
</WarningLevel>
<Optimize>
false
</Optimize>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'ReleaseKopiLua|AnyCPU'"
>
<OutputPath>
..\tests\
</OutputPath>
<WarningLevel>
4
</WarningLevel>
<Optimize>
true
</Optimize>
<Prefer32Bit>
false
</Prefer32Bit>
<DefineConstants>
USE_KOPILUA
</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Numerics"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"
>
<HintPath>
..\packages\NUnit.2.6.2\lib\nunit.framework.dll
</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"..\tests\Entity.cs"
>
<Link>
Entity.cs
</Link>
</Compile>
<Compile
Include=
"..\tests\LuaTests.cs"
>
<Link>
LuaTests.cs
</Link>
</Compile>
<Compile
Include=
"..\tests\TestLua.cs"
>
<Link>
TestLua.cs
</Link>
</Compile>
<Compile
Include=
"..\tests\Core.cs"
>
<Link>
Core.cs
</Link>
</Compile>
<Compile
Include=
"LoadFileTests.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"AAACodeGenTests.cs"
/>
</ItemGroup>
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ItemGroup>
<ProjectReference
Include=
"..\Core\KeraLua\src\KeraLua.Net45.csproj"
>
<Project>
{47153754-10F5-44D8-B578-F5A32B69061A}
</Project>
<Name>
KeraLua.Net45
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\Core\KopiLua\KopiLua\KopiLua.Net45.csproj"
>
<Project>
{
E8DDBC
21-
EF
74-4
ABA
-9
C
49-
BFC
702
BE
25
D
8}
</Project>
<Name>
KopiLua.Net45
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\Core\NLua\NLua.Net45.csproj"
>
<Project>
{F55CABBB-4108-4A39-94E1-581FD46DC021}
</Project>
<Name>
NLua.Net45
</Name>
</ProjectReference>
</ItemGroup>
</Project>
\ No newline at end of file
tests/Core.cs
View file @
8ec434bb
...
...
@@ -2,16 +2,16 @@
using
System
;
using
NLua
;
using
NLua.Exceptions
;
using
System.IO
;
#if WINDOWS_PHONE
using
Microsoft.VisualStudio.TestPlatform.UnitTestFramework
;
using
SetUp
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestInitializeAttribute
;
using
TearDown
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestCleanupAttribute
;
using
TestFixture
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestClassAttribute
;
using
Test
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestMethodAttribute
;
#else
using
NUnit.Framework
;
using
System.IO
;
#if WINDOWS_PHONE
using
Microsoft.VisualStudio.TestPlatform.UnitTestFramework
;
using
SetUp
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestInitializeAttribute
;
using
TearDown
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestCleanupAttribute
;
using
TestFixture
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestClassAttribute
;
using
Test
=
Microsoft
.
VisualStudio
.
TestPlatform
.
UnitTestFramework
.
TestMethodAttribute
;
#else
using
NUnit.Framework
;
#endif
#if MONOTOUCH
...
...
@@ -48,8 +48,8 @@ namespace NLuaTest
[
SetUp
]
public
void
Setup
()
{
lua
=
new
Lua
();
lua
.
RegisterFunction
(
"WriteLineString"
,
typeof
(
Console
).
GetMethod
(
"WriteLine"
,
new
Type
[]
{
typeof
(
String
)
}));
lua
=
new
Lua
();
lua
.
RegisterFunction
(
"WriteLineString"
,
typeof
(
Console
).
GetMethod
(
"WriteLine"
,
new
Type
[]
{
typeof
(
String
)
}));
lua
.
DoString
(
@"
function print (param)
...
...
@@ -77,7 +77,7 @@ namespace NLuaTest
TestLuaFile
(
"cf"
);
}
[
Test
]
[
Test
]
[
Ignore
]
public
void
Env
()
{
...
...
@@ -108,7 +108,7 @@ namespace NLuaTest
TestLuaFile
(
"printf"
);
}
[
Test
]
[
Test
]
[
Ignore
]
public
void
ReadOnly
()
{
...
...
tests/TestLua.cs
View file @
8ec434bb
...
...
@@ -578,19 +578,19 @@ namespace NLuaTest.Mock
}
}
public
class
TestClassWithOverloadedMethod
{
public
int
CallsToStringFunc
{
get
;
set
;}
public
int
CallsToIntFunc
{
get
;
set
;}
public
void
Func
(
string
param
)
{
CallsToStringFunc
++;
}
public
void
Func
(
int
param
)
{
CallsToIntFunc
++;
}
public
class
TestClassWithOverloadedMethod
{
public
int
CallsToStringFunc
{
get
;
set
;}
public
int
CallsToIntFunc
{
get
;
set
;}
public
void
Func
(
string
param
)
{
CallsToStringFunc
++;
}
public
void
Func
(
int
param
)
{
CallsToIntFunc
++;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment