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
aa7f4142
Commit
aa7f4142
authored
Mar 08, 2020
by
Vinicius Jarina
Browse files
Add sourcelink support
parent
d4252e9a
Changes
60
Hide whitespace changes
Inline
Side-by-side
NLua.Symbol.nuspec
0 → 100644
View file @
aa7f4142
<?xml version="1.0"?>
<package>
<metadata>
<id>
NLua
</id>
<version>
1.4.11
</version>
<authors>
NLua
</authors>
<owners>
Vinicius Jarina
</owners>
<licenseUrl>
https://github.com/nlua/NLua/blob/master/LICENSE
</licenseUrl>
<projectUrl>
https://github.com/nlua/NLua
</projectUrl>
<iconUrl>
https://raw.githubusercontent.com/nlua/NLua/master/NLua.png
</iconUrl>
<requireLicenseAcceptance>
false
</requireLicenseAcceptance>
<description>
NLua Package.
</description>
<summary>
NLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android.
</summary>
<releaseNotes>
Release: 2bffe65
</releaseNotes>
<copyright>
Copyright © NLua 2020
</copyright>
<tags>
lua nlua
</tags>
<dependencies>
<dependency
id=
"KeraLua"
version=
"1.0.29"
/>
</dependencies>
<packageTypes>
<packageType
name=
"SymbolsPackage"
/>
</packageTypes>
<repository
type=
"git"
url=
"https://github.com/nlua/nlua"
commit=
"708ba30e982deccb1248d099806bc00e362fbda4"
/>
</metadata>
<files>
<file
src=
"lib\Release\MonoAndroid\NLua.dll"
target=
"lib\MonoAndroid"
/>
<file
src=
"lib\Release\MonoAndroid\NLua.pdb"
target=
"lib\MonoAndroid"
/>
<file
src=
"lib\Release\net45\NLua.dll"
target=
"lib\net45"
/>
<file
src=
"lib\Release\net45\NLua.pdb"
target=
"lib\net45"
/>
<file
src=
"lib\Release\uap10.0\NLua.dll"
target=
"lib\uap10.0"
/>
<file
src=
"lib\Release\uap10.0\NLua.pdb"
target=
"lib\uap10.0"
/>
<file
src=
"lib\Release\netcore\netcoreapp3.1\NLua.dll"
target=
"lib\netcoreapp3.1"
/>
<file
src=
"lib\Release\netcore\netcoreapp3.1\NLua.pdb"
target=
"lib\netcoreapp3.1"
/>
<file
src=
"lib\Release\netstandard2.0\NLua.dll"
target=
"lib\netstandard2.0"
/>
<file
src=
"lib\Release\netstandard2.0\NLua.pdb"
target=
"lib\netstandard2.0"
/>
<file
src=
"lib\Release\xamarinios\NLua.dll"
target=
"lib\xamarinios"
/>
<file
src=
"lib\Release\xamarinios\NLua.pdb"
target=
"lib\xamarinios"
/>
<file
src=
"lib\Release\xamarinmac\NLua.dll"
target=
"lib\xamarinmac"
/>
<file
src=
"lib\Release\xamarinmac\NLua.pdb"
target=
"lib\xamarinmac"
/>
<file
src=
"lib\Release\xamarintvos\NLua.dll"
target=
"lib\xamarintvos"
/>
<file
src=
"lib\Release\xamarintvos\NLua.pdb"
target=
"lib\xamarintvos"
/>
<file
src=
"lib\Release\xamarinwatchos\NLua.dll"
target=
"lib\xamarinwatchos"
/>
<file
src=
"lib\Release\xamarinwatchos\NLua.pdb"
target=
"lib\xamarinwatchos"
/>
</files>
</package>
\ No newline at end of file
NLua.nuspec
View file @
aa7f4142
...
...
@@ -15,8 +15,9 @@
<copyright>
Copyright © NLua 2020
</copyright>
<tags>
lua nlua
</tags>
<dependencies>
<dependency
id=
"KeraLua"
version=
"1.0.2
7
"
/>
<dependency
id=
"KeraLua"
version=
"1.0.2
9
"
/>
</dependencies>
<repository
type=
"git"
url=
"https://github.com/nlua/nlua"
commit=
"708ba30e982deccb1248d099806bc00e362fbda4"
/>
</metadata>
<files>
<file
src=
"lib\Release\MonoAndroid\NLua.dll"
target=
"lib\MonoAndroid"
/>
...
...
build/Android/NLua.Android.csproj
View file @
aa7f4142
...
...
@@ -26,7 +26,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugSymbols>
true
</DebugSymbols>
<DebugType>
p
dbonly
</DebugType>
<DebugType>
p
ortable
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
..\..\lib\Release\MonoAndroid
</OutputPath>
<DefineConstants>
__MOBILE__;__ANDROID__
</DefineConstants>
...
...
@@ -39,8 +39,8 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"KeraLua, Version=1.0.2
7
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
7
\lib\MonoAndroid\KeraLua.dll
</HintPath>
<Reference
Include=
"KeraLua, Version=1.0.2
9
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
9
\lib\MonoAndroid\KeraLua.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Xml"
/>
...
...
@@ -50,6 +50,12 @@
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.0.0"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
<Import
Project=
"$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets"
/>
<Import
Project=
"..\targets\NLua.Sign.targets"
/>
...
...
build/Android/packages.config
View file @
aa7f4142
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"KeraLua"
version
=
"1.0.2
7
"
targetFramework
=
"monoandroid81"
/>
<
package
id
=
"KeraLua"
version
=
"1.0.2
9
"
targetFramework
=
"monoandroid81"
/>
</
packages
>
\ No newline at end of file
build/TVOS/NLua.TVOS.csproj
View file @
aa7f4142
...
...
@@ -31,7 +31,7 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
p
dbonly
</DebugType>
<DebugType>
p
ortable
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
..\..\lib\Release\xamarintvos
</OutputPath>
<DefineConstants>
...
...
@@ -46,8 +46,8 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"KeraLua, Version=1.0.2
7
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
7
\lib\xamarintvos\KeraLua.dll
</HintPath>
<Reference
Include=
"KeraLua, Version=1.0.2
9
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
9
\lib\xamarintvos\KeraLua.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Xml"
/>
...
...
build/TVOS/packages.config
View file @
aa7f4142
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"KeraLua"
version
=
"1.0.2
7
"
targetFramework
=
"xamarintvos10"
/>
<
package
id
=
"KeraLua"
version
=
"1.0.2
9
"
targetFramework
=
"xamarintvos10"
/>
</
packages
>
\ No newline at end of file
build/WatchOS/NLua.WatchOS.csproj
View file @
aa7f4142
...
...
@@ -30,7 +30,7 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
p
dbonly
</DebugType>
<DebugType>
p
ortable
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
..\..\lib\Release\xamarinwatchos
</OutputPath>
<DefineConstants>
...
...
@@ -44,8 +44,8 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"KeraLua, Version=1.0.2
7
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
7
\lib\xamarinwatchos\KeraLua.dll
</HintPath>
<Reference
Include=
"KeraLua, Version=1.0.2
9
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
9
\lib\xamarinwatchos\KeraLua.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Xml"
/>
...
...
@@ -55,6 +55,12 @@
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.0.0"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
<Import
Project=
"$(MSBuildExtensionsPath)\Xamarin\WatchOS\Xamarin.WatchOS.CSharp.targets"
/>
<Import
Project=
"..\targets\NLua.Sign.targets"
/>
...
...
build/WatchOS/packages.config
View file @
aa7f4142
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"KeraLua"
version
=
"1.0.2
7
"
targetFramework
=
"xamarinwatchos10"
/>
<
package
id
=
"KeraLua"
version
=
"1.0.2
9
"
targetFramework
=
"xamarinwatchos10"
/>
</
packages
>
\ No newline at end of file
build/XamarinMac/NLua.XamarinMac.csproj
View file @
aa7f4142
...
...
@@ -36,6 +36,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<Optimize>
true
</Optimize>
<DebugType>
portable
</DebugType>
<OutputPath>
..\..\lib\Release\xamarinmac
</OutputPath>
<DefineConstants>
</DefineConstants>
...
...
@@ -56,8 +57,8 @@
<AOTMode>
None
</AOTMode>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"KeraLua, Version=1.0.2
7
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
7
\lib\xamarinmac\KeraLua.dll
</HintPath>
<Reference
Include=
"KeraLua, Version=1.0.2
9
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
9
\lib\xamarinmac\KeraLua.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
...
...
@@ -69,6 +70,12 @@
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.0.0"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
<Import
Project=
"$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets"
/>
<Import
Project=
"..\targets\NLua.Sign.targets"
/>
...
...
build/XamarinMac/packages.config
View file @
aa7f4142
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"KeraLua"
version
=
"1.0.2
7
"
targetFramework
=
"xamarinmac20"
/>
<
package
id
=
"KeraLua"
version
=
"1.0.2
9
"
targetFramework
=
"xamarinmac20"
/>
</
packages
>
\ No newline at end of file
build/XamariniOS/NLua.XamariniOS.csproj
View file @
aa7f4142
...
...
@@ -33,7 +33,7 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
p
dbonly
</DebugType>
<DebugType>
p
ortable
</DebugType>
<Optimize>
true
</Optimize>
<OutputPath>
..\..\lib\Release\xamarinios
</OutputPath>
<DefineConstants>
...
...
@@ -50,8 +50,8 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"KeraLua, Version=1.0.2
7
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
7
\lib\xamarinios\KeraLua.dll
</HintPath>
<Reference
Include=
"KeraLua, Version=1.0.2
9
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
9
\lib\xamarinios\KeraLua.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Xml"
/>
...
...
@@ -61,6 +61,12 @@
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.0.0"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
<Import
Project=
"$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets"
/>
<Import
Project=
"..\targets\NLua.Sign.targets"
/>
...
...
build/XamariniOS/packages.config
View file @
aa7f4142
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"KeraLua"
version
=
"1.0.2
7
"
targetFramework
=
"xamarinios10"
/>
<
package
id
=
"KeraLua"
version
=
"1.0.2
9
"
targetFramework
=
"xamarinios10"
/>
</
packages
>
\ No newline at end of file
build/net45/NLua.csproj
View file @
aa7f4142
...
...
@@ -25,6 +25,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<Optimize>
true
</Optimize>
<DebugType>
portable
</DebugType>
<OutputPath>
..\..\lib\Release\net45\
</OutputPath>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
...
...
@@ -32,22 +33,28 @@
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"KeraLua, Version=1.0.2
7
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
7
\lib\net45\KeraLua.dll
</HintPath>
<Reference
Include=
"KeraLua, Version=1.0.2
9
.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\KeraLua.1.0.2
9
\lib\net45\KeraLua.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
</ItemGroup>
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.0.0"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
<Import
Project=
"$(MSBuildBinPath)\Microsoft.CSharp.targets"
/>
<Import
Project=
"..\targets\NLua.Sign.targets"
/>
<Import
Project=
"..\..\packages\KeraLua.1.0.2
7
\build\net45\KeraLua.targets"
Condition=
"Exists('..\..\packages\KeraLua.1.0.2
7
\build\net45\KeraLua.targets')"
/>
<Import
Project=
"..\..\packages\KeraLua.1.0.2
9
\build\net45\KeraLua.targets"
Condition=
"Exists('..\..\packages\KeraLua.1.0.2
9
\build\net45\KeraLua.targets')"
/>
<Target
Name=
"EnsureNuGetPackageBuildImports"
BeforeTargets=
"PrepareForBuild"
>
<PropertyGroup>
<ErrorText>
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
</ErrorText>
</PropertyGroup>
<Error
Condition=
"!Exists('..\..\packages\KeraLua.1.0.2
7
\build\net45\KeraLua.targets')"
Text=
"$([System.String]::Format('$(ErrorText)', '..\..\packages\KeraLua.1.0.2
7
\build\net45\KeraLua.targets'))"
/>
<Error
Condition=
"!Exists('..\..\packages\KeraLua.1.0.2
9
\build\net45\KeraLua.targets')"
Text=
"$([System.String]::Format('$(ErrorText)', '..\..\packages\KeraLua.1.0.2
9
\build\net45\KeraLua.targets'))"
/>
</Target>
</Project>
\ No newline at end of file
build/net45/packages.config
View file @
aa7f4142
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"KeraLua"
version
=
"1.0.2
7
"
targetFramework
=
"net45"
/>
<
package
id
=
"KeraLua"
version
=
"1.0.2
9
"
targetFramework
=
"net45"
/>
</
packages
>
\ No newline at end of file
build/netcore/NLua.NetCore.csproj
View file @
aa7f4142
...
...
@@ -6,6 +6,8 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
<DocumentationFile></DocumentationFile>
<OutputPath>..\..\lib\Release\netcore\</OutputPath>
<DefineConstants>TRACE;NETCOREAPP</DefineConstants>
...
...
@@ -18,9 +20,15 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<ItemGroup>
<PackageReference Include="KeraLua" Version="1.0.2
7
" />
<PackageReference Include="KeraLua" Version="1.0.2
9
" />
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" />
</ItemGroup>
...
...
build/netstandard2.0/NLua.netstandard2.0.csproj
View file @
aa7f4142
...
...
@@ -15,16 +15,25 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
<OutputPath>..\..\lib\Release\</OutputPath>
<DefineConstants>TRACE;NETSTANDARD</DefineConstants>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" />
<ItemGroup>
<PackageReference Include="KeraLua" Version="1.0.2
7
" />
<PackageReference Include="KeraLua" Version="1.0.2
9
" />
<PackageReference Include="NUnit" Version="3.12.0" />
</ItemGroup>
...
...
build/uap10.0/NLua.UWP.csproj
View file @
aa7f4142
...
...
@@ -32,6 +32,7 @@
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<Optimize>
true
</Optimize>
<DebugType>
portable
</DebugType>
<OutputPath>
..\..\lib\Release\uap10.0\
</OutputPath>
<DefineConstants>
TRACE;NETFX_CORE;WINDOWS_UWP
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
...
...
@@ -43,7 +44,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference
Include=
"KeraLua"
>
<Version>
1.0.2
7
</Version>
<Version>
1.0.2
9
</Version>
</PackageReference>
<PackageReference
Include=
"Microsoft.NETCore.UniversalWindowsPlatform"
>
<Version>
6.2.9
</Version>
...
...
@@ -52,6 +53,12 @@
<PropertyGroup
Condition=
" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' "
>
<VisualStudioVersion>
14.0
</VisualStudioVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference
Include=
"Microsoft.SourceLink.GitHub"
Version=
"1.0.0"
>
<PrivateAssets>
all
</PrivateAssets>
<IncludeAssets>
runtime; build; native; contentfiles; analyzers
</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import
Project=
"..\..\src\NLua.Shared.projitems"
Label=
"Shared"
Condition=
"Exists('..\..\src\NLua.Shared.projitems')"
/>
<Import
Project=
"..\targets\NLua.Sign.targets"
/>
<Import
Project=
"$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"
/>
...
...
devops/BuildFunctions.ps1
View file @
aa7f4142
...
...
@@ -47,6 +47,27 @@ function Get-Git-Full-Sem-Ver ()
return
[
string
](
gitversion
/showvariable
FullSemVer
)
}
function
Get-Git-Commit-Sha
()
{
Update-Ensure-Git-Not-Detached
return
[
string
](
gitversion
/showvariable
Sha
)
}
function
Update-NuSpec-Commit-Hash
(
$File
,
$sha
)
{
$File
=
Resolve-Path
$File
[
xml
]
$fileContents
=
Get-Content
-Encoding
UTF8
-Path
$File
$repositoryPath
=
"package.metadata.repository"
if
(
$null
-ne
$sha
-and
$sha
-ne
""
)
{
Set-XmlAttributeValue
-XmlDocument
$fileContents
-ElementPath
$repositoryPath
-AttributeName
"commit"
-AttributeValue
$sha
}
$fileContents
.
Save
(
$File
)
}
function
Update-NuSpec-Release-Notes
(
$File
,
$releaseNotes
)
{
$File
=
Resolve-Path
$File
...
...
@@ -136,6 +157,39 @@ function Set-XmlElementsTextValue([xml]$XmlDocument, [string]$ElementPath, [stri
}
}
function
Set-XmlAttributeValue
([
xml
]
$XmlDocument
,
[
string
]
$ElementPath
,
[
string
]
$AttributeName
,
[
string
]
$AttributeValue
,
[
string
]
$NamespaceURI
=
""
,
[
string
]
$NodeSeparatorCharacter
=
'.'
)
{
# Try and get the node.
$node
=
Get-XmlNode
-XmlDocument
$XmlDocument
-NodePath
$ElementPath
-NamespaceURI
$NamespaceURI
-NodeSeparatorCharacter
$NodeSeparatorCharacter
# If the node already exists, update its value.
if
(
$node
)
{
$node
.
SetAttribute
(
$AttributeName
,
$AttributeValue
)
}
# Else the node doesn't exist yet, so create it with the given value.
else
{
# Create the new element with the given value.
$elementName
=
$ElementPath
.
Substring
(
$ElementPath
.
LastIndexOf
(
$NodeSeparatorCharacter
)
+
1
)
$element
=
$XmlDocument
.
CreateElement
(
$elementName
,
$XmlDocument
.
DocumentElement
.
NamespaceURI
)
$element
.
SetAttribute
(
$AttributeName
,
$AttributeValue
)
# Try and get the parent node.
$parentNodePath
=
$ElementPath
.
Substring
(
0
,
$ElementPath
.
LastIndexOf
(
$NodeSeparatorCharacter
))
$parentNode
=
Get-XmlNode
-XmlDocument
$XmlDocument
-NodePath
$parentNodePath
-NamespaceURI
$NamespaceURI
-NodeSeparatorCharacter
$NodeSeparatorCharacter
if
(
$parentNode
)
{
$parentNode
.
AppendChild
(
$element
)
>
$null
}
else
{
throw
"
$parentNodePath
does not exist in the xml."
}
}
}
function
Test-Tag-Build
(
$nugetGitVersion
,
$buildMetaData
,
$fullSemVer
)
{
if
([
string
]::
IsNullOrEmpty
(
$buildMetaData
)
-and
$fullSemVer
-eq
$nugetGitVersion
)
{
return
$true
...
...
@@ -161,7 +215,7 @@ function Get-Prefix-Name ()
return
"beta"
}
function
Get-Next-Version-String
(
$PackageId
)
function
Get-Next-Version-String
()
{
$nugetGitVersion
=
Get-Git-Package-Version
$buildMetaData
=
Get-Git-Build-MetaData
...
...
devops/Package.ps1
View file @
aa7f4142
...
...
@@ -5,7 +5,31 @@ param ([string] $PackageId)
$hash
=
Get-Current-Commit-Hash
$releaseNotes
=
"Release:
$(
$hash
)
"
$NuSpecFile
=
$PackageId
+
'.nuspec'
$SymbolNuSpecFile
=
$PackageId
+
'.Symbol.nuspec'
$longSha
=
Get-Git-Commit-Sha
$nextVersion
=
Get-Next-Version-String
Update-NuSpec-Version
$NuSpecFile
$nextVersion
Update-NuSpec-Commit-Hash
$NuSpecFile
$longSha
Update-NuSpec-Release-Notes
$NuSpecFile
$releaseNotes
&
nuget
pack
$NuSpecFile
-NoPackageAnalysis
\ No newline at end of file
&
nuget
pack
$NuSpecFile
-NoPackageAnalysis
$currentPkgName
=
'./'
+
$PackageId
+
'.'
+
$nextVersion
+
'.nupkg'
$targetPkgName
=
$PackageId
+
'.nupkg'
Rename-Item
-Path
$currentPkgName
-NewName
$targetPkgName
if
(
Test-Path
-Path
$SymbolNuSpecFile
)
{
Update-NuSpec-Version
$SymbolNuSpecFile
$nextVersion
Update-NuSpec-Commit-Hash
$SymbolNuSpecFile
$longSha
Update-NuSpec-Release-Notes
$SymbolNuSpecFile
$releaseNotes
&
nuget
pack
$SymbolNuSpecFile
-Symbols
-SymbolPackageFormat
snupkg
-NoPackageAnalysis
$currentPkgName
=
'./'
+
$PackageId
+
'.'
+
$nextVersion
+
'.snupkg'
$targetPkgName
=
$PackageId
+
'.snupkg'
Rename-Item
-Path
$currentPkgName
-NewName
$targetPkgName
}
devops/PreBuild.ps1
View file @
aa7f4142
param
([
string
]
$PackageId
)
.
.
\devops\BuildFunctions.ps1
$nextVersion
=
Get-Next-Version-String
$PackageId
$NuSpecFile
=
$PackageId
+
'.nuspec'
Update-NuSpec-Version
$NuSpecFile
$nextVersion
gitversion
/updateassemblyinfo
Prev
1
2
3
Next
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