Commit aa7f4142 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Add sourcelink support

parent d4252e9a
<?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
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
<copyright>Copyright © NLua 2020</copyright> <copyright>Copyright © NLua 2020</copyright>
<tags>lua nlua</tags> <tags>lua nlua</tags>
<dependencies> <dependencies>
<dependency id="KeraLua" version="1.0.27" /> <dependency id="KeraLua" version="1.0.29" />
</dependencies> </dependencies>
<repository type="git" url="https://github.com/nlua/nlua" commit="708ba30e982deccb1248d099806bc00e362fbda4" />
</metadata> </metadata>
<files> <files>
<file src="lib\Release\MonoAndroid\NLua.dll" target="lib\MonoAndroid" /> <file src="lib\Release\MonoAndroid\NLua.dll" target="lib\MonoAndroid" />
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType> <DebugType>portable</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\lib\Release\MonoAndroid</OutputPath> <OutputPath>..\..\lib\Release\MonoAndroid</OutputPath>
<DefineConstants>__MOBILE__;__ANDROID__</DefineConstants> <DefineConstants>__MOBILE__;__ANDROID__</DefineConstants>
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="KeraLua, Version=1.0.27.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"> <Reference Include="KeraLua, Version=1.0.29.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL">
<HintPath>..\..\packages\KeraLua.1.0.27\lib\MonoAndroid\KeraLua.dll</HintPath> <HintPath>..\..\packages\KeraLua.1.0.29\lib\MonoAndroid\KeraLua.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
...@@ -50,6 +50,12 @@ ...@@ -50,6 +50,12 @@
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </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="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" /> <Import Project="..\targets\NLua.Sign.targets" />
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="KeraLua" version="1.0.27" targetFramework="monoandroid81" /> <package id="KeraLua" version="1.0.29" targetFramework="monoandroid81" />
</packages> </packages>
\ No newline at end of file
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>portable</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\lib\Release\xamarintvos</OutputPath> <OutputPath>..\..\lib\Release\xamarintvos</OutputPath>
<DefineConstants> <DefineConstants>
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="KeraLua, Version=1.0.27.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"> <Reference Include="KeraLua, Version=1.0.29.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL">
<HintPath>..\..\packages\KeraLua.1.0.27\lib\xamarintvos\KeraLua.dll</HintPath> <HintPath>..\..\packages\KeraLua.1.0.29\lib\xamarintvos\KeraLua.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="KeraLua" version="1.0.27" targetFramework="xamarintvos10" /> <package id="KeraLua" version="1.0.29" targetFramework="xamarintvos10" />
</packages> </packages>
\ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>portable</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\lib\Release\xamarinwatchos</OutputPath> <OutputPath>..\..\lib\Release\xamarinwatchos</OutputPath>
<DefineConstants> <DefineConstants>
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="KeraLua, Version=1.0.27.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"> <Reference Include="KeraLua, Version=1.0.29.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL">
<HintPath>..\..\packages\KeraLua.1.0.27\lib\xamarinwatchos\KeraLua.dll</HintPath> <HintPath>..\..\packages\KeraLua.1.0.29\lib\xamarinwatchos\KeraLua.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
...@@ -55,6 +55,12 @@ ...@@ -55,6 +55,12 @@
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </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="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\WatchOS\Xamarin.WatchOS.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\WatchOS\Xamarin.WatchOS.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" /> <Import Project="..\targets\NLua.Sign.targets" />
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="KeraLua" version="1.0.27" targetFramework="xamarinwatchos10" /> <package id="KeraLua" version="1.0.29" targetFramework="xamarinwatchos10" />
</packages> </packages>
\ No newline at end of file
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize> <Optimize>true</Optimize>
<DebugType>portable</DebugType>
<OutputPath>..\..\lib\Release\xamarinmac</OutputPath> <OutputPath>..\..\lib\Release\xamarinmac</OutputPath>
<DefineConstants> <DefineConstants>
</DefineConstants> </DefineConstants>
...@@ -56,8 +57,8 @@ ...@@ -56,8 +57,8 @@
<AOTMode>None</AOTMode> <AOTMode>None</AOTMode>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="KeraLua, Version=1.0.27.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"> <Reference Include="KeraLua, Version=1.0.29.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL">
<HintPath>..\..\packages\KeraLua.1.0.27\lib\xamarinmac\KeraLua.dll</HintPath> <HintPath>..\..\packages\KeraLua.1.0.29\lib\xamarinmac\KeraLua.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
...@@ -69,6 +70,12 @@ ...@@ -69,6 +70,12 @@
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </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="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" /> <Import Project="..\targets\NLua.Sign.targets" />
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="KeraLua" version="1.0.27" targetFramework="xamarinmac20" /> <package id="KeraLua" version="1.0.29" targetFramework="xamarinmac20" />
</packages> </packages>
\ No newline at end of file
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>portable</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\lib\Release\xamarinios</OutputPath> <OutputPath>..\..\lib\Release\xamarinios</OutputPath>
<DefineConstants> <DefineConstants>
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="KeraLua, Version=1.0.27.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"> <Reference Include="KeraLua, Version=1.0.29.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL">
<HintPath>..\..\packages\KeraLua.1.0.27\lib\xamarinios\KeraLua.dll</HintPath> <HintPath>..\..\packages\KeraLua.1.0.29\lib\xamarinios\KeraLua.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
...@@ -61,6 +61,12 @@ ...@@ -61,6 +61,12 @@
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </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="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" /> <Import Project="..\targets\NLua.Sign.targets" />
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="KeraLua" version="1.0.27" targetFramework="xamarinios10" /> <package id="KeraLua" version="1.0.29" targetFramework="xamarinios10" />
</packages> </packages>
\ No newline at end of file
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize> <Optimize>true</Optimize>
<DebugType>portable</DebugType>
<OutputPath>..\..\lib\Release\net45\</OutputPath> <OutputPath>..\..\lib\Release\net45\</OutputPath>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
...@@ -32,22 +33,28 @@ ...@@ -32,22 +33,28 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="KeraLua, Version=1.0.27.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL"> <Reference Include="KeraLua, Version=1.0.29.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217, processorArchitecture=MSIL">
<HintPath>..\..\packages\KeraLua.1.0.27\lib\net45\KeraLua.dll</HintPath> <HintPath>..\..\packages\KeraLua.1.0.29\lib\net45\KeraLua.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </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="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" /> <Import Project="..\targets\NLua.Sign.targets" />
<Import Project="..\..\packages\KeraLua.1.0.27\build\net45\KeraLua.targets" Condition="Exists('..\..\packages\KeraLua.1.0.27\build\net45\KeraLua.targets')" /> <Import Project="..\..\packages\KeraLua.1.0.29\build\net45\KeraLua.targets" Condition="Exists('..\..\packages\KeraLua.1.0.29\build\net45\KeraLua.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup> <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> <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> </PropertyGroup>
<Error Condition="!Exists('..\..\packages\KeraLua.1.0.27\build\net45\KeraLua.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\KeraLua.1.0.27\build\net45\KeraLua.targets'))" /> <Error Condition="!Exists('..\..\packages\KeraLua.1.0.29\build\net45\KeraLua.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\KeraLua.1.0.29\build\net45\KeraLua.targets'))" />
</Target> </Target>
</Project> </Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="KeraLua" version="1.0.27" targetFramework="net45" /> <package id="KeraLua" version="1.0.29" targetFramework="net45" />
</packages> </packages>
\ No newline at end of file
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
<DocumentationFile></DocumentationFile> <DocumentationFile></DocumentationFile>
<OutputPath>..\..\lib\Release\netcore\</OutputPath> <OutputPath>..\..\lib\Release\netcore\</OutputPath>
<DefineConstants>TRACE;NETCOREAPP</DefineConstants> <DefineConstants>TRACE;NETCOREAPP</DefineConstants>
...@@ -18,9 +20,15 @@ ...@@ -18,9 +20,15 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors /> <WarningsAsErrors />
</PropertyGroup> </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="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua" Version="1.0.27" /> <PackageReference Include="KeraLua" Version="1.0.29" />
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" /> <PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" /> <PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" />
</ItemGroup> </ItemGroup>
......
...@@ -15,16 +15,25 @@ ...@@ -15,16 +15,25 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
<OutputPath>..\..\lib\Release\</OutputPath> <OutputPath>..\..\lib\Release\</OutputPath>
<DefineConstants>TRACE;NETSTANDARD</DefineConstants> <DefineConstants>TRACE;NETSTANDARD</DefineConstants>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors /> <WarningsAsErrors />
</PropertyGroup> </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" /> <Import Project="..\..\src\NLua.Shared.projitems" Label="Shared" />
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua" Version="1.0.27" /> <PackageReference Include="KeraLua" Version="1.0.29" />
<PackageReference Include="NUnit" Version="3.12.0" /> <PackageReference Include="NUnit" Version="3.12.0" />
</ItemGroup> </ItemGroup>
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<DebugType>portable</DebugType>
<OutputPath>..\..\lib\Release\uap10.0\</OutputPath> <OutputPath>..\..\lib\Release\uap10.0\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua"> <PackageReference Include="KeraLua">
<Version>1.0.27</Version> <Version>1.0.29</Version>
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform"> <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.9</Version> <Version>6.2.9</Version>
...@@ -52,6 +53,12 @@ ...@@ -52,6 +53,12 @@
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' "> <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion> <VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup> </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="..\..\src\NLua.Shared.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Shared.projitems')" />
<Import Project="..\targets\NLua.Sign.targets" /> <Import Project="..\targets\NLua.Sign.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
......
...@@ -47,6 +47,27 @@ function Get-Git-Full-Sem-Ver () ...@@ -47,6 +47,27 @@ function Get-Git-Full-Sem-Ver ()
return [string](gitversion /showvariable FullSemVer) 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) function Update-NuSpec-Release-Notes($File, $releaseNotes)
{ {
$File = Resolve-Path $File $File = Resolve-Path $File
...@@ -136,6 +157,39 @@ function Set-XmlElementsTextValue([xml]$XmlDocument, [string]$ElementPath, [stri ...@@ -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) { function Test-Tag-Build ($nugetGitVersion, $buildMetaData, $fullSemVer) {
if ([string]::IsNullOrEmpty($buildMetaData) -and $fullSemVer -eq $nugetGitVersion) { if ([string]::IsNullOrEmpty($buildMetaData) -and $fullSemVer -eq $nugetGitVersion) {
return $true return $true
...@@ -161,7 +215,7 @@ function Get-Prefix-Name () ...@@ -161,7 +215,7 @@ function Get-Prefix-Name ()
return "beta" return "beta"
} }
function Get-Next-Version-String ($PackageId) function Get-Next-Version-String ()
{ {
$nugetGitVersion = Get-Git-Package-Version $nugetGitVersion = Get-Git-Package-Version
$buildMetaData = Get-Git-Build-MetaData $buildMetaData = Get-Git-Build-MetaData
......
...@@ -5,7 +5,31 @@ param ([string] $PackageId) ...@@ -5,7 +5,31 @@ param ([string] $PackageId)
$hash = Get-Current-Commit-Hash $hash = Get-Current-Commit-Hash
$releaseNotes = "Release: $($hash)" $releaseNotes = "Release: $($hash)"
$NuSpecFile = $PackageId + '.nuspec' $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 Update-NuSpec-Release-Notes $NuSpecFile $releaseNotes
& nuget pack $NuSpecFile -NoPackageAnalysis & nuget pack $NuSpecFile -NoPackageAnalysis
\ No newline at end of file
$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
}
param ([string] $PackageId)
. .\devops\BuildFunctions.ps1
$nextVersion = Get-Next-Version-String $PackageId
$NuSpecFile = $PackageId + '.nuspec'
Update-NuSpec-Version $NuSpecFile $nextVersion
gitversion /updateassemblyinfo gitversion /updateassemblyinfo
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment