Skip to content

Commit

Permalink
Fix CI DefineConstants error
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Sep 24, 2024
1 parent cd0cf2c commit 5d7c216
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Applications/LuaRunner/LuaRunner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<StartupObject>LuaRunner.LuaNetRunner</StartupObject>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>DEBUG;NET8</DefineConstants>
<OutputPath>..\..\Run\Debug\net8.0\</OutputPath>
</PropertyGroup>
Expand Down
7 changes: 6 additions & 1 deletion Core/KopiLua/KopiLua.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Lua</RootNamespace>
<NoWarn>1701;1702;3014;3021;3002;3001;3003;8618;8625;8601;8602;8603;8600;8604;</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>TRACE;DEBUG;NETSTANDARD2_0;LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS</DefineConstants>
<OutputPath>..\..\Run\Debug\netstandard2.0\</OutputPath>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>NETSTANDARD2_0;LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS</DefineConstants>
</PropertyGroup>

</Project>
8 changes: 4 additions & 4 deletions Core/LuaInterface/LuaInterface.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<Authors>megax orthographic-pedant jmurdick ema</Authors>
<Company>Lemutec</Company>
<Description>Lightweight LuaInterface for .NET</Description>
<PackageProjectUrl>https://github.com/lemutec/LuaIntercace</PackageProjectUrl>
<RepositoryUrl>https://github.com/lemutec/LuaIntercace</RepositoryUrl>
<PackageProjectUrl>https://github.com/lemutec/LuaInterface</PackageProjectUrl>
<RepositoryUrl>https://github.com/lemutec/LuaInterface</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>.NET Lua</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand All @@ -19,12 +19,12 @@
<NoWarn>1701;1702;3014;3021;3002;3001;3003;8618;8625;8601;8602;8603;8600;8604;</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>TRACE;DEBUG;NETSTANDARD2_0;LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS</DefineConstants>
<OutputPath>..\..\Run\Debug\netstandard2.0\</OutputPath>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>NETSTANDARD2_0;LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS</DefineConstants>
</PropertyGroup>

Expand Down

0 comments on commit 5d7c216

Please sign in to comment.